mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
more cleanup
This commit is contained in:
parent
1f641f6ebf
commit
57258f2fcc
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user