mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 06:10:30 +08:00
console loader
This commit is contained in:
parent
b30246cda1
commit
5847ac855c
@ -0,0 +1,15 @@
|
||||
package net.mamoe.mirai.console
|
||||
|
||||
import kotlin.concurrent.thread
|
||||
|
||||
class MiraiConsolePureLoader {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun main(args: Array<String>) {
|
||||
MiraiConsole.start(MiraiConsoleUIPure())
|
||||
Runtime.getRuntime().addShutdownHook(thread(start = false) {
|
||||
MiraiConsole.stop()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
@ -80,14 +80,3 @@ class MiraiConsoleUIPure : MiraiConsoleUI {
|
||||
}
|
||||
|
||||
|
||||
class MiraiConsolePureLoader {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun main(args: Array<String>) {
|
||||
MiraiConsole.start(MiraiConsoleUIPure())
|
||||
Runtime.getRuntime().addShutdownHook(thread(start = false) {
|
||||
MiraiConsole.stop()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user