Пример #1
0
def test_daily_reward():
    signed_in, claimed_rewards = gs.get_daily_reward_info()
    reward = gs.claim_daily_reward()

    if signed_in:
        assert reward is None
    else:
        assert reward is not None

        rewards = gs.get_monthly_rewards()
        assert rewards[claimed_rewards]["name"] == reward["name"]
import genshinstats as gs
import os
gs.set_cookie(ltuid=int(os.environ.get('LTUID')),
              ltoken=os.environ.get('LTOKEN'))

info = gs.get_daily_reward_info()
print('total rewards claimed:', info[1])
print("Get Reward :", gs.claim_daily_reward()
      )  # signed you in, returns a bool whether it succeeded
info = gs.get_daily_reward_info()
print('total rewards claimed:', info[1])  # check-in completed if increased
Пример #3
0
"""Automaticallly checks-in and claims the daily reward every 24 hours"""
import genshinstats as gs
import time

gs.set_cookie_auto()

while True:
    reward = gs.claim_daily_reward()
    if reward is not None:
        print(f"Claimed daily reward - {reward['cnt']}x {reward['name']}")
    else:
        print("Could not claim daily reward")
    time.sleep(24*60*60 - 2)
Пример #4
0
 def test_daily_reward(self):
     gs.claim_daily_reward()
Пример #5
0
import genshinstats as gs
import os
gs.set_cookie(ltuid = int(os.environ.get('LTUID')), ltoken = os.environ.get('LTOKEN'))

info = gs.get_daily_reward_info()
print('total rewards claimed:',info[1])
print(gs.claim_daily_reward()) # signed you in, returns a bool whether it succeeded
info = gs.get_daily_reward_info()
print('total rewards claimed:',info[1]) # check-in completed if increased