/hsr-auto

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0


Honkai: Star Rail Helper

Alt

Honkai: Star Rail Helper

A multi-purpose tool for the Honkai Impact: Star Rail that can be used to automate the daily check-in process, check stamina and expedition status.

Services

If you don't want to use Node.js and only want to use it for auto check-in, you can use one of the following services:

Features

  • Auto Check-in
  • Multiple accounts
  • Stamina check (Node only)
    • Will send you notification if your stamina is above set threshold (default: 170)
  • Expedition check (Node only)
    • Will send you notification if your expedition is done
  • Reminders (Node only)
    • Dailies
      • Remind you to do your daily commission every day at 09:00 PM or your specified time (Only if you haven't done it yet)
    • Weeklies
      • Remind you to do your weekly boss every your specified time or Sunday 09:00 PM
      • Remind you to do your Simulated Universe points every your specified time or Sunday 09:00 PM
  • Discord notifications
  • Telegram notifications (Node only)
    • Commands
      • Check stamina
      • Check expedition status

Pre-requisites

Installation

  1. Clone the repository.
  2. Run npm install to install the dependencies.
  3. Create a config.js or rename example.config.js to config.js.
  4. Follow the instructions in the config.js file.

Usage

  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 "Console" tab.
  5. Type in document.cookie in the console and press Enter.
  6. Copy the output from the console.
  7. Paste the output into cookies property in the config.js file.
  8. Fill in the webhook field if you want to receive a Discord notification when the check-in is successful.
  9. Run index.js with node index.js if you want to run it indefinitely everytime the daily reset occurs.
  10. Run index.js with node index.js --sign if you want to run it once.
  11. Additonal arguments:
    • --stamina to check all accounts stamina. (You need to set your in-game uid for it to work)
    • --expedition to check all accounts expedition status. (You need to set your in-game uid for it to work)
    • --help to show the help menu.

Notifications

For Discord notifications or Telegram setup, refer to this folder: setup

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. If there's any bugs, please open an issue.