cambio a elifs para mejorar la eficiencia

This commit is contained in:
binlab
2023-11-05 19:13:39 +00:00
parent 2b2491b6f2
commit f7495d9cfb

View File

@@ -40,15 +40,15 @@ async def on_message(message):
if message.content.startswith(f'{PREFIX}helpme'):
await message.channel.send(make_help())
if message.content.lower().endswith("murciano"):
elif message.content.lower().endswith("murciano"):
ctx = await bot.get_context(message)
await ctx.reply("Me la agarras con la mano", mention_author=True, delete_after=5)
if message.content.lower().endswith(("cinco", "5", "25", "veinticinco")):
elif message.content.lower().endswith(("cinco", "5", "25", "veinticinco")):
ctx = await bot.get_context(message)
await ctx.reply("Por el culo te la hinco", mention_author=True, delete_after=5)
if message.content.lower().endswith(("ocho", "8")) and not message.content.lower().endswith("endocho"):
elif message.content.lower().endswith(("ocho", "8")) and not message.content.lower().endswith("endocho"):
ctx = await bot.get_context(message)
await ctx.reply("Por el culo te la endocho", mention_author=True, delete_after=5)