Git Product home page Git Product logo

hoyoverse-github-action-daily-checkin's Introduction

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

hoyoverse-github-action-daily-checkin's People

Contributors

zvyap avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.