From 8f9c063114def747b8fbabe8c3a48c7708474e2c Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 24 Feb 2020 10:18:55 +0000 Subject: only do to_pretty_time as relative when requested --- 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 4f366500..8e84c96e 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -194,7 +194,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.format.to_pretty_time(time_left))) + utils.datetime.format.to_pretty_until(time_left))) else: event["stderr"].write( "%s: You can only redeem coins when you have none" % @@ -492,7 +492,7 @@ class Module(ModuleManager.BaseModule): def next_lottery(self, event): until = self._until_next_6_hour() event["stdout"].write("Next lottery is in: %s" % - utils.datetime.format.to_pretty_time(until)) + utils.datetime.format.to_pretty_until(until)) @utils.hook("received.command.lotterywinner") @utils.kwarg("help", "Show who last won the lottery") -- cgit v1.3.1-10-gc9f91