Closed CustomIcon closed 3 years ago
here is the example code i used:
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)```
browser-cookie3
is an optional dependency because it's only required for set_cookie_auto
. If you want to use it you must install the library yourself. Raising an error is the intended behavior.
oh, maybe we can let the user know about this and raise an error that instruct on how to install the library ina simple line?
Sure, seems reasonable.
maybe: