aboutsummaryrefslogtreecommitdiff
path: root/modules/random_number.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-10 10:42:41 +0100
committerGravatar jesopo2018-10-10 10:42:41 +0100
commit376825ea96099efc0f5e890370a417db1902df1a (patch)
tree456f70d784e9b63cbc70b167380d95000d5e4030 /modules/random_number.py
parentRemove debug print in src.utils.http (diff)
signature
Mark command hooks that are aliases ('g' vs 'google')
Diffstat (limited to 'modules/random_number.py')
-rw-r--r--modules/random_number.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/random_number.py b/modules/random_number.py
index eb0662ed..797b2fb4 100644
--- a/modules/random_number.py
+++ b/modules/random_number.py
@@ -4,7 +4,8 @@ from src import ModuleManager, utils
class Module(ModuleManager.BaseModule):
_name = "Random"
- @utils.hook("received.command.random|rand")
+ @utils.hook("received.command.rand", alias_of="random")
+ @utils.hook("received.command.random")
def random(self, event):
"""
:help: Get a random number