From 33823e2dab37d140b8bf23592d7fdec7c4f674a2 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Fri, 7 Apr 2017 23:38:18 +0200 Subject: [PATCH] [CC] [p]customcom list: Removed mod check --- cogs/customcom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/customcom.py b/cogs/customcom.py index 30b9ab40b..ba6753b28 100644 --- a/cogs/customcom.py +++ b/cogs/customcom.py @@ -17,13 +17,13 @@ class CustomCommands: self.c_commands = dataIO.load_json(self.file_path) @commands.group(aliases=["cc"], pass_context=True, no_pm=True) - @checks.mod_or_permissions(administrator=True) async def customcom(self, ctx): """Custom commands management""" if ctx.invoked_subcommand is None: await self.bot.send_cmd_help(ctx) @customcom.command(name="add", pass_context=True) + @checks.mod_or_permissions(administrator=True) async def cc_add(self, ctx, command : str, *, text): """Adds a custom command @@ -52,6 +52,7 @@ class CustomCommands: "".format(ctx.prefix)) @customcom.command(name="edit", pass_context=True) + @checks.mod_or_permissions(administrator=True) async def cc_edit(self, ctx, command : str, *, text): """Edits a custom command @@ -77,6 +78,7 @@ class CustomCommands: "".format(ctx.prefix)) @customcom.command(name="delete", pass_context=True) + @checks.mod_or_permissions(administrator=True) async def cc_delete(self, ctx, command : str): """Deletes a custom command