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

Method check_daily_reward

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

Source from the content-addressed store, hash-verified

226 await asyncio.sleep(random_delay)
227
228 async def check_daily_reward(self):
229 daily_reward, status = await self._api.daily_reward_is_available()
230 if status is True:
231 self._log.info(f"Available {daily_reward} daily reward.")
232 status = await self._api.claim_daily_reward()
233 if status:
234 self._log.success(f"Daily reward claimed!")
235 else:
236 self._log.info(f"<y>No daily reward available.</y>")
237
238 async def update_points_balance(self, with_log: bool = False):
239 await asyncio.sleep(uniform(0.1, 0.5))

Callers 1

runMethod · 0.95

Calls 2

claim_daily_rewardMethod · 0.80

Tested by

no test coverage detected