diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/spotify.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/spotify.py')
| -rw-r--r-- | modules/spotify.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/spotify.py b/modules/spotify.py index 766e66c3..79ffc85f 100644 --- a/modules/spotify.py +++ b/modules/spotify.py @@ -5,9 +5,8 @@ URL_SPOTIFY = "https://api.spotify.com/v1/search" class Module(object): def __init__(self, bot, events, exports): - events.on("received").on("command").on("spotify").hook( - self.spotify, help="Search for a track on spotify", - min_args=1) + events.on("received.command.spotify").hook(self.spotify, min_args=1, + help="Search for a track on spotify") def spotify(self, event): page = Utils.get_url(URL_SPOTIFY, get_params={"type": "track", |
