Not needed?

This commit is contained in:
Alex Orid 2021-04-21 16:14:22 -04:00
parent ffdd19f46a
commit e6034fa254
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ def load_commands_new(commandType: AbstractCommand.CommandType) -> Dict[str, Abs
commands = compile_and_load_new(commandType) commands = compile_and_load_new(commandType)
return commands return commands
def compile_and_load_file(path: str) -> (str, AbstractCommand): def compile_and_load_file(path: str):
module_name = os.path.split(path)[1].replace(".py", "") module_name = os.path.split(path)[1].replace(".py", "")
spec = importlib.util.spec_from_file_location(module_name, path) spec = importlib.util.spec_from_file_location(module_name, path)
module = importlib.util.module_from_spec(spec) module = importlib.util.module_from_spec(spec)
@ -33,7 +33,7 @@ def compile_and_load_file(path: str) -> (str, AbstractCommand):
return "", None return "", None
#New #New
def compile_and_load_file_new(path: str, commandType: AbstractCommand.CommandType) -> (str, AbstractCommand): def compile_and_load_file_new(path: str, commandType: AbstractCommand.CommandType):
module_name = os.path.split(path)[1].replace(".py", "") module_name = os.path.split(path)[1].replace(".py", "")
spec = importlib.util.spec_from_file_location(module_name, path) spec = importlib.util.spec_from_file_location(module_name, path)
module = importlib.util.module_from_spec(spec) module = importlib.util.module_from_spec(spec)

View File

@ -66,7 +66,7 @@ class Twitch_Module():
# print("Sent ChatMSG") # print("Sent ChatMSG")
self.cooldownModule.actionTrigger("twitchChat") self.cooldownModule.actionTrigger("twitchChat")
def parse_line(self, message: str) -> (str, str): def parse_line(self, message: str):
first_space = False first_space = False
start = -1 start = -1
idx = -1 idx = -1