Update main.py

This commit is contained in:
Mike2.0
2023-11-09 17:48:59 +00:00
parent 4c07bfffe9
commit 0fd67a0ea6

View File

@@ -130,7 +130,7 @@ async def rima(ctx, message):
await ctx.reply(random.choice(["Te la mete en el pesquero","Apaliza a un forastero"]), mention_author=True, delete_after=5) await ctx.reply(random.choice(["Te la mete en el pesquero","Apaliza a un forastero"]), mention_author=True, delete_after=5)
elif message.content.lower().endswith("jueves") and message.author != bot.user: elif message.content.lower().endswith("jueves") and message.author != bot.user:
await ctx.reply(random.choice(jueves[1]), mention_author=True, delete_after=5) await ctx.reply(random.choice(["",""]), mention_author=True, delete_after=5)
except Exception as e: except Exception as e:
await send_log(f"rip. Error: ```{e}```") await send_log(f"rip. Error: ```{e}```")
@@ -140,13 +140,6 @@ async def send_log(msg):
channel = bot.get_channel(1153800096761262152) channel = bot.get_channel(1153800096761262152)
await channel.send(msg) await channel.send(msg)
def parse_jueves(f):
jueves_file = open(f)
for line in jueves_file.readlines():
if len(line.rstrip()) == 0:
continue
link = [_ for _ in line.split()[0]]
jueves.append((links))
def parse_cmds(f): def parse_cmds(f):
cmd_file = open(f) cmd_file = open(f)