|
1 | 1 | # hoyo-codes — agent guide |
2 | 2 |
|
3 | 3 | A small Go service that watches for new gacha **redemption codes** (Genshin |
4 | | -Impact, Honkai: Star Rail, Zenless Zone Zero, Honkai Impact 3rd, and Wuthering |
5 | | -Waves) and posts them to **Discord webhooks** on a cron schedule. Docker-first, |
6 | | -no database, no framework. |
| 4 | +Impact, Honkai: Star Rail, Zenless Zone Zero, Honkai Impact 3rd, Wuthering Waves, |
| 5 | +and Arknights: Endfield) and posts them to **Discord webhooks** on a cron |
| 6 | +schedule. Docker-first, no database, no framework. |
7 | 7 |
|
8 | 8 | Codes are pulled from up to three APIs and merged/de-duplicated, so a hiccup on |
9 | 9 | one source doesn't cause a miss. A source is skipped for any game it doesn't |
@@ -189,7 +189,7 @@ When adding a config knob: add it to `fileConf`, resolve/validate it in |
189 | 189 | `genshin`, `hkrpg`, `nap`, `honkai3rd`. Shape: `{"codes":[{"code","rewards":"A*60;B*5"}]}` |
190 | 190 | (active only). Rewards get normalized (`A*60;B*5` → `A ×60, B ×5`). |
191 | 191 | - **OpenGachaCodes** — `<opengachaBaseUrl>/games/<slug>/codes`, slugs `genshin`, |
192 | | - `starrail`, `zenless`, `wuwa` (also endfield/nte, not yet in the registry). |
| 192 | + `starrail`, `zenless`, `wuwa`, `endfield` (also `nte`, not yet in the registry). |
193 | 193 | Shape: a flat array `[{"code","rewards":["Astrite x50", ...]}]` (active only). |
194 | 194 | Self-hosted, no auth/CORS, GET-only, strict paths (no trailing slash). A `404` |
195 | 195 | is treated as "nothing to contribute" (not a source failure). Reward quantities |
|
0 commit comments