メインコンテンツにスキップ

hoyolab-auto-sign

A lightweight, secure, and free script that automatically collect Hoyolab daily check in rewards. Supports Genshin Impact, Honkai Impact 3rd, and Honkai: Star Rail.

AI Summary

hoyolab-auto-sign

Automate HoYoLAB daily check-in rewards with GAS

Target Users

Developers of any level building personal GAS scripts to automate HoYoLAB daily check-ins and notifications

Problems Solved

Manual HoYoLAB check-ins are error-prone and easy to miss; notifying results is cumbersome

Tags

Main Features

1
Lightweight

Works with minimal setup and about 90 lines of code

2
Self-hosted and secure

Self-deploy to GAS, reducing data leakage concerns

3
Free

Google Apps Script is free to use

4
Easy notifications

Runs without a browser and notifies via Discord or Telegram

5
Multi-account support

Supports multiple HoYoLAB accounts and multiple game titles

Usage Examples

Single account auto check-in with Discord notification

Enables Genshin Impact and Honkai: Star Rail auto check-ins, with Discord notifications and ping (from README demo).

const profiles = [
  {
    token: "account_mid_v2=123xyzabcd_hi; account_id_v2=26XXXXX20; ltoken_v2=v2_CANARIAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX3406; ltmid_v2=123xyzabcd_hi; ltuid_v2=26XXXXX20;",
    genshin: true,
    honkai_star_rail: true,
    accountName: "HuTao"
  }
];

const discord_notify = true
const myDiscordID = "240000800000300040"
const discordWebhook = "https://discord.com/api/webhooks/10xxxxxxxxxxxxxxx60/6aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXnB"

On success it sends "OK"; if already checked in today, a corresponding message is sent.