This commit is contained in:
binlaab
2023-10-27 18:15:06 +02:00
parent 75e069a90b
commit 125ef7f6e4

View File

@@ -46,10 +46,14 @@ async def on_message(message):
async def add(ctx, attr: str, user: str): async def add(ctx, attr: str, user: str):
if user == "Juan": if user == "Juan":
channel = bot.get_channel(1166495380003889232) channel = bot.get_channel(1166495380003889232)
msg = await channel.fetch_message(1167496435944652891)
elif user == "Arnau": elif user == "Arnau":
channel = bot.get_channel(1153429735527948399) channel = bot.get_channel(1153429735527948399)
msg = await channel.fetch_message(1153429808429158460)
if attr.lower() not in msg.content.lower(): 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 ctx.respond(f"Característica añadida! ", ephemeral=True)
await send_log(f"Característica añadida: {attr} por {ctx.user}") await send_log(f"Característica añadida: {attr} por {ctx.user}")