diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/in.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/in.py')
| -rw-r--r-- | modules/in.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/in.py b/modules/in.py index 940a2dbb..3a1ddb87 100644 --- a/modules/in.py +++ b/modules/in.py @@ -7,10 +7,9 @@ SECONDS_MAX_DESCRIPTION = "8 weeks" class Module(object): def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("command").on("in").hook( - self.in_command, min_args=2, + events.on("received.command.in").hook(self.in_command, min_args=2, help="Set a reminder", usage="<time> <message>") - events.on("timer").on("in").hook(self.timer_due) + events.on("timer.in").hook(self.timer_due) def in_command(self, event): seconds = Utils.from_pretty_time(event["args_split"][0]) |
