Skip to content

Latest commit

 

History

History

google-script

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Honkai: Star Rail Check-In Helper

Daily Check-In

Contents

Pre-requisites

  • Google Account

Setting-up

  1. Go to Google Apps Script.
  2. Create a new project.
  3. You will be greeted with this screen, delete the contents of myFunction and click on "Untitled project" to rename it.
  4. Copy the contents of index.js and paste it into the editor.
  5. Follow the Getting your cookie instruction.
  6. Add your cookie to the code
  7. Add DISCORD_WEBHOOK with your Discord webhook (optional).
  8. Click on save icon "Run" to run it once.
  9. When first running the script, you will be prompted to authorize the script.
  10. Click on "Review Permissions".
  11. Choose your Google account if prompted.
  12. You will be prompted to allow the script to access your Google account.
  13. Click on "Allow".
  14. After that when you run the script, the Execution log will show the output.

Getting your cookie

  1. Go to the Daily Check-In page here.
  2. Log in with your miHoYo account.
  3. Open the browser console (F12).
  4. Click on the "Application" tab.
  5. Type "lt" in the "Filter" bar. image
  6. Paste the ltoken and ltuid value to the COOKIE array on the code.

Trigger

If you want to automate the script, you can add a trigger to run it daily.

  1. Click on the "Triggers" icon.
  2. Click on "Add Trigger".
  3. Choose the following settings:
    • Choose which function to run: run
    • Choose which deployment should run: Head
    • Select event source: Time-driven
    • Select type of time based trigger: Day timer
    • Select time of day: Midnight to 1am or any time when the check-in resets
  4. Click on "Save".