From c18851b5826fb6e29597e088f333a024dcc3070e Mon Sep 17 00:00:00 2001 From: "Mike2.0" Date: Sat, 11 Nov 2023 17:37:31 +0000 Subject: [PATCH] Update main.py --- main.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4f688a7..0335dc9 100644 --- a/main.py +++ b/main.py @@ -124,8 +124,16 @@ async def mensaje_jueves(): async def horario(): try: user = bot.get_user(670695670486794260) - if time.localtime().tm_wday == 5: - await user.send("Buenos días, hoy es , estas son las asignaturas que tienes hoy:") + if time.localtime().tm_wday == 5: #aquí va el 0, no te olvides + await user.send("Buenos días, hoy es lunes, estas son las asignaturas que tienes hoy:") + if time.localtime().tm_wday == 1: + await user.send("Buenos días, hoy es martes, estas son las asignaturas que tienes hoy:") + if time.localtime().tm_wday == 2: + await user.send("Buenos días, hoy es miércoles, estas son las asignaturas que tienes hoy:") + if time.localtime().tm_wday == 3: + await user.send("¡Felíz jueves! Estas son las asignaturas que tienes hoy:") + if time.localtime().tm_wday == 4: + await user.send("Buenos días, hoy es viernes, estas son las asignaturas que tienes hoy:") except Exception as e: await send_log(f"rip. Error: ```{e}```")