- Go to HoYoLab and sign-in your account
- Find
ltuid_v2
,ltoken_v2
andltmid_v2
in Cookies and Copy somewhere- You can find it from developer tools > Storage > Cookie >
https://www.hoyolab.com
- NOT
account_id_v2
,account_mid_v2
andcookie_token_v2
- You can find it from developer tools > Storage > Cookie >
- Fork this repository
- Go to Settings > Secrets and variables > Actions
- Add the following environment variables to Repository secrets
- HOYO_ACCOUNT_NUM : (optional) the Number of your HoYoLab accounts
- if you have multiple account, please set this var (2, 3, 4, ... etc)
- not specified, 1 by default (single account assumed)
- USER#_LTUID :
ltuid_v2
, HoYoverse/HoYoLab UID of account number #- if you have single account, USER0_LTUID should be specified.
- if you have multiple account, USER0_LTUID and USER1_LTUID ...(and so on) should be specified.
- USER#_LTOKEN :
ltoken_v2
, personal HoYoLab API access token of account number # - USER#_LTMID :
ltmid_v2
Another key value to access API of account number # - ##USER#_TARGET_GAMES : the game you want to claim the reward
HONKAI
,TOT
,GENSHIN
,STARRAIL
,ZZZ
- for multiple games, set it to a string separated by '+' (ex.
GENSHIN+STARRAIL
,HONHAI+ZZZ+GENSHIN
etc.)
- PREFER_LANG : (optional) the Language of the information printed at Actions
zh-cn
,zh-tw
,de-de
,en-us
,es-es
,fr-fr
,id-id
,it-it
,ja-jp
,ko-kr
,pt-pt
,ru-ru
,th-th
,vi-vn
,tr-tr
- not specified,
en-us
by default
- Go to Actions Tab in your repository.
- There is Claim Daily Reward action will be shown on the left
- click the result of the workflow run (whether run manually or triggered by a schedule).
- 🟡 for claimed more than once, ✅ for first claim
- Great! Now, you don't need to manually claim daily reward.
Setting a schedule cron variable as a repository variable is not possible due to GitHub policies.
- By default, it is set to UTC+21(KST+6),
- but if you want to change it, please edit the workflow.yml file directly.
All the content in this repository is licensed under the MIT License.
Copyright (c) 2024 pulnip