Enable autoReconnectOnForceOffline by default. Close #143

This commit is contained in:
Him188 2021-02-01 08:13:59 +08:00
parent 24c0482d50
commit 5521e9b3d1

View File

@ -129,7 +129,7 @@ public interface MiraiConsole : CoroutineScope {
* *
* 调用 [Bot.login] 可登录. * 调用 [Bot.login] 可登录.
* *
* @see Bot.botInstances 获取现有 [Bot] 实例列表 * @see Bot.instances 获取现有 [Bot] 实例列表
* @see BotConfigurationAlterer ExtensionPoint * @see BotConfigurationAlterer ExtensionPoint
*/ */
@ConsoleExperimentalApi("This is a low-level API and might be removed in the future.") @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}") MiraiLogger.create("Bot.${it.id}")
} }
parentCoroutineContext = MiraiConsole.childScopeContext("Bot $id") parentCoroutineContext = MiraiConsole.childScopeContext("Bot $id")
autoReconnectOnForceOffline()
this.loginSolver = MiraiConsoleImplementationBridge.createLoginSolver(id, this) this.loginSolver = MiraiConsoleImplementationBridge.createLoginSolver(id, this)
configuration() configuration()