diff --git a/commands/loader.py b/commands/loader.py index 79f6a68..369aa3e 100644 --- a/commands/loader.py +++ b/commands/loader.py @@ -18,7 +18,7 @@ def load_commands_new(commandType: AbstractCommand.CommandType) -> Dict[str, Abs commands = compile_and_load_new(commandType) 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", "") spec = importlib.util.spec_from_file_location(module_name, path) module = importlib.util.module_from_spec(spec) @@ -33,7 +33,7 @@ def compile_and_load_file(path: str) -> (str, AbstractCommand): return "", None #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", "") spec = importlib.util.spec_from_file_location(module_name, path) module = importlib.util.module_from_spec(spec) diff --git a/twitch_script_standalone.py b/twitch_script_standalone.py index e40c8b4..921248d 100644 --- a/twitch_script_standalone.py +++ b/twitch_script_standalone.py @@ -66,7 +66,7 @@ class Twitch_Module(): # print("Sent ChatMSG") self.cooldownModule.actionTrigger("twitchChat") - def parse_line(self, message: str) -> (str, str): + def parse_line(self, message: str): first_space = False start = -1 idx = -1