Commit 8cc25641 authored by Him188's avatar Him188

Merge remote-tracking branch 'origin/master'

parents ccc6826e ca0e50a3
...@@ -54,7 +54,7 @@ fun Application.messageModule() { ...@@ -54,7 +54,7 @@ fun Application.messageModule() {
} }
} }
miraiVerify<SendDTO>("/quoteMessage") { miraiVerify<SendDTO>("/sendQuoteMessage") {
it.session.messageQueue.quoteCache[it.target]?.apply { it.session.messageQueue.quoteCache[it.target]?.apply {
quoteReply(it.messageChain.toMessageChain(group)) quoteReply(it.messageChain.toMessageChain(group))
} ?: throw NoSuchElementException() } ?: throw NoSuchElementException()
......
...@@ -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