Commit 767e3bbe authored by ryoii's avatar ryoii

Graphic console fix command

parent 125bfd32
...@@ -32,11 +32,11 @@ class MiraiGraphicalUIController : Controller(), MiraiConsoleUI { ...@@ -32,11 +32,11 @@ class MiraiGraphicalUIController : Controller(), MiraiConsoleUI {
val consoleInfo = ConsoleInfo() val consoleInfo = ConsoleInfo()
suspend fun login(qq: String, psd: String) { fun login(qq: String, psd: String) {
// MiraiConsole 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 { override fun pushLog(identity: Long, message: String) = Platform.runLater {
when (identity) { when (identity) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment