Skip to content

chemharuka/genshin-auto-daily-check-in-docker

 
 

Repository files navigation

genshin-auto-daily-check-in-docker

Genshin impact HoyoLab's automatic check in Docker image. You can register multiple accounts at once.

Github

How to use

1. Get cookie

  1. visit hoyolab.com.

  2. log in.

  3. presss F12 open developer tools.

  4. console console.log(document.cookie), get '_MHYUUID=a8808267-xxxx-xxxx-xxxx-xxxxxxxxxxxx; mi18nLang=zh-cn; G_ENABLED_IDPS=google; cookie_token=xxxxxxxxxxxxxxxx; account_id=182xxxxxx; ltoken=xxxxxxxxxx; ltuid=182xxxxxx'

  5. Copy ltuid and ltoken from that tab.

2. build

docker build ./genshin-auto-daily-check-in-docker

Requirements

python>=3.9
schedule
genshin
rich

3. Using Docker Images

These tokens are examples.

docker run -d
    --restart=always
    -e ACCOUNT1=13435465,AbCdEFGhIjKLmnoPQRsTUvWxYZ
    -e ACCOUNT2=32132132,PQRsTUvWxYZAbCdEFGhIjKLmno
    $IMAGE_ID

All environment variables starting with ACCOUNT.

You must enter the ltuid and ltoken separated by ,.

Example image

The result is as above.

available environment variables explanation example
ACCOUNT~ Cookie information. 13435465,AbCdEFGhIjKLmnoPQRsTUvWxYZ
SERVER The language information to use. Default "en-us" en-us
TIME It's time to check in every day. Based on Beijing (UTC+8). Default "01:00" 01:00

About

Genshin auto daily check in docker image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.9%
  • Dockerfile 4.1%