FireBot/core.py

23 lines
593 B
Python
Raw Normal View History

2023-10-23 22:10:07 +00:00
#!/usr/bin/python3
from os import system
from time import sleep
from threading import Thread
2023-11-05 01:37:35 +00:00
from logs import log
2024-03-06 18:33:04 +00:00
from timers import threadManager
2023-10-23 22:10:07 +00:00
2024-04-07 05:38:49 +00:00
2023-10-23 22:10:07 +00:00
def launch(server: str) -> None:
system(f"python3 -u ircbot.py {server}")
2023-10-23 22:10:07 +00:00
2024-03-06 18:33:04 +00:00
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"]},
}
2023-10-23 22:10:07 +00:00
2023-10-28 04:20:18 +00:00
2023-10-23 22:10:07 +00:00
if __name__ == "__main__":
2024-03-06 18:33:04 +00:00
threadManager(servers, True, "CORE")