# !python3
# Text Spammer - A script to spam posts.

"""
WARNING: I'm not responsible for any damage that may happen to your account! Proceed at your own risk!
Author: <NAME>
Built with: PYTHON 3.6.7
github: github.com/thepasterover
"""

import pyautogui, time

# Ask user for message and spam count
print("WARNING: I'm not responsible for any damage that may happen to your account! Proceed at your own risk!\n" +
	"To be on the safe side make a fake account for sites like FB.")
print("-" * 100)
message = input("Enter a message to spam?: ")

count = int(input("How many times do you want to spam?: "))



# Warn the user for more than 50 entered.
if count > 50:
	print("For your own well-being, please enter a number less than 50. ")

else:
	# Give user time to kill the script.
	print("-" * 100)
	print(">>>PRESS CTRL + C TO STOP THE SCRIPT;\n" + 
		"Place the cursor on the text bar, the spamming will start in 10 secs.")

	time.sleep(10)

	# Run the loop according to count given.
	for i in range(count):
		
		pyautogui.typewrite(message)
		pyautogui.press('enter')
		time.sleep(0.5)
	print("-" * 100)
    	print(str(count) + " messages have been sent successfully! .Thanks for using have fun!! ;)")

# !python3
# Text Spammer - A script to spam posts.

"""
WARNING: I'm not responsible for any damage that may happen to your account! Proceed at your own risk!
Author: <NAME>
Built with: PYTHON 3.6.7
github: github.com/thepasterover
"""

import pyautogui, time

# Ask user for message and spam count
print("WARNING: I'm not responsible for any damage that may happen to your account! Proceed at your own risk!\n" +
	"To be on the safe side make a fake account for sites like FB.")
print("-" * 100)
message = input("Enter a message to spam?: ")

count = int(input("How many times do you want to spam?: "))



# Warn the user for more than 50 entered.
if count > 50:
	print("For your own well-being, please enter a number less than 50. ")

else:
	# Give user time to kill the script.
	print("-" * 100)
	print(">>>PRESS CTRL + C TO STOP THE SCRIPT;\n" + 
		"Place the cursor on the text bar, the spamming will start in 10 secs.")

	time.sleep(10)

	# Run the loop according to count given.
	for i in range(count):
		
		pyautogui.typewrite(message)
		pyautogui.press('enter')
		time.sleep(0.5)
	print("-" * 100)
    	print(str(count) + " messages have been sent successfully! .Thanks for using have fun!! ;)")

# !python3 # Text Spammer - A script to spam posts. WARNING: I'm not responsible for any damage that may happen to your account! Proceed at your own risk! Author: <NAME> Built with: PYTHON 3.6.7 github: github.com/thepasterover # Ask user for message and spam count # Warn the user for more than 50 entered. # Give user time to kill the script. # Run the loop according to count given.