Not needed?
This commit is contained in:
parent
ffdd19f46a
commit
e6034fa254
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user