aboutsummaryrefslogtreecommitdiff
path: root/modules/weather.py
diff options
context:
space:
mode:
authorGravatar jesopo2016-04-06 12:02:44 +0100
committerGravatar jesopo2016-04-06 12:02:44 +0100
commit9b2556a65a963ebab123bd4bdc090658f4cd6fef (patch)
tree610a8875039227453a3842924bd012e3afcf6883 /modules/weather.py
parentchanged README.md a little. (diff)
added usage help to a lot of modules, added a verbose option to karma.py.
Diffstat (limited to 'modules/weather.py')
-rw-r--r--modules/weather.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/weather.py b/modules/weather.py
index e3350de3..53fce200 100644
--- a/modules/weather.py
+++ b/modules/weather.py
@@ -6,10 +6,11 @@ URL_WEATHER = "http://api.openweathermap.org/data/2.5/weather"
class Module(object):
def __init__(self, bot):
+ self.bot = bot
bot.events.on("received").on("command").on("weather").hook(
self.weather, min_args=1,
- help="Get current weather data for a provided location")
- self.bot = bot
+ help="Get current weather data for a provided location",
+ usage="<location>")
def weather(self, event):
api_key = self.bot.config["openweathermap-api-key"]