Update main.py

This commit is contained in:
Mike2.0
2023-11-12 18:08:31 +00:00
parent 1a21fe9a94
commit 7c5b95e8cd

13
main.py
View File

@@ -125,17 +125,18 @@ async def mensaje_jueves():
async def horario():
try:
user = bot.get_user(670695670486794260)
if time.localtime().tm_wday == 6: #aquí va el 0, no te olvides
if time.localtime().tm_wday == 0:
await user.send(f"""Buenos días, hoy es lunes, estas son las asignaturas que tienes hoy:
{OrdenTorturas[0]}""")
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 == 6: #aquí va el 1, no te olvides
await user.send("""Buenos días, hoy es martes, estas son las asignaturas que tienes hoy:
{OrdenTorturas[0]}""")
if time.localtime().tm_wday == 2:
await user.send("Buenos días, hoy es miércoles, estas son las asignaturas que tienes hoy:")
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:")
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:")
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}```")