diff options
| author | 2018-09-27 12:08:26 +0100 | |
|---|---|---|
| committer | 2018-09-27 12:08:26 +0100 | |
| commit | b2bdd93f09e7732b148c4361aafe5e8719991ed1 (patch) | |
| tree | a237c7021e947e4f99085650bb36c79646097b97 /modules | |
| parent | Move all exports to @Utils.export calls (diff) | |
| signature | ||
Change old-style event hook in coins.py
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/coins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/coins.py b/modules/coins.py index 47b51cf1..5ec1c728 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -33,7 +33,6 @@ class Module(object): until_next_hour = 60-now.second until_next_hour += ((60-(now.minute+1))*60) - events.on("timer.coin-interest").hook(self.interest) bot.add_timer("coin-interest", INTEREST_INTERVAL, persist=False, next_due=time.time()+until_next_hour) @@ -227,6 +226,7 @@ class Module(object): event["user"].nickname, "{0:.2f}".format(send_amount), target_user.nickname)) + @Utils.hook("timer.coin-interest") def interest(self, event): for server in self.bot.servers.values(): all_coins = server.get_all_user_settings( |
