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

Method check_friends_balance

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

Source from the content-addressed store, hash-verified

264 self._balance = balance.get('availableBalance') or self._balance
265
266 async def check_friends_balance(self):
267 balance = await self._api.get_friends_balance()
268 if not balance or not balance.get("canClaim", False) or not balance.get("amountForClaim", 0):
269 self._log.debug(f"Not available friends balance.")
270 return
271 await asyncio.sleep(uniform(1, 3))
272 amount = await self._api.claim_friends_balance()
273 self._log.success(f"Claim <g>{amount}</g> from friends balance!")
274
275
276 async def check_farming(self):

Callers 1

runMethod · 0.95

Calls 3

get_friends_balanceMethod · 0.80
getMethod · 0.80
claim_friends_balanceMethod · 0.80

Tested by

no test coverage detected