aboutsummaryrefslogtreecommitdiff
path: root/modules/weather.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 17:29:09 +0100
committerGravatar jesopo2018-09-30 17:29:09 +0100
commit10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch)
tree4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/weather.py
parentreceived.command takes a final [command] part (diff)
signature
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/weather.py')
-rw-r--r--modules/weather.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/weather.py b/modules/weather.py
index 33200958..a1c14f27 100644
--- a/modules/weather.py
+++ b/modules/weather.py
@@ -8,7 +8,8 @@ class Module(ModuleManager.BaseModule):
@Utils.hook("received.command.weather", min_args=1, usage="<location>")
def weather(self, event):
"""
- Get current weather data for a provided location
+ :help: Get current weather data for a provided location
+ :usage: <location>
"""
api_key = self.bot.config["openweathermap-api-key"]
page = Utils.get_url(URL_WEATHER, get_params={