2017-05-23 21:05:27 +02:00
|
|
|
# See readme.md for instructions on running this code.
|
|
|
|
|
|
|
|
|
|
|
|
class HelloWorldHandler(object):
|
|
|
|
def usage(self):
|
|
|
|
return '''
|
|
|
|
This is a boilerplate bot that responds to a user query with
|
|
|
|
"beep boop", which is robot for "Hello World".
|
|
|
|
|
|
|
|
This bot can be used as a template for other, more
|
|
|
|
sophisticated, bots.
|
|
|
|
'''
|
|
|
|
|
2017-06-11 15:03:39 +02:00
|
|
|
def handle_message(self, message, bot_handler, state_handler):
|
2017-05-23 21:05:27 +02:00
|
|
|
content = 'beep boop'
|
2017-06-11 15:03:39 +02:00
|
|
|
bot_handler.send_reply(message, content)
|
2017-05-23 21:05:27 +02:00
|
|
|
|
|
|
|
handler_class = HelloWorldHandler
|