aboutsummaryrefslogtreecommitdiff
path: root/modules/ids.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ids.py')
-rw-r--r--modules/ids.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ids.py b/modules/ids.py
index c8bd8042..0c8ba0bf 100644
--- a/modules/ids.py
+++ b/modules/ids.py
@@ -2,10 +2,10 @@
class Module(object):
_name = "IDs"
- def __init__(self, bot):
- bot.events.on("received.command.myid").hook(self.my_id,
+ def __init__(self, bot, events):
+ events.on("received.command.myid").hook(self.my_id,
help="Show your user ID")
- bot.events.on("received.command.channelid").hook(
+ events.on("received.command.channelid").hook(
self.channel_id, channel_only=True,
help="Show the current channel's ID")