This commit is contained in:
jiahua.liu 2020-03-21 00:53:56 +08:00
parent c93678a60b
commit 7d059ddf04
2 changed files with 16 additions and 2 deletions

View File

@ -42,7 +42,7 @@ object MiraiConsole {
/**
* 与前端交互所使用的Logger
*/
var logger = UIPushLogger
var logger = MiraiConsoleLogger
/**
* Console运行路径
@ -154,7 +154,7 @@ object MiraiConsole {
}
}
object UIPushLogger {
object MiraiConsoleLogger {
operator fun invoke(any: Any? = null) {
invoke(
"[Mirai $version $build]",

View File

@ -0,0 +1,14 @@
package net.mamoe.mirai.console.command
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.asCoroutineDispatcher
import java.util.concurrent.Executors
object CommandProcessor {
val commandDispatcher = Executors.newFixedThreadPool(1).asCoroutineDispatcher()
suspend fun runCommand(){
Dispatchers.IO
}
}