zulip_bots: Standardize weather bot's config file.

This commit is contained in:
derAnfaenger 2017-11-06 15:12:12 +01:00 committed by showell
parent 56ac3f1b73
commit 1a096b317b
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
[weather-config]
[weather]
key=XXXXXXXX

View file

@ -5,7 +5,7 @@ import json
class WeatherHandler(object):
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')['key']
self.response_pattern = 'Weather in {}, {}:\n{:.2f} F / {:.2f} C\n{}'
def usage(self):