From 1a096b317bc536313a1d1f7770652685499daf17 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Mon, 6 Nov 2017 15:12:12 +0100 Subject: [PATCH] zulip_bots: Standardize weather bot's config file. --- zulip_bots/zulip_bots/bots/weather/weather.conf | 2 +- zulip_bots/zulip_bots/bots/weather/weather.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):