aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/eightball.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/eightball.py b/modules/eightball.py
index eede3f5c..dacbc258 100644
--- a/modules/eightball.py
+++ b/modules/eightball.py
@@ -34,11 +34,10 @@ CHOICES = [
class Module(ModuleManager.BaseModule):
_name = "8Ball"
+ @utils.hook("received.command.8", alias_of="8ball")
@utils.hook("received.command.8ball", min_args=1)
+ @utils.kwarg("help", "Ask the mystic 8ball a question")
+ @utils.kwarg("usage", "<question>")
def decide(selfs, event):
- """
- :help: Ask the mystic 8ball a question
- :usage: <question>
- """
event["stdout"].write("You shake the magic ball... it says %s" %
utils.irc.bold(random.choice(CHOICES)))