From f7495d9cfbc0814615868de318a646f15b4b99e5 Mon Sep 17 00:00:00 2001 From: binlab Date: Sun, 5 Nov 2023 19:13:39 +0000 Subject: [PATCH] cambio a elifs para mejorar la eficiencia --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 62de46c..5b5152c 100644 --- a/main.py +++ b/main.py @@ -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)