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

@ -23,7 +23,7 @@ class WeatherHandler(object):
This plugin will give info about weather in a specified city
'''
def handle_message(self, message, client, state_handler):
def handle_message(self, message, bot_handler, state_handler):
help_content = '''
This bot returns weather info for specified city.
You specify city in the following format:
@ -44,7 +44,7 @@ class WeatherHandler(object):
else:
response = format_response(r.text, message['content'], self.response_pattern)
client.send_reply(message, response)
bot_handler.send_reply(message, response)
def format_response(text, city, response_pattern):