Si el mensaje termina en "murciano" se responde con "me la agarras con la mano"

This commit is contained in:
binlab
2023-11-05 16:24:12 +00:00
parent 25714b0bda
commit 79c9b6ba3f

View File

@@ -32,7 +32,7 @@ async def on_ready():
@bot.event @bot.event
async def on_message(message): async def on_message(ctx, 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]))
@@ -41,6 +41,9 @@ async def on_message(message):
if message.content.startswith(f'{PREFIX}helpme'): if message.content.startswith(f'{PREFIX}helpme'):
await message.channel.send(make_help()) await message.channel.send(make_help())
if message.content.lower().endswith("murciano"):
await ctx.reply("Me la agarras con la mano", mention_author=True, ephemeral=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']}!")
async def add(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], os.environ['N2']])): async def add(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], os.environ['N2']])):