diff --git a/backend/mirai-console/src/MiraiConsole.kt b/backend/mirai-console/src/MiraiConsole.kt index c16aa3b73..b1bcb6d18 100644 --- a/backend/mirai-console/src/MiraiConsole.kt +++ b/backend/mirai-console/src/MiraiConsole.kt @@ -129,7 +129,7 @@ public interface MiraiConsole : CoroutineScope { * * 调用 [Bot.login] 可登录. * - * @see Bot.botInstances 获取现有 [Bot] 实例列表 + * @see Bot.instances 获取现有 [Bot] 实例列表 * @see BotConfigurationAlterer ExtensionPoint */ @ConsoleExperimentalApi("This is a low-level API and might be removed in the future.") @@ -146,6 +146,7 @@ public interface MiraiConsole : CoroutineScope { MiraiLogger.create("Bot.${it.id}") } parentCoroutineContext = MiraiConsole.childScopeContext("Bot $id") + autoReconnectOnForceOffline() this.loginSolver = MiraiConsoleImplementationBridge.createLoginSolver(id, this) configuration()