mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 17:00:14 +08:00
Enable autoReconnectOnForceOffline by default. Close #143
This commit is contained in:
parent
24c0482d50
commit
5521e9b3d1
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user