-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (24 loc) · 687 Bytes
/
main.py
File metadata and controls
32 lines (24 loc) · 687 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
import os
os.system("cls")
print("\n[*] Warming up engine...\n")
from threading import Thread
from modules import module_grabscreen
from modules.config import *
def startBot():
os.system("python3 ./start_discordBot.py")
def startGrab():
try:
x, y = int(screen_resolution.split("x")[0]), int(screen_resolution.split("x")[1])
module_grabscreen.grabScreen(x,y)
except KeyboardInterrupt:
print("\n[*] Stopping bot...")
except Exception as e:
print(e)
try:
thread0 = Thread(target=startBot)
thread1 = Thread(target=startGrab)
thread0.start()
thread1.start()
except Exception as e:
print(e)
exit()