From e2a2ba90fa9b87453556195d01d1dfb1d40593df Mon Sep 17 00:00:00 2001 From: "Mike2.0" Date: Fri, 10 Nov 2023 19:28:16 +0000 Subject: [PATCH] Update main.py --- main.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/main.py b/main.py index 27094e6..28aa8cd 100644 --- a/main.py +++ b/main.py @@ -107,25 +107,17 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], @bot.event - # async def jueves(): - # fecha = datetime.strftime(fecha, '%A %H:%M:%S') - # await send_log(f"{fecha}") - - - - async def mensaje_jueves(): - channel = client.get_channel(1051497546708697120) + channel = bot.get_channel(1051497546708697120) await channel.send("prueba") - -async def cronómetro(): +async def mensaje_jueves(): while True: current_date = datetime.datetime.now() if current_date.weekday() == 4: - if current_date.hour == 20 and current_date.minute == 26: + if current_date.hour == 20 and current_date.minute == 29: await mensaje_jueves() - await asyncio.sleep(20) + await asyncio.sleep(10)