torikushiii / hoyolab-auto

Auto check-in and others for any Hoyoverse games
https://ko-fi.com/torikushiii
GNU Affero General Public License v3.0
107 stars 24 forks source link
discord-webhook genshin genshin-impact genshinimpact google-apps-script honkai-star-rail honkai-starrail hoyolab hoyoverse mihoyo nodejs star-rail starrail telegram zenless-zone-zero zenlesszonezero

HoyoLab Auto Logo
HoyoLab Auto

NodeJS version badge License badge GitHub stars badge

HoyoLab Auto

A multi-purpose tool for any supported Hoyoverse games. This tool is designed to assist with daily check-ins, stamina checks, expedition checks, automatic code-redemption, and more.

Table of Contents

Google App Script

If you don't have a server to run this script and simply just want to use it for checking in, you can use Google App Script.

Supported Games

Features

Prerequisites

Installation

  1. Clone the repository.

  2. Run npm install to install the dependencies.

  3. You can configure your config using one of the following methods:

    1. Using the Setup Script:

      • For Windows, run the following npm script from the project root:
        npm run setup:windows
      • For Linux, use this command:
        npm run setup:linux
      • These commands will automatically open your default web browser to help you configure your settings through a web-based interface.
    2. Manual Configuration:

      • Copy the default.config.json5 file to create a config.json5 file:
        cp default.config.json5 config.json5
      • Open config.json5 and update it with your application's configuration settings.
  4. Follow the instructions in the default.config.json5 or config.json5 file.

Migration

[!NOTE] If you're using this project since the config.js file or config.jsonc and you're updating to the latest version, please run the following command to migrate your configuration to the new format.

npm run migrate

or

node convert.js

Usage

For a detailed usage guide, refer to this gist: Cookie Guide.

Notifications Setup

For setting up Discord or Telegram notifications, refer to the setup folder.

Running with Docker

This application can be easily managed and run using Docker. We provide a Makefile for convenience, but you can also use Docker commands directly.

1. Prerequisites

2. Configuration

You can configure your config using one of the following methods:

  1. Using the Setup Script:

    • For Windows, run the following npm script from the project root:
      npm run setup:windows
    • For Linux, use this command:
      npm run setup:linux
    • These commands will automatically open your default web browser to help you configure your settings through a web-based interface.
  2. Manual Configuration:

    • Copy the default.config.json5 file to create a config.json5 file:
      cp default.config.json5 config.json5
    • Open config.json5 and update it with your application's configuration settings.

3. Building and Running with Docker Compose

Using the Makefile (Recommended):

The provided Makefile simplifies common Docker tasks.

Using Docker Compose Directly:

If you prefer not to use the Makefile, you can use the following Docker Compose commands:

Contributing

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

If you have any suggestions or ideas, feel free to open an issue.

New to contributing?

To get started, fork the repo, make your changes, add, commit, and push your changes to your fork. Then, open a pull request. If you're new to GitHub, this tutorial might help.

You can support the project by giving it a star, sharing it with your friends, contributing to the project, and reporting any bugs you find.

Buy Me a Coffee

If this repo is useful to you, you can support me by buying me a coffee. Thank you!

ko-fi