Intento 5

This commit is contained in:
binlab
2023-11-05 16:39:20 +00:00
parent b97737f615
commit b8f1c5d088

View File

@@ -33,6 +33,7 @@ async def on_ready():
@bot.event @bot.event
async def on_message(message): async def on_message(message):
ctx = await bot.get_context(message)
for cmd in cmds: for cmd in cmds:
if message.content.startswith(f'{PREFIX}{cmd[0]}'): if message.content.startswith(f'{PREFIX}{cmd[0]}'):
await message.channel.send(random.choice(cmd[1])) await message.channel.send(random.choice(cmd[1]))
@@ -42,7 +43,7 @@ async def on_message(message):
await message.channel.send(make_help()) await message.channel.send(make_help())
if message.content.lower().endswith("murciano"): if message.content.lower().endswith("murciano"):
ctx = await bot.get_context(message)
await ctx.reply("Me la agarras con la mano", ephemeral=True, mention_author=True) await ctx.reply("Me la agarras con la mano", ephemeral=True, mention_author=True)
@bot.command(description=f"Añade una característica más de {os.environ['N1']} o {os.environ['N2']}!") @bot.command(description=f"Añade una característica más de {os.environ['N1']} o {os.environ['N2']}!")