Skip to content
Snippets Groups Projects
Commit b365f253 authored by Reviath's avatar Reviath
Browse files

Update cogs/moderation.py

parent 37d7e80e
No related branches found
No related tags found
No related merge requests found
......@@ -476,12 +476,6 @@ class Moderation(commands.Cog):
mycursor.execute(sql2, val)
mydb.commit()
await ctx.send(f'Disabled {command}.')
else:
sql2 = "INSERT INTO disabledcommands (commandname, guildid) VALUES (%s, %s)"
val = (command, ctx.guild.id)
mycursor.execute(sql2, val)
mydb.commit()
await ctx.send(f'Disabled {command}.')
@commands.command(brief="Allows you to enable command", description="Allows you to enable command")
@commands.has_permissions(administrator=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment