float to int
This commit is contained in:
parent
3afaad143b
commit
9f78563eea
@ -1,5 +1,6 @@
|
||||
import asyncio
|
||||
import itertools
|
||||
import math
|
||||
|
||||
from redbot.core import commands
|
||||
from redbot.core import Config, checks
|
||||
@ -304,7 +305,7 @@ class WynncraftCog(commands.Cog):
|
||||
for almost_online_player in almost_online_players:
|
||||
last_join_dt_utc = datetime.strptime(almost_online_player["data"][0]["meta"]["lastJoin"], "%Y-%m-%dT%H:%M:%S.%fZ")
|
||||
last_join_dt_local = utc_to_local(last_join_dt_utc)
|
||||
mins = (datetime.now(last_join_dt_local.tzinfo) - last_join_dt_local).total_seconds() // 60
|
||||
mins = math.ceil((datetime.now(last_join_dt_local.tzinfo) - last_join_dt_local).total_seconds() // 60)
|
||||
s = ":grey_question: **%s** était connecté il y a %s minutes" % (almost_online_player["data"][0]["username"], mins)
|
||||
full_text += s + "\n"
|
||||
if not online_players and not almost_online_players:
|
||||
|
Loading…
Reference in New Issue
Block a user