mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
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:
1 parent
f142c514cd
commit
45414b3baa
3 files changed
+99
-3
No files matched your search
+2
-1
@@ -74,7 +74,8 @@ async function main() {
|
||||
config,
|
||||
logger,
|
||||
avatarStore,
|
||||
permissions
|
||||
permissions,
|
||||
CONFIG_PATH
|
||||
);
|
||||
await botManager.loadSavedBots();
|
||||
|
||||
|
||||
Reference in new issue
Block a user