diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/in.py | |
| parent | received.command takes a final [command] part (diff) | |
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/in.py')
| -rw-r--r-- | modules/in.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/in.py b/modules/in.py index 7fb7d7ea..f237bee6 100644 --- a/modules/in.py +++ b/modules/in.py @@ -5,10 +5,11 @@ SECONDS_MAX = Utils.SECONDS_WEEKS*8 SECONDS_MAX_DESCRIPTION = "8 weeks" class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.in", min_args=2, usage="<time> <message>") + @Utils.hook("received.command.in", min_args=2) def in_command(self, event): """ - Set a reminder + :help: Set a reminder + :usage: <time> <message> """ seconds = Utils.from_pretty_time(event["args_split"][0]) message = " ".join(event["args_split"][1:]) |
