FireBot/core.py
2024-04-07 00:38:49 -05:00

22 lines
593 B
Python

#!/usr/bin/python3
from os import system
from time import sleep
from threading import Thread
from logs import log
from timers import threadManager
def launch(server: str) -> None:
system(f"python3 -u ircbot.py {server}")
servers = {
"ircnow": {"noWrap": True, "func": launch, "args": ["ircnow"]},
"replirc": {"noWrap": True, "func": launch, "args": ["replirc"]},
# "efnet": {"noWrap": True, "func": launch, "args": ["efnet"]},
"backupbox": {"noWrap": True, "func": launch, "args": ["backupbox"]},
}
if __name__ == "__main__":
threadManager(servers, True, "CORE")