Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
initial commit
  • Loading branch information
Jack Baumgartel authored and Jack Baumgartel committed Aug 14, 2020
0 parents commit b813f79
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions 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")

0 comments on commit b813f79

Please sign in to comment.