2016-08-17 18:34:11 +02: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.
|
|
|
|
'''
|
|
|
|
|
2016-10-10 18:42:14 +02:00
|
|
|
def handle_message(self, message, client, state_handler):
|
2016-08-17 18:34:11 +02:00
|
|
|
help_content = '''
|
|
|
|
Info on Zulip can be found here:
|
|
|
|
https://github.com/zulip/zulip
|
|
|
|
'''.strip()
|
|
|
|
|
2017-05-23 02:43:29 +02:00
|
|
|
client.send_reply(message, help_content)
|
2016-08-17 18:34:11 +02:00
|
|
|
|
|
|
|
handler_class = HelpHandler
|