bots: Rename BotHandlerApi object client to bot_handler.

This commit is contained in:
Robert Hönig 2017-06-11 15:03:39 +02:00 committed by Tim Abbott
parent c193443541
commit fcb4cf6721
24 changed files with 91 additions and 91 deletions

View file

@ -15,13 +15,13 @@ class IncrementorHandler(object):
is @-mentioned, this number will be incremented in the same message.
'''
def handle_message(self, message, client, state_handler):
def handle_message(self, message, bot_handler, state_handler):
self.number += 1
if self.message_id is None:
result = client.send_reply(message, str(self.number))
result = bot_handler.send_reply(message, str(self.number))
self.message_id = result['id']
else:
client.update_message(dict(
bot_handler.update_message(dict(
message_id=self.message_id,
content=str(self.number),
))