mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
to merge
This commit is contained in:
parent
c93678a60b
commit
7d059ddf04
@ -42,7 +42,7 @@ object MiraiConsole {
|
|||||||
/**
|
/**
|
||||||
* 与前端交互所使用的Logger
|
* 与前端交互所使用的Logger
|
||||||
*/
|
*/
|
||||||
var logger = UIPushLogger
|
var logger = MiraiConsoleLogger
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Console运行路径
|
* Console运行路径
|
||||||
@ -154,7 +154,7 @@ object MiraiConsole {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
object UIPushLogger {
|
object MiraiConsoleLogger {
|
||||||
operator fun invoke(any: Any? = null) {
|
operator fun invoke(any: Any? = null) {
|
||||||
invoke(
|
invoke(
|
||||||
"[Mirai $version $build]",
|
"[Mirai $version $build]",
|
||||||
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user