-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
46 lines (29 loc) · 819 Bytes
/
main.py
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
41
42
43
44
45
46
# Project RCoD by Alex Arbuckle #
# import <
from sys import argv
from time import sleep
from lxrbckl.screen import screen
from src.classes.roles import roles
from src.classes.microphone import mic
from src.classes.runtime import runtime
# >
# variables <
role = argv[1]
version = "3.0.0"
# >
if (__name__ == "__main__"):
print(f"Project RCoD - Version: {version}")
try:
mic = mic()
roles = roles()
screen = screen()
runtime = runtime()
while (runtime.stop(screen) == False):
facetimeAction = {
"call" : roles.call,
"answer" : roles.answer
}[role]
facetimeAction(screen)
mic.mute(screen)
sleep(60)
except KeyboardInterrupt: exit(0)