Skip to content

Release v5.0.0

Choose a tag to compare

@github-actions github-actions released this 07 Sep 19:30
· 6 commits to main since this release
f4d845b

Replace Google image search with BongBot-Booru (#161)

Closes #82

Google is closing the Custom Search JSON API, so the image commands
needed a new source. Image search now comes from the new @pookiesoft/bongbot-booru package, which ships its own commands and a swappable provider (Safebooru by default, Gelbooru with credentials).

What changed

  • Added @pookiesoft/bongbot-booru, bumped @pookiesoft/bongbot-core to ^1.7.0.
  • buildCommands now appends the Booru commands, wiring them with a RetryingCaller, a provider from createProvider, and HttpImageDownloader.
  • Added an interactionCreate listener in index.ts for autocomplete, since Core only routes slash commands and the Booru tag options need it.
  • Removed /fox (fubuki.ts), /clown (polka.ts), helpers/googleSearch.ts, the GOOGLE_API_KEY / GOOGLE_CX config, and their tests.
  • Docs: rewrote the README setup and environment tables to match what's actually installed, and rebuilt .env.example around the current integrations.

Also in this branch, from work that ran alongside it: the Dockerfile moves to the Distroless nonroot user with host-owned bind mounts, and CONTRIBUTING.md was added.

Breaking

/fox and /clown are gone, replaced by the Booru commands.
GOOGLE_API_KEY and GOOGLE_CX can be dropped from any existing .env. The image build now needs NODE_AUTH_TOKEN for GitHub Packages; the published images don't.

AI use

ChatGPT 6 did the initial implementation of the Booru swap and the removal of the Google commands. Claude was used for the documentation passes (README, .env.example, ARCHITECTURE.md). I've read the diff and the wiring in buildCommands.ts and index.ts myself.

Testing

npm test is green: 36 suites, 318 tests, 100% statement coverage. New tests cover the autocomplete routing (dispatch, no-autocomplete commands, and error logging) and the updated command registration.