-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFarmBot.py
More file actions
45 lines (39 loc) · 1.16 KB
/
Copy pathFarmBot.py
File metadata and controls
45 lines (39 loc) · 1.16 KB
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
# Developed by: MasterkinG32
# Date: 2024
# Github: https://github.com/masterking32
# Telegram: https://t.me/MasterCryptoFarmBot
import sys
import os
MasterCryptoFarmBot_Dir = os.path.dirname(
os.path.dirname(os.path.abspath(__file__ + "/../../"))
)
sys.path.append(MasterCryptoFarmBot_Dir)
class FarmBot:
def __init__(
self,
log,
bot_globals,
account_name,
web_app_query,
proxy=None,
user_agent=None,
isPyrogram=False,
tgAccount=None,
):
self.log = log
self.bot_globals = bot_globals
self.account_name = account_name
self.web_app_query = web_app_query
self.proxy = proxy
self.user_agent = user_agent
self.isPyrogram = isPyrogram
self.tgAccount = tgAccount
async def run(self):
self.log.info(
f"<g>🤖 Farming is starting for account <cyan>{self.account_name}</cyan>...</g>"
)
# If self.tg is not None, it means you can use Pyrogram...
self.log.info(
f"<blue>[Development Only] URL: <c>{self.web_app_query}</c></blue>"
)
# Login and other codes here ...