Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions bot/core/tapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,19 @@ async def run(self, proxy: str | None):
continue

if settings.USE_TAP_BOT is True:
if bot_config['isPurchased'] is False:
if balance >= 200000:
await self.upgrade_boost(http_client=http_client,
boost_type=UpgradableBoostType.TAPBOT)
logger.info(f"{self.session_name} | Tapbot was purchased - Sleep 3s")
await asyncio.sleep(delay=3)
bot_config = await self.get_bot_config(http_client=http_client)
else:
logger.info(
f"{self.session_name} | Tapbot wasn't purchased due to insufficient balance - Sleep 3s")
await asyncio.sleep(delay=3)
bot_config = await self.get_bot_config(http_client=http_client)

if bot_config['isPurchased'] is True:
if bot_config['endsAt']:
ends_date_time = datetime.strptime(bot_config['endsAt'], '%Y-%m-%dT%H:%M:%S.%f%z')
Expand Down
1 change: 1 addition & 0 deletions bot/utils/boosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ class UpgradableBoostType(str, Enum):
TAP = "Damage"
ENERGY = "EnergyCap"
CHARGE = "EnergyRechargeRate"
TAPBOT = "TapBot"