Update main.py

This commit is contained in:
Mike2.0
2023-11-12 18:13:52 +00:00
parent 4171b05a71
commit 451c0c806c

15
main.py
View File

@@ -125,18 +125,21 @@ async def mensaje_jueves():
async def horario(): async def horario():
try: try:
user = bot.get_user(670695670486794260) user = bot.get_user(670695670486794260)
if time.localtime().tm_wday == 0: if time.localtime().tm_wday == 0:
await user.send(f"""Buenos días, hoy es lunes, estas son las asignaturas que tienes hoy: await user.send(f"""Buenos días, hoy es lunes, estas son las asignaturas que tienes hoy:
{OrdenTorturas[0]}""") {OrdenTorturas[0]}""")
if time.localtime().tm_wday == 6: #aquí va el 1, no te olvides if time.localtime().tm_wday == 1:
await user.send(f"""Buenos días, hoy es martes, estas son las asignaturas que tienes hoy: await user.send(f"""Buenos días, hoy es martes, estas son las asignaturas que tienes hoy:
{OrdenTorturas[1]}""") {OrdenTorturas[1]}""")
if time.localtime().tm_wday == 2: if time.localtime().tm_wday == 6: #aquí va el 2, no te olvides
await user.send(f"""Buenos días, hoy es miércoles, estas son las asignaturas que tienes hoy:""") await user.send(f"""Buenos días, hoy es miércoles, estas son las asignaturas que tienes hoy:
{OrdenTorturas[2]}""")
if time.localtime().tm_wday == 3: if time.localtime().tm_wday == 3:
await user.send(f"""¡Felíz jueves! Estas son las asignaturas que tienes hoy:""") await user.send(f"""¡Felíz jueves! Estas son las asignaturas que tienes hoy:
{OrdenTorturas[3]}""")
if time.localtime().tm_wday == 4: if time.localtime().tm_wday == 4:
await user.send(f"""Buenos días, hoy es viernes, estas son las asignaturas que tienes hoy:""") await user.send(f"""Buenos días, hoy es viernes, estas son las asignaturas que tienes hoy:
{OrdenTorturas[4]}""")
except Exception as e: except Exception as e:
await send_log(f"rip. Error: ```{e}```") await send_log(f"rip. Error: ```{e}```")