diff options
| author | 2018-10-10 10:42:41 +0100 | |
|---|---|---|
| committer | 2018-10-10 10:42:41 +0100 | |
| commit | 376825ea96099efc0f5e890370a417db1902df1a (patch) | |
| tree | 456f70d784e9b63cbc70b167380d95000d5e4030 /modules/random_number.py | |
| parent | Remove 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.py | 3 |
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 |
