From 217905e6a835dd2de7562458dda2e974d445ee67 Mon Sep 17 00:00:00 2001 From: Pierre Berthe Date: Mon, 12 Feb 2024 23:13:37 +0100 Subject: [PATCH] =?UTF-8?q?Supprimer=20600=20ms=20pour=20=C3=A9viter=20l'e?= =?UTF-8?q?nvoi=20du=20message=20=C3=A0=2000:00:00.600?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.py b/bot.py index b3483f4..c25fd2f 100644 --- a/bot.py +++ b/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()