OoFakesmileoO / Genshin-Check-In

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Genshin Impact Check-In Helper

Daily Check-In

Original Repository (defunct)

TakaGG fork

Napkatti fork

Usage

  1. Fork this repository to your own account.
  2. Go to the Daily Check-In event website https://webstatic-sea.mihoyo.com/ys/event/signin-sea/index.html?act_id=e202102251931481&lang=en-us
  3. Log in with your MiHoYo/Genshin Impact account.
    If you have never checked in before, manually check in once to ensure that your cookies are set properly.
  4. Open the developer tools on your web browser (F12 on firefox/chrome)
  5. Click on the "Console" tab
  6. Type in document.cookie in the console
  7. Copy the text output from the console
  8. Go back to your GitHub repository page, Click "Settings" on the top right
  9. Click "Secrets" on the bottom left
  10. Click "New Repository Secret" on the top right
  11. In the "Name" box type in OS_COOKIE
  12. In the "Value" box paste the text you copied earlier
    • Remove any quotation marks "" at the front or end of the text
    • Go back to the MiHoYo event website. You may close the tab but do not click the "Log Out" button because it may cause your cookie to expire.
    • IF YOU WANT TO CHECK-IN MULTIPLE GENSHIN ACCOUNTS:
    1. Paste your first cookie into the Value box on GitHub, but do not click "Add Secret" yet.
    2. Open a new private browsing / Incognito window
    3. Go to the MiHoYo event website on your new browser instance, and log in with your second account
    4. Copy the document.cookie as before
    5. Go back to the GitHub page, and type a hash # at the end of your first cookie
    6. Paste your second cookie immediately after the # and remove the quotation marks "" if needed
  13. Click "Add Secret"
  14. Click the "Actions" tab in the top middle of the page
  15. Click "I understand my workflows"
  16. Click "Genshin Impact Helper Global"
  17. Click "Enable workflows"
  18. Click main-os.yml to edit your schedule, and pick what time of day the script should check-in for you.
  19. Click the edit button
  20. Change only the first two numbers.
    The second number is the hour of day and the first number is minute of hour
    Note that the time is in UTC, so convert to your timezone whatever time is most convenient.
  21. Go back and click Run Workflow.
  22. You should see a yellow circle next to the job. Wait for it to become a green check mark.

If you see the green check mark, congratulations, your auto check-in has been successfully set up.
Your script will now automatically run every day at your scheduled time, without you needing to have your browser open.

If you no longer want to check in automatically, you must manually disable your workflow or delete your Github repository.

Discord Webhooks

This is an OPTIONAL step to let the script send you a notification on Discord whenever it runs a check-in.

Instructions provided by https://github.com/am-steph/genshin-impact-helper

  1. Edit channel settings. (Create your own discord server or private channel for this)
  2. Go into Integrations and view webhooks.
  3. Create a new webhook and copy the URL.
  4. Go back to the "Secrets" tab on the repository and add a new secret called DISCORD_WEBHOOK.
  5. Run the github action again and check for message in the channel you set the webhook in

To stop receiving Discord notifications, delete your DISCORD_WEBHOOK secret.

About


Languages

Language:Python 100.0%