weather bot: Amend temperature formatting.
@@ -6,7 +6,7 @@ import json
class WeatherHandler(object):
def initialize(self, bot_handler):
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):
return '''
