aboutsummaryrefslogtreecommitdiff
path: root/modules/coins.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-19 13:25:12 +0100
committerGravatar jesopo2018-09-19 13:25:12 +0100
commitfcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch)
tree0015e3da000323b8f576f3303807176f1f4ea794 /modules/coins.py
parentFix some styling in ducks.py (diff)
signature
Refactor everything to use delimited events
Diffstat (limited to 'modules/coins.py')
-rw-r--r--modules/coins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/coins.py b/modules/coins.py
index 8912821c..ce1bae57 100644
--- a/modules/coins.py
+++ b/modules/coins.py
@@ -61,7 +61,7 @@ class Module(object):
until_next_hour = 60-now.second
until_next_hour += ((60-(now.minute+1))*60)
- events.on("timer").on("coin-interest").hook(self.interest)
+ events.on("timer.coin-interest").hook(self.interest)
bot.add_timer("coin-interest", INTEREST_INTERVAL, persist=False,
next_due=time.time()+until_next_hour)