From 7a1f8c821c023de7fc606e05af553a2ec675988a Mon Sep 17 00:00:00 2001 From: binlab Date: Sat, 11 Nov 2023 00:05:36 +0000 Subject: [PATCH] =?UTF-8?q?Probabilidades=20a=C3=B1adidas=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 9844cae..f17fe5c 100644 --- a/main.py +++ b/main.py @@ -105,16 +105,12 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], await send_log(f"rip. Error: ```{e}```") - - '''@tasks.loop(seconds = 5.0) async def mensaje_jueves(): channel = bot.get_channel(1051497546708697120) await channel.send("prueba") ''' - - async def rima(ctx, message): try: if message.content.lower().endswith("murciano") and message.author != bot.user: @@ -136,13 +132,13 @@ async def rima(ctx, message): await ctx.reply(random.choice(["EstĂ¡ como una roca đŸ—¿","Mi rabo en tu boca"]), mention_author=True, delete_after=5) elif message.content.lower().endswith("catalĂ¡n") and message.author != bot.user: - await ctx.reply(random.choice(["Por el culo te la meterĂ¡n","El culo te arrasarĂ¡n"]), mention_author=True, delete_after=5) + await ctx.reply(random.choices(["Por el culo te la meterĂ¡n","El culo te arrasarĂ¡n"], k=1, weights=[9, 1]), mention_author=True, delete_after=5) elif message.content.lower().endswith("valero") and message.author != bot.user: - 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.choices(["Te la mete en el pesquero","Apaliza a un forastero"], k=1, weights=[9,1]), mention_author=True, delete_after=5) elif message.content.lower().endswith("jueves") and message.author != bot.user: - await ctx.reply(random.choice(["https://media.tenor.com/riA830QHvC8AAAAC/feliz-jueves-asuka.gif","https://media.tenor.com/L2-mDROrwgwAAAAd/racism.gif"]), mention_author=True) + await ctx.reply(random.choice(["https://media.tenor.com/riA830QHvC8AAAAC/feliz-jueves-asuka.gif","https://media.tenor.com/L2-mDROrwgwAAAAd/racism.gif"], k=1, weights=[9,1]), mention_author=True) except Exception as e: await send_log(f"rip. Error: ```{e}```")