From fd4e5ce99235a750f44b0abcaaa1f8c363857410 Mon Sep 17 00:00:00 2001 From: "Mike2.0" Date: Sat, 11 Nov 2023 15:56:49 +0000 Subject: [PATCH] Update main.py --- main.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index 04bc799..bcaa9dc 100644 --- a/main.py +++ b/main.py @@ -107,14 +107,12 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], -#@tasks.loop(seconds = 5.0) - # async def mensaje_jueves(): - # current_time = time.localtime() # innecesario - # dia_semana = current_time.tm_wday # innecesario - # channel = bot.get_channel(1051497546708697120) - # if time.localtime().tm_wday == 5: - # await channel.send("prueba") - #return +@tasks.loop(seconds = 5.0) + async def mensaje_jueves(): + channel = bot.get_channel(1051497546708697120) + if time.localtime().tm_wday == 5: + await channel.send("prueba") + return