From d0d5cc4d0866d44eed652221940035d855296253 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 30 Jan 2020 21:12:31 +0000 Subject: split utils.datetime out in to .parse and .format --- modules/coins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/coins.py') diff --git a/modules/coins.py b/modules/coins.py index 823d77f4..aa897948 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -184,7 +184,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.datetime.to_pretty_time(math.ceil(time_left)))) + utils.datetime.format.to_pretty_time(time_left))) else: event["stderr"].write( "%s: You can only redeem coins when you have none" % @@ -520,7 +520,7 @@ class Module(ModuleManager.BaseModule): """ until = self._until_next_6_hour() event["stdout"].write("Next lottery is in: %s" % - utils.datetime.to_pretty_time(until)) + utils.datetime.format.to_pretty_time(until)) @utils.hook("received.command.lotterywinner") def lottery_winner(self, event): -- cgit v1.3.1-10-gc9f91