Added !filter !leave, fixed CC permissions

This commit is contained in:
Twentysix
2016-02-14 20:31:56 +01:00
parent ff6025e582
commit bd66de2c98
4 changed files with 133 additions and 11 deletions

View File

@@ -12,8 +12,8 @@ class CustomCommands:
self.bot = bot
self.c_commands = fileIO("data/customcom/commands.json", "load")
@checks.mod_or_permissions()
@commands.command(pass_context=True, no_pm=True)
@checks.mod_or_permissions(manage_server=True)
async def addcom(self, ctx, command : str, *text):
"""Adds a custom command
@@ -37,8 +37,8 @@ class CustomCommands:
else:
await self.bot.say("`This command already exists. Use editcom to edit it.`")
@checks.mod_or_permissions()
@commands.command(pass_context=True, no_pm=True)
@checks.mod_or_permissions(manage_server=True)
async def editcom(self, ctx, command : str, *text):
"""Edits a custom command
@@ -63,8 +63,8 @@ class CustomCommands:
else:
await self.bot.say("`There are no custom commands in this server. Use addcom [command] [text]`")
@checks.mod_or_permissions()
@commands.command(pass_context=True, no_pm=True)
@checks.mod_or_permissions(manage_server=True)
async def delcom(self, ctx, command : str):
"""Deletes a custom command