zulip_bots: Standardize weather bot's config file.
This commit is contained in:
parent
56ac3f1b73
commit
1a096b317b
|
@ -1,2 +1,2 @@
|
|||
[weather-config]
|
||||
[weather]
|
||||
key=XXXXXXXX
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue