Update main.py
This commit is contained in:
12
main.py
12
main.py
@@ -124,8 +124,16 @@ 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 == 5:
|
if time.localtime().tm_wday == 5: #aquí va el 0, no te olvides
|
||||||
await user.send("Buenos días, hoy es , estas son las asignaturas que tienes hoy:")
|
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:
|
except Exception as e:
|
||||||
await send_log(f"rip. Error: ```{e}```")
|
await send_log(f"rip. Error: ```{e}```")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user