From 57258f2fcc7cd7ccb519dcdbcad2d8f313d63c80 Mon Sep 17 00:00:00 2001 From: Irdumb Date: Thu, 7 Apr 2016 11:47:00 +1000 Subject: [PATCH] more cleanup --- cogs/customcom.py | 6 ------ 1 file changed, 6 deletions(-) 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]