-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
31 lines (24 loc) · 684 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
from time import sleep
from pyautogui import typewrite
from keyboard import is_pressed
print("PYTHON CHAT SPAMMER")
print("CLICK ON THE TEXT FIELD BEFORE TIME RUNS OUT")
def countdown(t):
while t:
mins, secs = divmod(t, 60)
timer = 'T - {:02d}:{:02d}'.format(mins, secs)
print(timer, end="\r")
sleep(1)
t -= 1
with open("./facts.txt", "r") as file:
facts = file.readlines()
SAFE_KEY = "q"
print("ALERT: THE SAFE KEY IS 'q'. TERMINATE THE PROGRAM BY PRESSING IT")
countdown(10)
print("Fire in the hole!!!!")
for line in facts:
sleep(1)
typewrite(line)
if is_pressed(SAFE_KEY):
break
print("PROGRAM TERMINATED")