feat: 完善设置向导,添加平台选择和账号管理功能

This commit is contained in:
晴猫
2026-03-15 10:44:46 +09:00
parent bd0918b866
commit da7aafe665
4 changed files with 277 additions and 16 deletions

View File

@@ -27,7 +27,9 @@ export async function loadBotBasicConfig(): Promise<BotBasicConfig> {
const botConfig = (data.config.bot || {}) as Partial<BotBasicConfig>
return {
platform: botConfig.platform || (botConfig.qq_account ? 'qq' : ''),
qq_account: botConfig.qq_account || 0,
platforms: botConfig.platforms || [],
nickname: botConfig.nickname || '',
alias_names: botConfig.alias_names || [],
}