-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
53 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,10 @@ | ||
# Python Spam BOT | ||
|
||
# Author: Thushara Thiwanka | ||
# Version: v0.0.1 | ||
# Released: 12-07-2021 | ||
|
||
import pyautogui | ||
import keyboard | ||
import time | ||
import random | ||
from alive_progress import alive_bar | ||
|
||
# countdown function | ||
def countdown(sec): | ||
while not (sec < 0): | ||
timer = sec | ||
print("Spaming in ", timer, end="\r") | ||
time.sleep(1) | ||
sec -= 1 | ||
|
||
|
||
spamText = [] | ||
count = 0 | ||
|
||
flag = 'y' | ||
|
||
while (flag == 'y'): | ||
text = input("Spam Text : ") | ||
spamText.append(text) | ||
flag = input("Do you want to add more messages(y/n) : ") | ||
if (flag == 'n'): | ||
break | ||
|
||
count = int(input("How many times : ")) | ||
interval = float(input("Time interval(sec) : ")) | ||
|
||
# input time in seconds | ||
sec = 5 | ||
|
||
# countdown function call | ||
countdown(int(sec)) | ||
|
||
with alive_bar(count, title="Spaming!", spinner="classic") as bar: | ||
for _ in range(count): | ||
pyautogui.typewrite(random.choice(spamText)) | ||
pyautogui.press('enter') | ||
time.sleep(interval) | ||
bar() | ||
print('\nDone') | ||
|
||
print("Press any key to continue") | ||
keyboard.read_key() | ||
print("Happy hacking...! ;-)") | ||
# Python Spam BOT | ||
|
||
# Author: Thushara Thiwanka | ||
# Version: v0.0.1 | ||
# Released: 12-07-2021 | ||
|
||
from src import main | ||
|
||
if __name__ == '__main__': | ||
main.main() |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import pyautogui | ||
import keyboard | ||
import time | ||
import random | ||
from alive_progress import alive_bar | ||
|
||
# countdown function | ||
def countdown(sec): | ||
while not (sec < 0): | ||
timer = sec | ||
print("Spaming in ", timer, end="\r") | ||
time.sleep(1) | ||
sec -= 1 | ||
|
||
def main(): | ||
spamText = [] | ||
count = 0 | ||
|
||
flag = 'y' | ||
|
||
while (flag == 'y'): | ||
text = input("Spam Text : ") | ||
spamText.append(text) | ||
flag = input("Do you want to add more messages(y/n) : ") | ||
if (flag == 'n'): | ||
break | ||
|
||
count = int(input("How many times : ")) | ||
interval = float(input("Time interval(sec) : ")) | ||
|
||
# input time in seconds | ||
sec = 5 | ||
|
||
# countdown function call | ||
countdown(int(sec)) | ||
|
||
with alive_bar(count, title="Spaming!", spinner="classic") as bar: | ||
for _ in range(count): | ||
pyautogui.typewrite(random.choice(spamText)) | ||
pyautogui.press('enter') | ||
time.sleep(interval) | ||
bar() | ||
print('\nDone') | ||
|
||
print("Press any key to continue") | ||
keyboard.read_key() | ||
print("Happy hacking...! ;-)") |