[CC] [p]customcom list: Removed mod check

This commit is contained in:
Twentysix 2017-04-07 23:38:18 +02:00
parent 55f6307b7f
commit 33823e2dab

View File

@ -17,13 +17,13 @@ class CustomCommands:
self.c_commands = dataIO.load_json(self.file_path) self.c_commands = dataIO.load_json(self.file_path)
@commands.group(aliases=["cc"], pass_context=True, no_pm=True) @commands.group(aliases=["cc"], pass_context=True, no_pm=True)
@checks.mod_or_permissions(administrator=True)
async def customcom(self, ctx): async def customcom(self, ctx):
"""Custom commands management""" """Custom commands management"""
if ctx.invoked_subcommand is None: if ctx.invoked_subcommand is None:
await self.bot.send_cmd_help(ctx) await self.bot.send_cmd_help(ctx)
@customcom.command(name="add", pass_context=True) @customcom.command(name="add", pass_context=True)
@checks.mod_or_permissions(administrator=True)
async def cc_add(self, ctx, command : str, *, text): async def cc_add(self, ctx, command : str, *, text):
"""Adds a custom command """Adds a custom command
@ -52,6 +52,7 @@ class CustomCommands:
"".format(ctx.prefix)) "".format(ctx.prefix))
@customcom.command(name="edit", pass_context=True) @customcom.command(name="edit", pass_context=True)
@checks.mod_or_permissions(administrator=True)
async def cc_edit(self, ctx, command : str, *, text): async def cc_edit(self, ctx, command : str, *, text):
"""Edits a custom command """Edits a custom command
@ -77,6 +78,7 @@ class CustomCommands:
"".format(ctx.prefix)) "".format(ctx.prefix))
@customcom.command(name="delete", pass_context=True) @customcom.command(name="delete", pass_context=True)
@checks.mod_or_permissions(administrator=True)
async def cc_delete(self, ctx, command : str): async def cc_delete(self, ctx, command : str):
"""Deletes a custom command """Deletes a custom command