diff --git a/cogs/customcom.py b/cogs/customcom.py index d33624d3c..12b631219 100644 --- a/cogs/customcom.py +++ b/cogs/customcom.py @@ -21,9 +21,6 @@ class CustomCommands: !addcom yourcommand Text you want """ server = ctx.message.server - content = ctx.message.content - chars = (len(ctx.prefix), len(ctx.invoked_with), len(command)) - text = content[chars[0] + chars[1] + chars[2] + 2:] # Gets text of the command command = command.lower() if not server.id in self.c_commands: self.c_commands[server.id] = {} @@ -45,9 +42,6 @@ class CustomCommands: !editcom yourcommand Text you want """ server = ctx.message.server - content = ctx.message.content - chars = (len(ctx.prefix), len(ctx.invoked_with), len(command)) - text = content[chars[0] + chars[1] + chars[2] + 2:] # Gets text of the command command = command.lower() if server.id in self.c_commands: cmdlist = self.c_commands[server.id]