fix expire time
This commit is contained in:
parent
560b016485
commit
d6ddc5e693
|
@ -119,7 +119,8 @@ class WarBot(irc.IRCClient):
|
|||
items.append(itemStr)
|
||||
|
||||
expire = int(alert["Expiry"]["$date"]["$numberLong"])
|
||||
expire_diff = int(expire/1000 - time.time())
|
||||
expire = int(expire/1000)
|
||||
expire_diff = expire - int(time.time())
|
||||
expire_t = time.localtime(expire)
|
||||
|
||||
message = "\x0300[\x0305ALERT\x0300] " \
|
||||
|
|
Loading…
Reference in New Issue
Block a user