Rename classes representing commands to <CommandName>Command

This commit is contained in:
Al Beano
2019-08-09 23:06:34 +01:00
parent 56840e0060
commit 88077782f3
28 changed files with 28 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ def loadCommands():
for filename in listdir("commands"):
if filename.endswith(".py") and filename != "__init__.py":
commandName = filename[0:-3]
className = commandName.capitalize()
className = commandName.capitalize()+"Command"
try:
module = __import__('commands.%s' % commandName)
if not commandName in CommandMap: