diff options
| author | 2019-08-14 10:56:18 +0100 | |
|---|---|---|
| committer | 2019-08-14 10:56:18 +0100 | |
| commit | 4d8ce63efd88c0d71bf5cb284addd549c1636013 (patch) | |
| tree | a22496099d7b840fdd23ebe7f36e97939ab0799f /modules | |
| parent | forgot to update IRCBot.VERSION to v1.11.0-rc2 (diff) | |
| signature | ||
alias !remindme to !in
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/in.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/in.py b/modules/in.py index b57eaf7e..7dcffe34 100644 --- a/modules/in.py +++ b/modules/in.py @@ -6,12 +6,11 @@ SECONDS_MAX = utils.SECONDS_WEEKS*8 SECONDS_MAX_DESCRIPTION = "8 weeks" class Module(ModuleManager.BaseModule): + @utils.hook("received.command.remindme", alias_of="in") @utils.hook("received.command.in", min_args=2) + @utils.kwarg("help", "Set a reminder") + @utils.kwarg("usage", "<time> <message>") def in_command(self, event): - """ - :help: Set a reminder - :usage: <time> <message> - """ seconds = utils.from_pretty_time(event["args_split"][0]) message = " ".join(event["args_split"][1:]) if seconds: |
