Rewritten and finished framework and bot

This commit is contained in:
Malasaur 2025-08-28 20:39:20 +02:00
parent f045967591
commit 49a9964ec5
7 changed files with 150 additions and 33 deletions

21
main.py Normal file
View file

@ -0,0 +1,21 @@
from importlib import import_module
from threading import Thread
from subprocess import run
from pathlib import Path
import libminecraft
import libsignal
minecraftThread = Thread(target=libminecraft.main)
signalThread = Thread(target=libsignal.main)
minecraftThread.start()
signalThread.start()
for file in Path("modules").iterdir():
if file.name.endswith(".py"):
import_module("modules."+file.name[:-3])
minecraftThread.join()
signalThread.join()