diff options
| author | 2018-09-26 18:27:17 +0100 | |
|---|---|---|
| committer | 2018-09-26 18:27:17 +0100 | |
| commit | 51a52e2b0e54031cce5876f54d1d48c268b5441c (patch) | |
| tree | a4c0e8e86c55aa701b06297d5b5a2ceebeaab60d /modules/soundcloud.py | |
| parent | Also use docstrings to check if a command has help available, allow one-string (diff) | |
| signature | ||
Switch to using @Utils.hook and docstrings for event hooks
Diffstat (limited to 'modules/soundcloud.py')
| -rw-r--r-- | modules/soundcloud.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
