Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request scrapinghub#4 from jsargiot/master
Browse files Browse the repository at this point in the history
Show command patterns in "bad command" reply
  • Loading branch information
lins05 committed Mar 22, 2015
2 parents 6ab6722 + ec69749 commit ae3d7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slackbot/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _default_reply(self, msg):
default_reply = [
u'Bad command "%s", You can ask me one of the following questions:\n' % msg['text'],
]
default_reply += [u' • %s' % str(f.__name__) for f in self._plugins.commands.itervalues()]
default_reply += [u' • `%s`' % str(p.pattern) for p in self._plugins.commands.iterkeys()]

self._client.rtm_send_message(msg['channel'],
'\n'.join(to_utf8(default_reply)))
Expand Down

0 comments on commit ae3d7a5

Please sign in to comment.