-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoonbit.py
135 lines (121 loc) · 5.22 KB
/
moonbit.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#conda activate firstconda
#python "C:/Users/drakeredwind01/Desktop/moonbit.py"
import time
import os
#voice stuff
import pyttsx3
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[len(voices)-1].id)
def speak(audio):
print('Computer: ' + audio)
engine.say(audio)
engine.runAndWait()
speak('speach online')
import webbrowser
import pyautogui
#speak('staring in 3')
#speak('2')
#speak('1')
def imNotARobot():
speak('how dare you question me')
imNotARobot = pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\im not a robot.png', confidence=0.8)
pyautogui.click(pyautogui.center(imNotARobot))
print(imNotARobot)
def coinFarm():
speak('opening coin-farm')
webbrowser.open('https://coin-farm.net/account/store')
time.sleep(3)
COLLECTALL = pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\coin-farm COLLECT ALL.png', confidence=0.8)
pyautogui.click(pyautogui.center(COLLECTALL))
#print(pyautogui.locateOnScreen("start.png"))
print(COLLECTALL)
def moonbit():
speak('opening coin-farm')
webbrowser.open('https://moonbit.co.in/')
time.sleep(3)
pyautogui.scroll(-20)
def moonbitclaimnow():
moonbitclaimnow = False
while moonbitclaimnow==False:
if (pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\moonbitclaimnow.png') is not None):
moonbitclaimnow = True
hit = pyautogui.locateCenterOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\moonbitclaimnow.png', confidence=0.6)
print(hit)
pyautogui.click(hit)
pyautogui.scroll(-100)
def moonbitimnotarobot():
moonbitimnotarobot = False
while moonbitimnotarobot==False:
if (pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\moonbitimnotarobot.png') is not None):
moonbitimnotarobot = True
hit = pyautogui.locateCenterOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\moonbitimnotarobot.png', confidence=0.6)
print(hit)
pyautogui.click(hit)
def moonbitsubmit():
moonbitsubmit = False
while moonbitsubmit==False:
if (pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\moonbitsubmit.png') is not None):
moonbitsubmit = True
hit = pyautogui.locateCenterOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\moonbitsubmit.png', confidence=0.6)
print(hit)
pyautogui.click(hit)
moonbitclaimnow()
moonbitimnotarobot()
moonbitsubmit()
def bitfun():
def bitfunclaimnow():
bitfunclaimnow = False
while bitfunclaimnow==False:
if (pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\bitfunclaimnow.png', confidence=0.8) is not None):
bitfunclaimnow = True
hit = pyautogui.locateCenterOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\bitfunclaimnow.png', confidence=0.8)
print(hit)
pyautogui.click(hit)
time.sleep(3)
pyautogui.moveRel(xOffset=100,yOffset=100,duration=3,pause=3)
if (pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\bitfunclaimnow.png', confidence=0.8) is not None):
bitfunclaimnow = True
hit = pyautogui.locateCenterOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\bitfunclaimnow.png', confidence=0.8)
print(hit)
time.sleep(3)
def imnotarobot():
imnotarobot = False
while imnotarobot==False:
if (pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\imnotarobot.png') is not None):
imnotarobot = True
hit = pyautogui.locateCenterOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\imnotarobot.png', confidence=0.8)
print(hit)
pyautogui.click(hit)
time.sleep(1)
def claim():
claim = False
while claim==False:
if (pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\claim.png') is not None):
claim = True
hit = pyautogui.locateCenterOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\claim.png', confidence=0.8)
print(hit)
pyautogui.click(hit)
time.sleep(1)
def close():
close = False
while close==False:
if (pyautogui.locateOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\close.png') is not None):
close = True
hit = pyautogui.locateCenterOnScreen('C:\\Users\\drakeredwind01\\Desktop\\BTC sources\\close.png', confidence=0.8)
print(hit)
pyautogui.click(hit)
time.sleep(1)
speak('opening bitfun')
webbrowser.open('https://bitfun.co/games')
time.sleep(5)
bitfunclaimnow()
imnotarobot()
claim()
close()
if __name__ == '__main__':
#start()
coinFarm()
#moonbit()
#moonbit2()
#bitfun()