mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 09:10:11 +08:00
Graphic console fix command
This commit is contained in:
parent
125bfd3245
commit
767e3bbe36
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user