|
|
@ -2,6 +2,7 @@ from os import listdir
|
|
|
|
from importlib import reload
|
|
|
|
from importlib import reload
|
|
|
|
from sys import modules
|
|
|
|
from sys import modules
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from utils.logging.debug import debug
|
|
|
|
from utils.logging.log import *
|
|
|
|
from utils.logging.log import *
|
|
|
|
import commands
|
|
|
|
import commands
|
|
|
|
|
|
|
|
|
|
|
@ -9,7 +10,7 @@ from main import CommandMap
|
|
|
|
|
|
|
|
|
|
|
|
def loadSingle(commandName):
|
|
|
|
def loadSingle(commandName):
|
|
|
|
if commandName+".py" in listdir("commands"):
|
|
|
|
if commandName+".py" in listdir("commands"):
|
|
|
|
className = commandName.capitalize()
|
|
|
|
className = commandName.capitalize()+"Command"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if commandName in CommandMap.keys():
|
|
|
|
if commandName in CommandMap.keys():
|
|
|
|
reload(modules["commands."+commandName])
|
|
|
|
reload(modules["commands."+commandName])
|
|
|
|