Update main.py

This commit is contained in:
Mike2.0
2023-11-11 17:37:31 +00:00
parent 3ec5aade27
commit c18851b582

12
main.py
View File

@@ -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}```")