MCPcopy Create free account
hub / github.com/HiddenCodeDevs/BlumTelegramBot / check_farming

Method check_farming

bot/core/tapper.py:276–290  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

274
275
276 async def check_farming(self):
277 await asyncio.sleep(uniform(1, 3))
278 if self.farming_data and self.farming_data.get("farming_delta_times") >= 0:
279 self._log.info(f"Farming process... Farmed balance: {self.farming_data.get('balance')}")
280 return
281 elif self.farming_data:
282 status = await self._api.claim_farm()
283 if status:
284 self._log.success(f"Claim farm <g>{self.farming_data.get('balance')}</g> points")
285 await asyncio.sleep(uniform(0.1, 0.5))
286
287 await self._api.start_farming()
288 self._log.info(f"Start farming!")
289 await asyncio.sleep(uniform(0.1, 0.5))
290 await self.update_user_balance()
291
292 async def run(self, proxy: str | None) -> None:
293 if not settings.DEBUG:

Callers 1

runMethod · 0.95

Calls 4

update_user_balanceMethod · 0.95
getMethod · 0.80
claim_farmMethod · 0.80
start_farmingMethod · 0.80

Tested by

no test coverage detected