aboutsummaryrefslogtreecommitdiff
path: root/modules/8ball.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 17:29:09 +0100
committerGravatar jesopo2018-09-30 17:29:09 +0100
commit10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch)
tree4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/8ball.py
parentreceived.command takes a final [command] part (diff)
signature
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/8ball.py')
-rw-r--r--modules/8ball.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/8ball.py b/modules/8ball.py
index ebfb1b0c..60cdb261 100644
--- a/modules/8ball.py
+++ b/modules/8ball.py
@@ -29,10 +29,11 @@ CHOICES = [
]
class Module(ModuleManager.BaseModule):
- @Utils.hook("received.command.8ball", min_args=1, usage="<question>")
+ @Utils.hook("received.command.8ball", min_args=1)
def decide(selfs, event):
"""
- Ask the mystic 8ball a question!
+ :help: Ask the mystic 8ball a question!
+ :usage: <question>
"""
event["stdout"].write("You shake the magic ball... it "
"says " + Utils.bold(random.choice(CHOICES)))