aboutsummaryrefslogtreecommitdiff
path: root/modules/soundcloud.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-26 18:27:17 +0100
committerGravatar jesopo2018-09-26 18:27:17 +0100
commit51a52e2b0e54031cce5876f54d1d48c268b5441c (patch)
treea4c0e8e86c55aa701b06297d5b5a2ceebeaab60d /modules/soundcloud.py
parentAlso 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.py6
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