This commit is contained in:
binlab
2023-11-12 18:25:33 +00:00
parent 6f9e749808
commit df4ec14ace

18
main.py
View File

@@ -125,18 +125,24 @@ async def mensaje_jueves():
async def horario():
try:
user = bot.get_user(670695670486794260)
if time.localtime().tm_wday == 0:
dia = time.localtime().tm_wday
if 0 < dia < 4:
horario = f'{NL}'.join([hora for hora in OrdenTorturas[2][1]])
else:
return
if dia == 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:
if dia == 1:
await user.send(f"""Buenos días, hoy es martes, estas son las asignaturas que tienes hoy:
{OrdenTorturas[1]}""")
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: {f'{NL}'.join([hora for hora in OrdenTorturas[2][1]])} (esto es una prueba)""")
if time.localtime().tm_wday == 3:
if dia == 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:
{horario} (esto es una prueba)""")
if dia == 3:
await user.send(f"""¡Felíz jueves! Estas son las asignaturas que tienes hoy:
{OrdenTorturas[3]}""")
if time.localtime().tm_wday == 4:
if dia == 4:
await user.send(f"""Buenos días, hoy es viernes, estas son las asignaturas que tienes hoy:
{OrdenTorturas[4]}""")
except Exception as e: