Fix message for negative delta
This commit is contained in:
parent
3e37a39ce7
commit
6d32e4f8c2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue