diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/stats.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/stats.py')
| -rw-r--r-- | modules/stats.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/stats.py b/modules/stats.py index c7821556..af6393c5 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -4,10 +4,10 @@ import Utils class Module(object): def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("command").on("uptime" - ).hook(self.uptime, help="Show my uptime") - events.on("received").on("command").on("stats" - ).hook(self.stats, help="Show my network/channel/user stats") + events.on("received.command.uptime").hook(self.uptime, + help="Show my uptime") + events.on("received.command.stats").hook(self.stats, + help="Show my network/channel/user stats") def uptime(self, event): seconds = int(time.time()-self.bot.start_time) |
