oleoleole
This commit is contained in:
4
main.py
4
main.py
@@ -93,7 +93,7 @@ async def add(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], os
|
|||||||
if attr.lower() not in msg.content.lower():
|
if attr.lower() not in msg.content.lower():
|
||||||
await msg.edit(content=f'{msg.content}\n- {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} en {user}")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
await ctx.respond("Característica ya añadida!", ephemeral=True)
|
await ctx.respond("Característica ya añadida!", ephemeral=True)
|
||||||
@@ -123,7 +123,7 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'],
|
|||||||
|
|
||||||
await msg.edit(content=f'{msg.content.replace(f"{NL}- {attr}", "")}')
|
await msg.edit(content=f'{msg.content.replace(f"{NL}- {attr}", "")}')
|
||||||
await ctx.respond("Característica eliminada :(", ephemeral=True)
|
await ctx.respond("Característica eliminada :(", ephemeral=True)
|
||||||
await send_log(f"Característica eliminada: {attr} por {ctx.user}")
|
await send_log(f"Característica eliminada: {attr} por {ctx.user} en {user}")
|
||||||
return
|
return
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user