Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Spambot/spambot.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (19 sloc)
882 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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") |