diff --git a/spambot.py b/spambot.py new file mode 100644 index 0000000..e7f8412 --- /dev/null +++ b/spambot.py @@ -0,0 +1,27 @@ +"""Spambot text typer for MacOS - Jack Baumgartel +Instructions: Type or paste your message into an empty txt, csv, doc, or py file, +then open terminal, navigate to a directory that has both your message file and this +file inside. run the following command in the terminal, and enjoy! 'python3 spambot.py' """ + +import pyautogui +import time + +pyautogui.FAILSAFE = True + +print('What is your message file name?') +name = input() +words = [] + +with open(name, "r") as f: + words = f.read().split() + +time.sleep(0.5) +starttime = 20 + + +print('Open the location you wish to write your message, click in the type area, \nand wait! The program will start typing your message in {}s. To end the \nprogram, move your cursor quickly to any corner of your screen!'.format(starttime)) +time.sleep(starttime) + +for i in range(len(words)): + pyautogui.typewrite(words[i]) + pyautogui.press("enter") \ No newline at end of file