contrib_bots: Update xkcd bot to use send_reply.
This enables private message usage.
This commit is contained in:
parent
915d98aa68
commit
adb5f645bc
|
@ -29,13 +29,7 @@ class XkcdHandler(object):
|
||||||
|
|
||||||
def handle_message(self, message, client, state_handler):
|
def handle_message(self, message, client, state_handler):
|
||||||
xkcd_bot_response = get_xkcd_bot_response(message)
|
xkcd_bot_response = get_xkcd_bot_response(message)
|
||||||
|
client.send_reply(message, xkcd_bot_response)
|
||||||
client.send_message(dict(
|
|
||||||
type='stream',
|
|
||||||
to=message['display_recipient'],
|
|
||||||
subject=message['subject'],
|
|
||||||
content=xkcd_bot_response,
|
|
||||||
))
|
|
||||||
|
|
||||||
class XkcdBotCommand(object):
|
class XkcdBotCommand(object):
|
||||||
LATEST = 0
|
LATEST = 0
|
||||||
|
|
Loading…
Reference in a new issue