diff options
Diffstat (limited to 'modules/weather.py')
| -rw-r--r-- | modules/weather.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/weather.py b/modules/weather.py index f16b62b7..33200958 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -1,13 +1,10 @@ #--require-config openweathermap-api-key -from src import Utils +from src import ModuleManager, Utils URL_WEATHER = "http://api.openweathermap.org/data/2.5/weather" -class Module(object): - def __init__(self, bot, events, exports): - self.bot = bot - +class Module(ModuleManager.BaseModule): @Utils.hook("received.command.weather", min_args=1, usage="<location>") def weather(self, event): """ |
