From fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Sep 2018 13:25:12 +0100 Subject: Refactor everything to use delimited events --- modules/spotify.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/spotify.py') 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", -- cgit v1.3.1-10-gc9f91