Repository navigation
Release v5.0.0
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-coreto^1.7.0. buildCommandsnow appends the Booru commands, wiring them with aRetryingCaller, a provider fromcreateProvider, andHttpImageDownloader.- Added an
interactionCreatelistener inindex.tsfor autocomplete, since Core only routes slash commands and the Booru tag options need it. - Removed
/fox(fubuki.ts),/clown(polka.ts),helpers/googleSearch.ts, theGOOGLE_API_KEY/GOOGLE_CXconfig, and their tests. - Docs: rewrote the README setup and environment tables to match what's actually installed, and rebuilt
.env.examplearound 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.