Supprimer 600 ms pour éviter l'envoi du message à 00:00:00.600
This commit is contained in:
parent
36b9f2efda
commit
217905e6a8
1 changed files with 2 additions and 0 deletions
2
bot.py
2
bot.py
|
@ -25,6 +25,8 @@ MY_GUILD = discord.Object(id=GUILD_ID)
|
|||
|
||||
tt = datetime.now(ZoneInfo("Europe/Paris"))
|
||||
md = tt.replace(hour=0, minute=0, second=0, microsecond=0) + timedelta(days=1)
|
||||
# remove 600ms to avoid the bot to send the message at 00:00:00.600
|
||||
md = md - timedelta(milliseconds=600)
|
||||
mid = md.timetz()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue