FireBot/core.py

24 lines
660 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
from threads 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"]},
2024-04-12 02:41:15 +00:00
"efnet": {"noWrap": True, "func": launch, "args": ["efnet"]},
2024-03-06 18:33:04 +00:00
"backupbox": {"noWrap": True, "func": launch, "args": ["backupbox"]},
2024-04-27 03:30:29 +00:00
"twitch": {"noWrap": True, "func": launch, "args": ["twitch"]},
2024-03-06 18:33:04 +00:00
}
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")