diff options
| author | 2019-09-09 14:25:19 +0100 | |
|---|---|---|
| committer | 2019-09-09 14:25:19 +0100 | |
| commit | 8e824c92771ba756acc4000824a7df239fe474e1 (patch) | |
| tree | 285d5c57660ac21ccb0621ad37ca6f9aa5c6a7b7 /modules | |
| parent | add explicit None return for _find_encoding (mypy) (diff) | |
| signature | ||
add !8 as alias of !8ball
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/eightball.py | 7 |
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))) |
