Moved main.py to serve.py, implemented modularization and added control module
This commit is contained in:
parent
ad6190b46a
commit
e185786959
6 changed files with 138 additions and 21 deletions
18
serve.py
Normal file
18
serve.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from threading import Thread
|
||||
|
||||
import libminecraft
|
||||
import libsignal
|
||||
import libcommon
|
||||
|
||||
|
||||
minecraftThread = Thread(target=libminecraft.main)
|
||||
signalThread = Thread(target=libsignal.main)
|
||||
|
||||
minecraftThread.start()
|
||||
signalThread.start()
|
||||
|
||||
|
||||
libcommon.loadModule("control")
|
||||
|
||||
minecraftThread.join()
|
||||
signalThread.join()
|
||||
Loading…
Add table
Add a link
Reference in a new issue