add !8 as alias of !8ball
This commit is contained in:
parent
0a1077c5cd
commit
8e824c9277
1 changed files with 3 additions and 4 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue