Skip to content

docs: credit upstream sources, add AGPL-3.0, fix seriaati misattribution - #3

Merged
exec-astraea merged 2 commits into
mainfrom
docs/sources-and-credits
Jul 25, 2026
Merged

docs: credit upstream sources, add AGPL-3.0, fix seriaati misattribution#3
exec-astraea merged 2 commits into
mainfrom
docs/sources-and-credits

Conversation

@exec-astraea

Copy link
Copy Markdown
Owner

Adds source/credit documentation, licenses the project, and fixes an attribution error the docs work uncovered.

Two commits

1. docs: — Sources + Credits + LICENSE

  • New Sources section: the three upstreams and how they merge (first source wins, later ones only fill blank rewards, partial failure tolerated).
  • New Credits section naming authors and upstream licenses.
  • Fixes the intro link — [OpenGachaCodes](config.example.yaml) used the project's name but pointed at our own config template.
  • Adds LICENSE (canonical AGPL-3.0, via the GitHub license API).

2. refactor: — fix misattribution

hoyo-codes.seria.moe is seriaati's (seriaati/hoyo-codes), but the code credited torikushiii throughout. AGENTS.md even paired torikushiii's repo URL with seriaati's endpoint.

  • Game.ToriGame.Seria, fetchTorifetchSeria, source label "tori""seria" (appears in partial-failure logs).
  • torikushiii remains credited where correct — api.ennead.cc is their hoyoverse-api, as is OpenGachaCodes.
  • Ennead keeps its name: it's the endpoint host, not an author.

Verified upstream

Repo Author License
torikushiii/hoyoverse-api torikushiii AGPL-3.0
seriaati/hoyo-codes seriaati GPL-3.0
torikushiii/OpenGachaCodes torikushiii none declared

OpenGachaCodes declares no license, so none is claimed for it in Credits. We consume all three over HTTP without linking or redistributing, so their copyleft imposes nothing here.

Why AGPL-3.0

A notifier daemon gets appropriated by being run as a hosted service, not by being distributed — so GPL-3.0's distribution trigger would never fire. AGPL §13 covers network use, which is the case that matters. Dependencies (robfig/cron MIT, yaml.v3 MIT/Apache-2.0) are permissive and compatible.

Testing

  • gofmt, go build, go vet, go test all pass.
  • Live smoke test against the real APIs after the rename: both sources returned codes for Genshin and ZZZ with no partial-failure warnings. Run with markExistingOnFirstRun: true and a scratch data dir, so nothing was posted to Discord.

🤖 Generated with Claude Code

exec-astraea and others added 2 commits July 25, 2026 13:29
Adds a Sources section documenting the three upstreams and how they are
merged (first source wins, later ones fill blank rewards, tolerate
partial failure), plus a Credits section naming the authors.

Corrects the intro link: "OpenGachaCodes" pointed at config.example.yaml
rather than the project it names.

Licenses the project AGPL-3.0. The network-use clause is the point — a
notifier daemon is appropriated by being run as a hosted service, not by
being distributed, which plain GPL would not cover.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The hoyo-codes.seria.moe API is seriaati's (seriaati/hoyo-codes), not
torikushiii's. The Tori field name and several comments credited the
wrong author, and AGENTS.md paired torikushiii's repo URL with seriaati's
endpoint.

Renames Game.Tori to Seria, fetchTori to fetchSeria, and the "tori"
source label to "seria" (visible in partial-failure logs). torikushiii is
still credited where correct: api.ennead.cc is their hoyoverse-api, as is
OpenGachaCodes.

Ennead keeps its name — it is the endpoint host, not an author.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@exec-astraea
exec-astraea merged commit 3ba9adc into main Jul 25, 2026
1 check passed
@exec-astraea
exec-astraea deleted the docs/sources-and-credits branch July 25, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant