File tree 3 files changed +57
-53
lines changed
3 files changed +57
-53
lines changed Original file line number Diff line number Diff line change 1
- # Python Spam BOT
2
-
3
- # Author: Thushara Thiwanka
4
- # Version: v0.0.1
5
- # Released: 12-07-2021
6
-
7
- import pyautogui
8
- import keyboard
9
- import time
10
- import random
11
- from alive_progress import alive_bar
12
-
13
- # countdown function
14
- def countdown (sec ):
15
- while not (sec < 0 ):
16
- timer = sec
17
- print ("Spaming in " , timer , end = "\r " )
18
- time .sleep (1 )
19
- sec -= 1
20
-
21
-
22
- spamText = []
23
- count = 0
24
-
25
- flag = 'y'
26
-
27
- while (flag == 'y' ):
28
- text = input ("Spam Text : " )
29
- spamText .append (text )
30
- flag = input ("Do you want to add more messages(y/n) : " )
31
- if (flag == 'n' ):
32
- break
33
-
34
- count = int (input ("How many times : " ))
35
- interval = float (input ("Time interval(sec) : " ))
36
-
37
- # input time in seconds
38
- sec = 5
39
-
40
- # countdown function call
41
- countdown (int (sec ))
42
-
43
- with alive_bar (count , title = "Spaming!" , spinner = "classic" ) as bar :
44
- for _ in range (count ):
45
- pyautogui .typewrite (random .choice (spamText ))
46
- pyautogui .press ('enter' )
47
- time .sleep (interval )
48
- bar ()
49
- print ('\n Done' )
50
-
51
- print ("Press any key to continue" )
52
- keyboard .read_key ()
53
- print ("Happy hacking...! ;-)" )
1
+ # Python Spam BOT
2
+
3
+ # Author: Thushara Thiwanka
4
+ # Version: v0.0.1
5
+ # Released: 12-07-2021
6
+
7
+ from src import main
8
+
9
+ if __name__ == '__main__' :
10
+ main .main ()
Original file line number Diff line number Diff line change
1
+ import pyautogui
2
+ import keyboard
3
+ import time
4
+ import random
5
+ from alive_progress import alive_bar
6
+
7
+ # countdown function
8
+ def countdown (sec ):
9
+ while not (sec < 0 ):
10
+ timer = sec
11
+ print ("Spaming in " , timer , end = "\r " )
12
+ time .sleep (1 )
13
+ sec -= 1
14
+
15
+ def main ():
16
+ spamText = []
17
+ count = 0
18
+
19
+ flag = 'y'
20
+
21
+ while (flag == 'y' ):
22
+ text = input ("Spam Text : " )
23
+ spamText .append (text )
24
+ flag = input ("Do you want to add more messages(y/n) : " )
25
+ if (flag == 'n' ):
26
+ break
27
+
28
+ count = int (input ("How many times : " ))
29
+ interval = float (input ("Time interval(sec) : " ))
30
+
31
+ # input time in seconds
32
+ sec = 5
33
+
34
+ # countdown function call
35
+ countdown (int (sec ))
36
+
37
+ with alive_bar (count , title = "Spaming!" , spinner = "classic" ) as bar :
38
+ for _ in range (count ):
39
+ pyautogui .typewrite (random .choice (spamText ))
40
+ pyautogui .press ('enter' )
41
+ time .sleep (interval )
42
+ bar ()
43
+ print ('\n Done' )
44
+
45
+ print ("Press any key to continue" )
46
+ keyboard .read_key ()
47
+ print ("Happy hacking...! ;-)" )
You can’t perform that action at this time.
0 commit comments