From 3500e33fba9d41d54f1d14d63383930c850e3b74 Mon Sep 17 00:00:00 2001 From: "Mike2.0" Date: Sat, 11 Nov 2023 17:04:15 +0000 Subject: [PATCH] Update Horario.py --- Horario.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Horario.py b/Horario.py index 686b6c9..0d8ccaf 100644 --- a/Horario.py +++ b/Horario.py @@ -1,9 +1,18 @@ import time -@tasks.loop(hours = 24.0) -async def mensaje_jueves(): +#días = { +#0: 'Lunes' +#1: 'Martes' +#2: 'Miércoles' +#3: 'Jueves' +#4: 'Viernes' +#} + + +@tasks.loop(seconds = 5.0) +async def horario(): try: - channel = bot.get_channel() - if time.localtime().tm_wday == 3: - await channel.send("Buenos días, hoy es ") \ No newline at end of file + user = client.get_user(670695670486794260) + if time.localtime().tm_wday == 5: + await user.send("prueba")