Repository that hosts code to show my genshin stats.
Automatically claims:
- daily reward
- active primo codes (from https://www.pockettactics.com/genshin-impact/codes)
You will need to have or create Deta account and optionally some website hosting that supports php scripts.
- Create account if you don't have one
- Configure environment variables
- Set key to
GAME_UID
and value to your UID in game - Set
COOKIE
- Go to https://www.hoyolab.com/.
- Login to your account.
- Press F12 to open Inspect Mode (ie. Developer Tools).
- Go to
Console
- run
copy(document.cookie)
- (Optional) Set key to
WEB_KEY
and value to the generated key you created when you were editingindex.php
- (Optional) Set key to
WEB_URL
and value to your web url
- Set key to
- Go to the URL it gives you and add
/force-refresh
after it (e.g.https://dawdad.deta.dev/force-refresh
).
It should take a while to load and either say it timed out orOK
.
If it says timed out, then refresh until it doesn't.
Use some free hosting or your own.
- Edit
index.php
- Change
$KEY=""
to$KEY="SOME_GENERATED_KEY"
(eg.$KEY="f54as65f156a1f6as156dc156asc61asd56a64f65as46f4as6d"
)
- Change
- Upload file
index.php
- Load the page and make sure it's not showing any errors, you should see a blank page or a warning that page.html is missing