diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/weather.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/weather.py')
| -rw-r--r-- | modules/weather.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/weather.py b/modules/weather.py index 39e3962f..db06956c 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -7,8 +7,7 @@ URL_WEATHER = "http://api.openweathermap.org/data/2.5/weather" class Module(object): def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("command").on("weather").hook( - self.weather, min_args=1, + events.on("received.command.weather").hook(self.weather, min_args=1, help="Get current weather data for a provided location", usage="<location>") |
