From 0b7d731cab6f495979f5f571b1d160292c27dba7 Mon Sep 17 00:00:00 2001 From: "Mike2.0" Date: Fri, 10 Nov 2023 19:22:15 +0000 Subject: [PATCH] Update main.py --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 65de890..891ac5b 100644 --- a/main.py +++ b/main.py @@ -119,13 +119,13 @@ async def mensaje_jueves(): await channel.send("prueba") -async def send_message_on_thursday(): +async def cronómetro(): while True: current_date = datetime.datetime.now() if current_date.weekday() == 4: - if current_date.hour == 20 and current_date.minute == 20: - await send_message() - await asyncio.sleep(60) + if current_date.hour == 20 and current_date.minute == 24: + await mensaje_jueves() + await asyncio.sleep(20)