Update main.py
This commit is contained in:
11
main.py
11
main.py
@@ -14,6 +14,7 @@ NL = "\n"
|
|||||||
PREFIX = "f!"
|
PREFIX = "f!"
|
||||||
|
|
||||||
cmds = []
|
cmds = []
|
||||||
|
OrdenTorturas = []
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
@@ -192,14 +193,14 @@ def parse_cmds(f):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
def parse_horario(f):
|
def parse_OrdenTorturas(f):
|
||||||
horario_file = open(f)
|
OrdenTorturas_file = open(f)
|
||||||
for line in horario_file.readlines():
|
for line in OrdenTorturas_file.readlines():
|
||||||
if len(line.rstrip()) == 0:
|
if len(line.rstrip()) == 0:
|
||||||
continue
|
continue
|
||||||
día = line.split(" ")[0]
|
día = line.split(" ")[0]
|
||||||
asignaturas = [_ for _ in line.split()[1:]]
|
asignaturas = [_ for _ in line.split()[1:]]
|
||||||
horario.append((día, asignaturas))
|
OrdenTorturas.append((día, asignaturas))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -218,6 +219,6 @@ Disfrutad del bot
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parse_cmds("cmds.txt")
|
parse_cmds("cmds.txt")
|
||||||
parse_horario("horario.txt")
|
parse_OrdenTorturas("horario.txt")
|
||||||
make_help()
|
make_help()
|
||||||
bot.run(os.environ['TOKEN'])
|
bot.run(os.environ['TOKEN'])
|
||||||
Reference in New Issue
Block a user