Skip to content

Commit

Permalink
remove some dep
Browse files Browse the repository at this point in the history
  • Loading branch information
guimc233 committed Aug 9, 2024
1 parent 39adac7 commit 2bb2561
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 @@ -13,9 +13,7 @@ dependencies {
implementation("org.apache.httpcomponents:httpclient:4.5.14")

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")
// 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/plugin/quotly/PluginMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ object PluginMain : KotlinPlugin(
"QuotlyBot",
){
author("BakaBotTeam")
dependsOn("xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin", false)
}
) {
override fun onEnable() {
Expand Down
3 changes: 1 addition & 2 deletions src/main/kotlin/ltd/guimc/plugin/quotly/QuotLyCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import net.mamoe.mirai.message.data.Image.Key.queryUrl
import org.json.JSONArray
import org.json.JSONObject
import top.mrxiaom.overflow.OverflowAPI
import xyz.cssxsh.mirai.hibernate.MiraiHibernateRecorder


object QuotLyCommand: SimpleCommand(
Expand Down Expand Up @@ -105,7 +104,7 @@ object QuotLyCommand: SimpleCommand(
postValue.getJSONArray("messages").getJSONObject(0).put("media", JSONObject().put("url", image))
}
try {
val rawResp = JSONObject(HttpUtil.post("http://127.0.0.1:3000/generate", postValue.toString()))
val rawResp = JSONObject(HttpUtil.post("http://127.0.0.1:25802/generate", postValue.toString()))
val resp = rawResp.getJSONObject("result").getString("image")
if (!OverflowUtils.checkOverflowCore()) {
sendMessage(ImageUtils.base642imageMessage(resp, bot!!, subject!!))
Expand Down

0 comments on commit 2bb2561

Please sign in to comment.