HANDZCZ / genshin-stats

Repository that host code to show my genshin stats. Claims daily reward and active primo codes.
https://genshin.handz.us.to/
15 stars 5 forks source link
code codes game genshin genshin-impact genshinimpact primogem primogems primos reward rewards stats

Genshin stats

Repository that hosts code to show my genshin stats.\ Automatically claims:

My stats

Deploy

Setup

You will need to have or create Deta account and optionally some website hosting that supports php scripts.

Deta

  1. Create account if you don't have one
  2. Deploy
  3. Configure environment variables
    1. Set key to GAME_UID and value to your UID in game
    2. Set COOKIE
      1. Go to https://www.hoyolab.com/.
      2. Login to your account.
      3. Press F12 to open Inspect Mode (ie. Developer Tools).
      4. Go to Console
      5. run copy(document.cookie)\ image
    3. (Optional) Set key to WEB_KEY and value to the generated key you created when you were editing index.php
    4. (Optional) Set key to WEB_URL and value to your web url
  4. 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 or OK.\ If it says timed out, then refresh until it doesn't.

Website (optional)

Use some free hosting or your own.

  1. Edit index.php
    1. Change $KEY="" to $KEY="SOME_GENERATED_KEY" (eg. $KEY="f54as65f156a1f6as156dc156asc61asd56a64f65as46f4as6d")
  2. Upload file index.php
  3. 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