bots: Rename BotHandlerApi object client
to bot_handler
.
This commit is contained in:
parent
c193443541
commit
fcb4cf6721
24 changed files with 91 additions and 91 deletions
|
@ -27,9 +27,9 @@ class XkcdHandler(object):
|
|||
`<comic_id>`, e.g `@mention-bot 1234`.
|
||||
'''
|
||||
|
||||
def handle_message(self, message, client, state_handler):
|
||||
def handle_message(self, message, bot_handler, state_handler):
|
||||
xkcd_bot_response = get_xkcd_bot_response(message)
|
||||
client.send_reply(message, xkcd_bot_response)
|
||||
bot_handler.send_reply(message, xkcd_bot_response)
|
||||
|
||||
class XkcdBotCommand(object):
|
||||
LATEST = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue