feat(guest): prune deleted bot from guest scope on removeBot

When a bot is deleted, prune its id from config.guestMode.bots (when an
array) and persist, mirroring the existing permissions.pruneBot(id)
member-access pruning. Thread CONFIG_PATH into BotManager so removeBot
can save the updated config.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
saopig1andClaude Opus 4.8 committed 2026-06-25 14:58:46 +08:00
1 parent f142c514cd
commit 45414b3baa
3 files changed
+99 -3

No files matched your search

+2 -1
View File
@@ -74,7 +74,8 @@ async function main() {
config,
logger,
avatarStore,
permissions
permissions,
CONFIG_PATH
);
await botManager.loadSavedBots();