forked from tanjeffreyz/auto-maple
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (26 loc) · 666 Bytes
/
main.py
File metadata and controls
35 lines (26 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""The central program that ties all the modules together."""
import time
from src.modules.bot import Bot
from src.modules.capture import Capture
from src.modules.notifier import Notifier
from src.modules.listener import Listener
from src.modules.gui import GUI
bot = Bot()
capture = Capture()
notifier = Notifier()
listener = Listener()
bot.start()
while not bot.ready:
time.sleep(0.01)
capture.start()
while not capture.ready:
time.sleep(0.01)
notifier.start()
while not notifier.ready:
time.sleep(0.01)
listener.start()
while not listener.ready:
time.sleep(0.01)
print('\n[~] Successfully initialized Auto Maple')
gui = GUI()
gui.start()