From 18aa0b95a6242363ef9b921e2848963f04821c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=91=E8=90=BD=E5=8F=B6?= <100185989+siuank@users.noreply.github.com> Date: Sat, 2 Mar 2024 20:55:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A0=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/ltd/guimc/lgzbot/command/LGZBotCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ltd/guimc/lgzbot/command/LGZBotCommand.kt b/src/main/kotlin/ltd/guimc/lgzbot/command/LGZBotCommand.kt index b12c0fc..4c7efaa 100644 --- a/src/main/kotlin/ltd/guimc/lgzbot/command/LGZBotCommand.kt +++ b/src/main/kotlin/ltd/guimc/lgzbot/command/LGZBotCommand.kt @@ -123,7 +123,7 @@ object LGZBotCommand : CompositeCommand( val raw = MiraiHibernateRecorder[quote.source] as MessageChain str = raw.getPlainText() } - if (LL4JUtils.predict(str)) { + if (LL4JUtils.predictAllResult(str).let { it[1] > it[0] }) { sendMessage("不合规") } else { sendMessage("合规")