-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmain.py
More file actions
40 lines (30 loc) · 885 Bytes
/
Copy pathmain.py
File metadata and controls
40 lines (30 loc) · 885 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
36
37
38
39
40
"""The central program that ties all the modules together."""
import time
from src.easymaple.modules.bot import Bot
from src.easymaple.modules.capture import Capture
from src.easymaple.modules.notifier import Notifier
from src.easymaple.modules.listener import Listener
from src.easymaple.modules.gui import GUI
from src.easymaple.common import cache
def main():
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()
if __name__== "__main__":
main()