add !8 as alias of !8ball

This commit is contained in:
jesopo 2019-09-09 14:25:19 +01:00
parent 0a1077c5cd
commit 8e824c9277

View file

@ -34,11 +34,10 @@ CHOICES = [
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
_name = "8Ball" _name = "8Ball"
@utils.hook("received.command.8", alias_of="8ball")
@utils.hook("received.command.8ball", min_args=1) @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): def decide(selfs, event):
"""
:help: Ask the mystic 8ball a question
:usage: <question>
"""
event["stdout"].write("You shake the magic ball... it says %s" % event["stdout"].write("You shake the magic ball... it says %s" %
utils.irc.bold(random.choice(CHOICES))) utils.irc.bold(random.choice(CHOICES)))