Update main.py

This commit is contained in:
Mike2.0
2023-11-12 17:56:35 +00:00
parent 9e9e113a3f
commit e1e7e83ccf

View File

@@ -126,7 +126,7 @@ async def horario():
try: try:
user = bot.get_user(670695670486794260) user = bot.get_user(670695670486794260)
if time.localtime().tm_wday == 6: #aquí va el 0, no te olvides if time.localtime().tm_wday == 6: #aquí va el 0, no te olvides
await user.send("Buenos días, hoy es lunes, estas son las asignaturas que tienes hoy:" NL(dia[1])) await user.send("Buenos días, hoy es lunes, estas son las asignaturas que tienes hoy: {NL.join(_[0] for _ in OrdenTorturas)}")
if time.localtime().tm_wday == 1: if time.localtime().tm_wday == 1:
await user.send("Buenos días, hoy es martes, estas son las asignaturas que tienes hoy:") await user.send("Buenos días, hoy es martes, estas son las asignaturas que tienes hoy:")
if time.localtime().tm_wday == 2: if time.localtime().tm_wday == 2:
@@ -192,7 +192,6 @@ def parse_cmds(f):
cmds.append((cmd, links)) cmds.append((cmd, links))
def parse_OrdenTorturas(f): def parse_OrdenTorturas(f):
OrdenTorturas_file = open(f) OrdenTorturas_file = open(f)
for line in OrdenTorturas_file.readlines(): for line in OrdenTorturas_file.readlines():
@@ -203,8 +202,6 @@ def parse_OrdenTorturas(f):
OrdenTorturas.append((dia, asignaturas)) OrdenTorturas.append((dia, asignaturas))
def make_help(): def make_help():
help = ("helpme", f"""El prefijo de este bot es: f! help = ("helpme", f"""El prefijo de este bot es: f!