diff --git a/zulip_bots/zulip_bots/bots/weather/weather.conf b/zulip_bots/zulip_bots/bots/weather/weather.conf index 7fa4a44..1ca2962 100644 --- a/zulip_bots/zulip_bots/bots/weather/weather.conf +++ b/zulip_bots/zulip_bots/bots/weather/weather.conf @@ -1,2 +1,2 @@ -[weather-config] +[weather] key=XXXXXXXX diff --git a/zulip_bots/zulip_bots/bots/weather/weather.py b/zulip_bots/zulip_bots/bots/weather/weather.py index 2c921f9..9225804 100644 --- a/zulip_bots/zulip_bots/bots/weather/weather.py +++ b/zulip_bots/zulip_bots/bots/weather/weather.py @@ -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):