aboutsummaryrefslogtreecommitdiff
path: root/modules/weather.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-27 11:46:10 +0100
committerGravatar jesopo2018-09-27 11:46:10 +0100
commit8b0314b190b02f7e83fe0dae3c349ce4dffdcb4f (patch)
tree2481de34452598ff3d3ca579612a0fdc0dc0edc5 /modules/weather.py
parentImplement @Utils.export, to denote an export on a module (diff)
signature
Use ModuleManager.BaseModule in more modules
Diffstat (limited to 'modules/weather.py')
-rw-r--r--modules/weather.py7
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):
"""