weather bot: Amend temperature formatting.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-07-25 18:02:15 -07:00 committed by Tim Abbott
parent 5dd359fd4d
commit b314c70da7

View file

@ -6,7 +6,7 @@ import json
class WeatherHandler(object): class WeatherHandler(object):
def initialize(self, bot_handler): def initialize(self, bot_handler):
self.api_key = bot_handler.get_config_info('weather', 'weather-config')['key'] self.api_key = bot_handler.get_config_info('weather', 'weather-config')['key']
self.response_pattern = 'Weather in {}, {}:\n{} F / {} C\n{}' self.response_pattern = 'Weather in {}, {}:\n{:.2f} F / {:.2f} C\n{}'
def usage(self): def usage(self):
return ''' return '''