Skip to content

Commit

Permalink
remove dep xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
guimc233 committed Aug 9, 2024
1 parent 486bbda commit 44742a6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ dependencies {
implementation("org.apache.commons:commons-lang3:3.16.0")

compileOnly("top.mrxiaom:overflow-core-api:$overflow_version")
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.8.0")
compileOnly("top.mrxiaom:overflow-core:$overflow_version")
compileOnly("org.projectlombok:lombok:1.18.34")
testImplementation("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.8.0")

compileOnly(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
}
Expand Down
Binary file removed libs/mirai-hibernate-plugin-2.8.0.jar
Binary file not shown.
1 change: 0 additions & 1 deletion src/main/kotlin/ltd/guimc/lgzbot/PluginMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ object PluginMain : KotlinPlugin(
"LgzBot",
){
author("BakaBotTeam")
dependsOn("xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin", false)
}
) {
lateinit var bypassMute: Permission
Expand Down
3 changes: 1 addition & 2 deletions src/main/kotlin/ltd/guimc/lgzbot/command/LGZBotCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import net.mamoe.mirai.contact.NormalMember
import net.mamoe.mirai.message.data.*
import org.apache.commons.lang3.RandomUtils
import top.mrxiaom.overflow.contact.Updatable
import xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder
import kotlin.math.roundToInt
import kotlin.time.Duration

Expand Down Expand Up @@ -116,7 +115,7 @@ object LGZBotCommand : CompositeCommand(
var str = string
if (string == "reply") {
val quote = fromEvent.message.findIsInstance<QuoteReply>() ?: return
val raw = MiraiHibernateRecorder[quote.source][0].toMessageChain()
val raw = quote.source.originalMessage
str = raw.getPlainText()
}
if (LL4JUtils.predictAllResult(str).let { it[1] > it[0] }) {
Expand Down

0 comments on commit 44742a6

Please sign in to comment.