diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/define.py | |
| parent | received.command takes a final [command] part (diff) | |
| signature | ||
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/define.py')
| -rw-r--r-- | modules/define.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/define.py b/modules/define.py index 315099fe..dbd1e420 100644 --- a/modules/define.py +++ b/modules/define.py @@ -19,10 +19,11 @@ class Module(ModuleManager.BaseModule): return page - @Utils.hook("received.command.define", usage="<phrase>") + @Utils.hook("received.command.define") def define(self, event): """ - Define a provided term + :help: Define a provided term + :usage: <phrase> """ if event["args"]: word = event["args"] @@ -42,7 +43,7 @@ class Module(ModuleManager.BaseModule): @Utils.hook("received.command.randomword") def random_word(self, event): """ - Define a random word + :help: Define a random word """ if not self._last_called or (time.time()-self._last_called >= RANDOM_DELAY_SECONDS): |
