-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
100 lines (96 loc) · 3.55 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import pyautogui
import time
import keyboard
while True:
print("""
.----------------. .----------------. .----------------. .----------------. .----------------.
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| | ____ ____ | || | __ | || | ______ | || | _______ | || | ____ | |
| ||_ \ / _|| || | / \ | || | .' ___ | | || | |_ __ \ | || | .' `. | |
| | | \/ | | || | / /\ \ | || | / .' \_| | || | | |__) | | || | / .--. \ | |
| | | |\ /| | | || | / ____ \ | || | | | | || | | __ / | || | | | | | | |
| | _| |_\/_| |_ | || | _/ / \ \_ | || | \ `.___.'\ | || | _| | \ \_ | || | \ `--' / | |
| ||_____||_____|| || ||____| |____|| || | `._____.' | || | |____| |___| | || | `.____.' | |
| | | || | | || | | || | | || | | |
| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
'----------------' '----------------' '----------------' '----------------' '----------------'
""")
print("1.auto clicker mouse")
print("2.spambot")
choice = input("choice>")
if choice=="1":
print(" for the bot to start clicking click r \n if it should stop click z \n to go back to the selection click x \n to eat the food you have in slot 2 click c \n to auto clicking ctrl click v \n to throw a snowball or fireball in slot 3 press f to build automatically hold down")
while True:
time.sleep(0.01)
if keyboard.is_pressed('r'):
while True :
pyautogui.doubleClick()
keyboard.press("Space")
if keyboard.is_pressed('z'):
break
else:
if keyboard.is_pressed('c'):
keyboard.press("2")
pyautogui.drag(30, 0, 1.61, button='right')
keyboard.press("1")
else:
time.sleep(0.01)
if keyboard.is_pressed('x'):
break
else:
time.sleep(0.01)
if keyboard.is_pressed('c'):
keyboard.press("2")
pyautogui.drag(30, 0, 1.61, button='right')
keyboard.press("1")
else:
time.sleep(0.01)
if keyboard.is_pressed('v'):
while True:
time.sleep(0.1)
keyboard.press("shift")
time.sleep(0.1)
pyautogui.click(button='right')
if keyboard.is_pressed('z'):
break
else:
time.sleep(0.01)
if keyboard.is_pressed('f'):
keyboard.press("3")
pyautogui.click(button='right')
keyboard.press("1")
else:
if choice=="2":
while True:
message = input("message>")
print("1.spam minecraft")
print("2.normal spam")
print("3.exit from spam bota")
spammode = input("spam mode>")
if spammode=="3":
break
czas = 0.1
czas = input("how much should I spam? >")
if spammode=="1":
print("click r for the bot to start spamming, if it has to go back to the message writing stage, click z")
keyboard.wait('r')
while True:
keyboard.press('t')
time.sleep(float(czas))
keyboard.write(message)
time.sleep(float(czas))
keyboard.press("Enter")
time.sleep(float(czas))
if keyboard.is_pressed('z'):
break
else:
if spammode=="2":
print("click r for the bot to start spamming, if it has to go back to the message writing stage, click z")
keyboard.wait('r')
while True:
time.sleep(float(czas))
keyboard.write(message)
time.sleep(float(czas))
keyboard.press("Enter")
if keyboard.is_pressed('z'):
break