From 8e824c92771ba756acc4000824a7df239fe474e1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 9 Sep 2019 14:25:19 +0100 Subject: [PATCH] add !8 as alias of !8ball --- modules/eightball.py | 7 +++---- 1 file 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", "") def decide(selfs, event): - """ - :help: Ask the mystic 8ball a question - :usage: - """ event["stdout"].write("You shake the magic ball... it says %s" % utils.irc.bold(random.choice(CHOICES)))