style(config): add structured config paths for global and bot configurations

This commit is contained in:
2026-09-06 10:19:28 +08:00
parent 0cedb51e50
commit 13a670eadd
3 changed files with 15 additions and 8 deletions
+12
View File
@@ -22,3 +22,15 @@ var SoftwareInfo = SoftwareInfoStr{
BuildType: "Debug",
BuildTime: "unknown",
}
type ConfigPathStr struct {
Global string
BotUserConfig string
BotNodeConfig string
}
var ConfigPath = ConfigPathStr{
Global: "config.json",
BotUserConfig: "bot_user_config.json",
BotNodeConfig: "bot_node_config.json",
}