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

Method update_user_balance

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

Source from the content-addressed store, hash-verified

254 ))
255
256 async def update_user_balance(self):
257 balance = await self._api.user_balance()
258 if not balance:
259 raise Exception("Failed to get balance.")
260 self.farming_data = balance.get("farming")
261 if self.farming_data:
262 self.farming_data.update({"farming_delta_times": self.farming_data.get("endTime") - balance.get("timestamp")})
263 self.play_passes = balance.get("playPasses", 0)
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()

Callers 4

check_tasksMethod · 0.95
play_drop_gameMethod · 0.95
check_farmingMethod · 0.95
runMethod · 0.95

Calls 2

user_balanceMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected