Cambio 3
This commit is contained in:
6
main.py
6
main.py
@@ -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}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user