consent-recorder: let each consenter pick which servers to record in

The site lists only servers the bot and the user share (single-member REST
fetch, no privileged intent). Consent requires at least one server; the
choice can be changed later and removed servers stop recording at once.
Consent text mentions the server choice, so CONSENT_VERSION is bumped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-11-11 20:53:14 +09:00
parent 3a40645b12
commit f45d349f96
8 changed files with 152 additions and 21 deletions

View File

@@ -12,6 +12,7 @@ const site = createSite(cfg, store, {
consentChanged: (id) => bot.consentChanged(id),
discardActive: (id) => bot.discardActive(id),
recordingNow: (id) => bot.recordingNow(id),
userGuilds: (id) => bot.userGuilds(id),
});
site.listen(cfg.port, cfg.host, () => console.log(`[site] ${cfg.publicUrl} (http://${cfg.host}:${cfg.port})`));