diff --git a/backend/mirai-console/src/command/BuiltInCommands.kt b/backend/mirai-console/src/command/BuiltInCommands.kt index e16d16242..97cc717ba 100644 --- a/backend/mirai-console/src/command/BuiltInCommands.kt +++ b/backend/mirai-console/src/command/BuiltInCommands.kt @@ -131,6 +131,7 @@ public object BuiltInCommands { if (!MiraiConsole.isActive) return@withLock sendMessage("Stopping mirai-console") kotlin.runCatching { + Bot.instances.forEach { it.closeAndJoin() } MiraiConsole.job.cancelAndJoin() }.fold( onSuccess = {