Graphic console fix command

This commit is contained in:
ryoii 2020-02-23 15:45:01 +08:00
parent 125bfd3245
commit 767e3bbe36

View File

@ -32,11 +32,11 @@ class MiraiGraphicalUIController : Controller(), MiraiConsoleUI {
val consoleInfo = ConsoleInfo()
suspend fun login(qq: String, psd: String) {
// MiraiConsole
fun login(qq: String, psd: String) {
MiraiConsole.CommandProcessor.runConsoleCommandBlocking("/login $qq $psd")
}
suspend fun sendCommand(command: String) = Unit
fun sendCommand(command: String) = MiraiConsole.CommandProcessor.runConsoleCommandBlocking(command)
override fun pushLog(identity: Long, message: String) = Platform.runLater {
when (identity) {