From 4a9b3fcebb8b9f99b443ba2ab2a1e4312a5f432a Mon Sep 17 00:00:00 2001 From: Irdumb Date: Thu, 7 Apr 2016 10:40:38 +1000 Subject: [PATCH] can add customcoms with (), "" fixed by Will/tekulvw --- cogs/customcom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/customcom.py b/cogs/customcom.py index 0b27ac551..ca2ea9848 100644 --- a/cogs/customcom.py +++ b/cogs/customcom.py @@ -14,7 +14,7 @@ class CustomCommands: @commands.command(pass_context=True, no_pm=True) @checks.mod_or_permissions(manage_server=True) - async def addcom(self, ctx, command : str, *text): + async def addcom(self, ctx, command : str, *, text): """Adds a custom command Example: @@ -41,7 +41,7 @@ class CustomCommands: @commands.command(pass_context=True, no_pm=True) @checks.mod_or_permissions(manage_server=True) - async def editcom(self, ctx, command : str, *text): + async def editcom(self, ctx, command : str, *, text): """Edits a custom command Example: @@ -153,4 +153,4 @@ def setup(bot): check_files() n = CustomCommands(bot) bot.add_listener(n.checkCC, "on_message") - bot.add_cog(n) \ No newline at end of file + bot.add_cog(n)