recemos
This commit is contained in:
4
main.py
4
main.py
@@ -53,7 +53,7 @@ async def on_message(message):
|
|||||||
await send_log(f"rip. Error: ```{e}```")
|
await send_log(f"rip. Error: ```{e}```")
|
||||||
|
|
||||||
|
|
||||||
@bot.command(description=f"Añade una característica más de {os.environ['N1']} o {os.environ['N2']}!")
|
@bot.slash_command(description=f"Añade una característica más de {os.environ['N1']} o {os.environ['N2']}!")
|
||||||
async def add(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], os.environ['N2']])):
|
async def add(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], os.environ['N2']])):
|
||||||
try:
|
try:
|
||||||
msg = 0
|
msg = 0
|
||||||
@@ -76,7 +76,7 @@ async def add(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], os
|
|||||||
await send_log(f"rip. Error: ```{e}```")
|
await send_log(f"rip. Error: ```{e}```")
|
||||||
|
|
||||||
|
|
||||||
@bot.command(description=f"Borrar una característica de {os.environ['N1']} o {os.environ['N2']} (sólo admins)")
|
@bot.slash_command(description=f"Borrar una característica de {os.environ['N1']} o {os.environ['N2']} (sólo admins)")
|
||||||
async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], os.environ['N2']])):
|
async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], os.environ['N2']])):
|
||||||
try:
|
try:
|
||||||
msg = 0
|
msg = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user