From 51a52e2b0e54031cce5876f54d1d48c268b5441c Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 26 Sep 2018 18:27:17 +0100 Subject: Switch to using @Utils.hook and docstrings for event hooks --- modules/soundcloud.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/soundcloud.py') diff --git a/modules/soundcloud.py b/modules/soundcloud.py index 70e75423..8ecde75a 100644 --- a/modules/soundcloud.py +++ b/modules/soundcloud.py @@ -11,10 +11,12 @@ class Module(object): _name = "SoundCloud" def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("command").on("soundcloud", "sc" - ).hook(self.soundcloud, help="Search SoundCloud") + @Utils.hook("received.command.soundcloud|sc") def soundcloud(self, event): + """ + Search SoundCloud + """ query = None url = None -- cgit v1.3.1-10-gc9f91