weather bot: Amend temperature formatting.
This commit is contained in:
parent
5dd359fd4d
commit
b314c70da7
|
@ -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 '''
|
||||||
|
|
Loading…
Reference in a new issue