feat(komari): add bot_node_config.json to restore single node configurarion

This commit is contained in:
2026-09-06 10:33:58 +08:00
parent 13a670eadd
commit 5bc85effa7
3 changed files with 67 additions and 0 deletions
+13
View File
@@ -170,3 +170,16 @@ type BotUserConfig struct {
}
var C_botUserConfig *BotUserConfig
// BotNodeOptions holds per-node options stored in bot_node_config.json. The
// struct is currently empty; per-node settings can be added here later without
// invalidating existing files.
type BotNodeOptions struct {
}
// BotNodeMembers maps a node UUID (as reported by Komari) to its per-node
// options. A plain struct value marshals to an empty JSON object, so
// bot_node_config.json reads like:
//
// {"<uuid1>": {}, "<uuid2>": {}}
type BotNodeMembers map[string]BotNodeOptions