Update main.py
This commit is contained in:
17
main.py
17
main.py
@@ -200,7 +200,24 @@ Disfrutad del bot
|
|||||||
return help[1]
|
return help[1]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def parse_horario(f):
|
||||||
|
horario_file = open(f)
|
||||||
|
for line in cmd_file.readlines():
|
||||||
|
if len(line.rstrip()) == 0:
|
||||||
|
continue
|
||||||
|
día = line.split(" ")[0]
|
||||||
|
asignaturas = [_ for _ in line.split()[1:]]
|
||||||
|
horario.append((día, asignaturas))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
parse_horario("horario.txt")
|
||||||
parse_cmds("cmds.txt")
|
parse_cmds("cmds.txt")
|
||||||
make_help()
|
make_help()
|
||||||
bot.run(os.environ['TOKEN'])
|
bot.run(os.environ['TOKEN'])
|
||||||
Reference in New Issue
Block a user