spammer.py

mail@pastecode.io avatar
unknown
python
2 years ago
335 B
1
Indexable
Never
# spammer.py

import keyboard
import time


def readFile():
    with open('output.txt', 'r') as file:
        words = file.read().splitlines()
    return words

words = readFile()
time.sleep(3)
print(len(words))
for i in range(30):
    time.sleep(1)
    keyboard.write(words[i])
    keyboard.press_and_release('enter')