Fix message for negative delta

This commit is contained in:
minerobber 2019-02-04 20:24:33 +00:00
parent 3e37a39ce7
commit 6d32e4f8c2
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ def minercoin_cooldown(bot,channel,nick,username,*args):
else:
delta = 3600-(int(time.time())-last)
delta = int(round(delta))
if delta<0:
bot.say(channel,"{}: You can ask for more MinerCoin right away!".format(nick))
minutes,seconds = divmod(delta,60)
timedesc = ""
if minutes: