Skip to content

zvyap/hoyoverse-github-action-daily-checkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Action Hoyoverse Daily Check In

Features

  • Overseas server & Mainland China server supported
  • Multiaccount supported
  • Multigame supported
    • Genshin Impact
    • Honkai Impact 3RD
    • Honkai: Star Rail
    • Tears of Themis
  • Auto checked in every day
  • Discord Webhook
  • You can choose to update -> HERE~

How to use?

  • Create a fork of this project
  • Get the id and token of the account you want to check in daily
    • For those don't know how to get id and token -> Click Me!
  • Go to ./src/test/java/com/zvyap/hoyoapi/test/CheckInDailyTest.java
  • Click Edit this file button image
  • Change what game you want (just copy paste the line of code OR delete the line image image image
  • GameType's name please follow here [GENSHIN_IMPACT, HONKAI_IMPACT_3RD, HONKAI_STAR_RAIL, TEARS_OF_THEMIS]
  • For those only use for only account, you going to end here [If not scroll downward]
  • Just click Commit changes... at bottom right & click Commit changes

image
image

Put the token into github (LAST STEP)

  • Click Settings and click Secrets and variables -> Actions -> New repository secret image

image

image

image

  • Follow the picture below

image

image

  • If you got extra account, repeat the step with the secret you put in the gradle.yml file

Multiaccount

  • Copy this block of code
                CheckInAction.builder()
                        .token(HoyoToken.of(System.getenv("USER_1_ID"), System.getenv("USER_1_TOKEN")))
                        .game(GameType.GENSHIN_IMPACT)
                        .game(GameType.HONKAI_STAR_RAIL)
                        .build()
  • Paste it below the original code block in the file, also a , at the end of the previous code image
  • ONLY THE LAST PART OF THE CODE DOESN'T NEED ,
  • Edit the USER_1_ID and USER_1_TOKEN to other number [IMPORTANT]
    • Example: second user -> USER_2_ID and USER_2_TOKEN
    • Example: thrid user -> USER_3_ID and USER_3_TOKEN
    • Make sure it don't repeat
  • Click Commit changes... at bottom right & click Commit changes
  • Go to /.github/workflows/gradle.yml
  • Click Edit this file button image
  • Add the extra user secret (Remember the secret name you put)

image

Check is it working

  • Go to Actions tab
  • If Actions is not enabled, just enable it
  • Select Daily Check In Task

image

  • Click Run workflow -> Run workflow

image

image

  • If you see a green tick beside them, it mean checkin supported image
  • And it run every midnight 12:15