From 125ef7f6e40f33ce5a0fd359c6b9a5d70c1817ed Mon Sep 17 00:00:00 2001 From: binlaab <71317374+binlaab@users.noreply.github.com> Date: Fri, 27 Oct 2023 18:15:06 +0200 Subject: [PATCH] Cambio 3 --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3201524..15ee890 100644 --- a/main.py +++ b/main.py @@ -46,10 +46,14 @@ async def on_message(message): async def add(ctx, attr: str, user: str): if user == "Juan": channel = bot.get_channel(1166495380003889232) + msg = await channel.fetch_message(1167496435944652891) + elif user == "Arnau": channel = bot.get_channel(1153429735527948399) + msg = await channel.fetch_message(1153429808429158460) + if attr.lower() not in msg.content.lower(): - await channel.send(f'- {attr}') + await msg.edit(content=f'{msg.content}\n- {attr}') await ctx.respond(f"Característica añadida! ", ephemeral=True) await send_log(f"Característica añadida: {attr} por {ctx.user}")