MIT License

项目介绍

dvgamerr-app/go-hoyolab 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 MIT License 许可证,目前获得 48 个 Star、3 次 Fork。

仓库全名
dvgamerr-app/go-hoyolab
开源许可证
MIT License
Star 数
48
Fork 数
3
未关闭 Issue
1

README 摘要

🎮 go-hoyolab Daily HoYoLAB check-in for every HoYoverse game — set it up once, forget it forever. English · ภาษาไทย · Website · Discord ✨ Why Zero setup for login — it reuses the HoYoLAB session you already have in Firefox. No passwords, no tokens to copy. One small binary — a single hoyolab executable for Windows, macOS, Linux and FreeBSD. No runtime, no Docker. Every game in one run — all your enabled games are…

完整内容见 GitHub 原始 README 或本页 。

常见问题

go-hoyolab 用什么语言开发?

主要使用 Go 编写,采用 MIT License 许可证,目前有 48 个 Star。

go-hoyolab 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 go-hoyolab 的源码?

可以直接克隆仓库:git clone https://github.com/dvgamerr-app/go-hoyolab.git,默认分支为 main;安装与运行步骤见仓库 README。

go-hoyolab 最近还在维护吗?

仓库最近一次更新为 3 周前,当前有 1 个未关闭 Issue;Star 数为 48,可作为社区活跃度的参考。

关于

Hoyolab Automatic Daily Check-in Bot Hoyoverse Game. A lightweight, secure, and FREE Supports Genshin Impact, Honkai Impact 3rd, Zenless Zone Zero, Honkai: Star Rail.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Go
HTML
JavaScript

Release

README

🎮 go-hoyolab

Daily HoYoLAB check-in for every HoYoverse game — set it up once, forget it forever.

Build Go Report Card Release License PRs welcome

English · ภาษาไทย · Website · Discord

check-in log

✨ Why

  • Zero setup for login — it reuses the HoYoLAB session you already have in Firefox. No passwords, no tokens to copy.
  • One small binary — a single hoyolab executable for Windows, macOS, Linux and FreeBSD. No runtime, no Docker.
  • Every game in one run — all your enabled games are checked in together, for as many accounts as you have profiles.
  • Tells you what you got — a Discord (or LINE) message lists today’s reward for each game.
  • Updates itself — picks up new releases from GitHub automatically.

🕹️ Supported games

Game Key in hoyolab.yaml Default
Genshin Impact GSI ✅
Honkai: Star Rail HSR ✅
Zenless Zone Zero ZZZ ✅
Honkai Impact 3rd HI3 —

🚀 Quick start

  1. Sign in to https://www.hoyolab.com/home in Firefox (or LibreWolf, Waterfox, Zen, Floorp).

  2. Download the archive for your OS from the latest release and unpack it.

  3. Run it:

    ./hoyolab          # Windows: hoyolab.exe
    

That is all. On the first run it writes a hoyolab.yaml next to the binary; edit it to add notifications or switch games on and off.

Important 重要

Chrome, Edge and Brave are no longer supported. They encrypt cookies with App-Bound Encryption (v20), which cannot be read from outside the browser. If your old hoyolab.yaml has profile[].browser: chrome (or edge / brave), change it to firefox — those entries are ignored with a warning.

To see which browser profiles were found:

./hoyolab --list

⚙️ Configuration

notify:
  discord-webhook: "https://discord.com/api/webhooks/..."   # optional
  line-notify: ""                                           # optional
  mini: true
profile:
  - browser: firefox
    name: []            # empty = every Firefox profile; or list profile names
games:                  # remove or comment out the games you do not play
  - GSI
  - HSR
  - ZZZ

Existing configs that still use the old per-game config: blocks keep working and are migrated automatically the next time the file is written.

🔔 Notifications

Provider How
Discord Create a webhook in Channel settings → Integrations and paste the URL into notify.discord-webhook.
LINE Notify Generate a token at notify-bot.line.me and paste it into notify.line-notify. LINE has retired this service, so prefer Discord.

Discord notification

⏰ Run it every day

Windows — Task Scheduler → Create Basic Task → Daily (e.g. 5 am) → Start a program → hoyolab.exe. Or put a shortcut to hoyolab.exe in shell:startup to check in each time the PC boots.

macOS / Linux — add a cron job:

0 5 * * * /path/to/hoyolab

🛠️ Development

go test ./...
go vet ./...
go build ./...
  • Tests never touch a real browser profile, real credentials or an outbound notification service.
  • Cookie reading lives in go-kooky/v2; game endpoints are in act/games.go; notification delivery is in act/notify.go.
  • If go build fails on VCS stamping, use go build -buildvcs=false ./....

Contributions are welcome — please open an issue first for anything large.

💬 Help

Found a bug or want a game added? Open an issue, or come say hi on Discord.

Join us on Discord

📄 License

MIT © Kananek Thongkam

评论

暂无评论