From f049e2c37c70d0fea796976ae82f678bde082db5 Mon Sep 17 00:00:00 2001 From: "Mike2.0" Date: Sat, 11 Nov 2023 14:50:33 +0000 Subject: [PATCH] Update main.py --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 81eb6b6..89d9940 100644 --- a/main.py +++ b/main.py @@ -109,7 +109,9 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], @tasks.loop(seconds = 5.0) async def mensaje_jueves(): - if time.struct_time.tm_wday() == 5 +current_time = time.localtime() +día_semana = current_time.tm_wday +if día_semana = 5 channel = bot.get_channel(1051497546708697120) await channel.send("prueba")