From 52c2f7a4bbb10c71bb400cf5e2fefc5865299288 Mon Sep 17 00:00:00 2001 From: "jiahua.liu" Date: Mon, 17 Feb 2020 18:15:38 +0800 Subject: [PATCH] terminal console closable --- mirai-console/README.MD | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/mirai-console/README.MD b/mirai-console/README.MD index 628e63758..5aca7f84d 100644 --- a/mirai-console/README.MD +++ b/mirai-console/README.MD @@ -14,7 +14,28 @@ ### 如何选择版本 -
+1: Mirai-Console-Pure 兼容性最高, 在其他都表现不佳的时候请使用 +2: 以系统区分 +```kotlin + return when(operatingSystem){ + WINDOWS -> listOf("Graphical","WebPanel","Pure") + MAC_OS -> listOf("Graphical","Terminal","WebPanel","Pure") + Linux -> listOf("Terminal","Pure") + ANDROID -> listOf("Android","Pure","WebPanel") + else -> listOf("Pure") + } +``` +3: 以策略区分 +```kotlin + return when(task){ + 体验 -> listOf("Graphical","Terminal","WebPanel","Android","Pure") + 测试插件 -> listOf("Pure") + 调试插件 -> byOperatingSystem() + Linux稳定挂机 -> listOf("Terminal","Pure") + else -> listOf("Pure") + } +``` + #### More Importantly, Mirai Console support Plugins, tells the bot what to do #### Mirai Console 支持插件系统, 你可以自己开发或使用公开的插件来逻辑化机器人, 如群管