aboutsummaryrefslogtreecommitdiff
path: root/modules/ducks.py
diff options
context:
space:
mode:
authorGravatar dngfx2018-09-01 19:12:05 +0100
committerGravatar dngfx2018-09-01 19:12:05 +0100
commit8098e8c015bea210d07af74d4ccc97caac5083d4 (patch)
tree04737dd04ff027d72719eb3a93dfdba9c3a1bea7 /modules/ducks.py
parentDon't persist timer, use events.on("send.stdout") (diff)
signature
re-add self.events
Diffstat (limited to 'modules/ducks.py')
-rw-r--r--modules/ducks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/ducks.py b/modules/ducks.py
index e7fd00c3..3056d7bb 100644
--- a/modules/ducks.py
+++ b/modules/ducks.py
@@ -16,6 +16,7 @@ DUCK_LIST = [
class Module(object):
def __init__(self, bot, events):
self.bot = bot
+ self.events = events
events.on("received.command.bef").hook(self.duck_bef,
help="Befriend a duck!")