diff options
| author | 2019-11-15 13:59:09 +0000 | |
|---|---|---|
| committer | 2019-11-15 13:59:09 +0000 | |
| commit | 5d01db8514f9b06d2e478c0d86ffafe137093d5b (patch) | |
| tree | dba9d73f611e804bf02b6ea7146b0a392be41939 /modules/coins.py | |
| parent | dont expose has_magic/get_magic in utils/__init__.py, ref directly (diff) | |
| signature | ||
move all datetime-related code from utils/__init__ to utils.datetime
Diffstat (limited to 'modules/coins.py')
| -rw-r--r-- | modules/coins.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/coins.py b/modules/coins.py index dc2a240a..12a0af44 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -190,7 +190,7 @@ class Module(ModuleManager.BaseModule): time_left = self.bot.cache.until_expiration(cache) event["stderr"].write("%s: Please wait %s before redeeming" % ( event["user"].nickname, - utils.to_pretty_time(math.ceil(time_left)))) + utils.datetime.to_pretty_time(math.ceil(time_left)))) else: event["stderr"].write( "%s: You can only redeem coins when you have none" % @@ -525,7 +525,7 @@ class Module(ModuleManager.BaseModule): """ until = self._until_next_6_hour() event["stdout"].write("Next lottery is in: %s" % - utils.to_pretty_time(until)) + utils.datetime.to_pretty_time(until)) @utils.hook("received.command.lotterywinner") def lottery_winner(self, event): |
