aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
Diffstat (limited to 'cogs')
-rwxr-xr-xcogs/admin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cogs/admin.py b/cogs/admin.py
index 04a698e..014d4cb 100755
--- a/cogs/admin.py
+++ b/cogs/admin.py
@@ -287,6 +287,14 @@ class Admin(commands.Cog):
else:
await ctx.send(self.bot.config[str(ctx.message.guild.id)][key])
+ @commands.command(aliases=['rmvar'])
+ @commands.check(is_botmaster)
+ async def delvar(self, ctx, key):
+ """Deletes a config variable, be careful"""
+ with open('config.json', 'w') as f:
+ await ctx.send(f"Removed {self.bot.config[str(ctx.message.guild.id)].pop(key)}")
+ json.dump(self.bot.config, f, indent=4)
+
@commands.command()
@commands.check(is_mod)
async def blacklistvideo(self, ctx, uri):