aboutsummaryrefslogtreecommitdiff
path: root/modules/stats.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/stats.py')
-rw-r--r--modules/stats.py8
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)