2016-08-17 12:34:11 -04:00
|
|
|
# See readme.md for instructions on running this code.
|
|
|
|
|
|
|
|
class HelpHandler(object):
|
|
|
|
def usage(self):
|
|
|
|
return '''
|
|
|
|
This plugin will give info about Zulip to
|
|
|
|
any user that types a message saying "help".
|
|
|
|
|
|
|
|
This is example code; ideally, you would flesh
|
|
|
|
this out for more useful help pertaining to
|
|
|
|
your Zulip instance.
|
|
|
|
'''
|
|
|
|
|
2017-06-11 09:03:39 -04:00
|
|
|
def handle_message(self, message, bot_handler, state_handler):
|
2017-05-27 17:54:44 -04:00
|
|
|
help_content = "Info on Zulip can be found here:\nhttps://github.com/zulip/zulip"
|
2017-06-11 09:03:39 -04:00
|
|
|
bot_handler.send_reply(message, help_content)
|
2016-08-17 12:34:11 -04:00
|
|
|
|
|
|
|
handler_class = HelpHandler
|