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}")