feat: 完善设置向导,添加平台选择和账号管理功能
This commit is contained in:
@@ -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 || [],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user