Rewritten and finished framework and bot
This commit is contained in:
parent
f045967591
commit
49a9964ec5
7 changed files with 150 additions and 33 deletions
21
main.py
Normal file
21
main.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue