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

@ -22,13 +22,13 @@ class FollowupHandler(object):
called "followup" that your API user can send to.
'''
def handle_message(self, message, client, state_handler):
def handle_message(self, message, bot_handler, state_handler):
if message['content'] == '':
bot_response = "Please specify the message you want to send to followup stream after @mention-bot"
client.send_reply(message, bot_response)
bot_handler.send_reply(message, bot_response)
else:
bot_response = self.get_bot_followup_response(message)
client.send_message(dict(
bot_handler.send_message(dict(
type='stream',
to='followup',
subject=message['sender_email'],