Skip to content

Commit

Permalink
build: 1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jan 19, 2023
1 parent 73b47a4 commit 0de3c73
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 7 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ plugins {
kotlin("jvm") version "1.7.22"
kotlin("plugin.serialization") version "1.7.22"

id("net.mamoe.mirai-console") version "2.13.2"
id("net.mamoe.mirai-console") version "2.14.0-RC"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}

group = "xyz.cssxsh"
version = "1.1.6"
version = "1.1.7"

repositories {
mavenLocal()
Expand All @@ -28,24 +28,22 @@ mavenCentralPublish {
dependencies {
compileOnly("xyz.cssxsh:bilibili-helper:1.6.6")
compileOnly("xyz.cssxsh:weibo-helper:1.5.8")
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.5.1")
compileOnly("xyz.cssxsh.mirai:mirai-skia-plugin:1.2.3")
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.5.2")
compileOnly("xyz.cssxsh.mirai:mirai-skia-plugin:1.2.4")
testImplementation(kotlin("test"))
testImplementation("xyz.cssxsh.mirai:mirai-skia-plugin:1.2.3")
testImplementation("xyz.cssxsh.mirai:mirai-skia-plugin:1.2.4")
//
implementation(platform("net.mamoe:mirai-bom:2.13.2"))
implementation(platform("net.mamoe:mirai-bom:2.14.0-RC"))
compileOnly("net.mamoe:mirai-core")
compileOnly("net.mamoe:mirai-core-utils")
compileOnly("net.mamoe:mirai-console-compiler-common")
testImplementation("net.mamoe:mirai-logging-slf4j")
testImplementation("net.mamoe:mirai-core-utils")
//
implementation(platform("io.ktor:ktor-bom:2.2.1"))
implementation(platform("io.ktor:ktor-bom:2.2.2"))
implementation("io.ktor:ktor-client-okhttp")
implementation("io.ktor:ktor-client-encoding")
//
implementation(platform("org.slf4j:slf4j-parent:2.0.6"))
testImplementation("org.slf4j:slf4j-simple")
}

mirai {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/MemeHelperPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public object MemeHelperPlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.meme-helper",
name = "meme-helper",
version = "1.1.6",
version = "1.1.7",
) {
author("cssxsh")
dependsOn("xyz.cssxsh.mirai.plugin.mirai-skia-plugin", ">= 1.1.0", false)
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/impl/MemeRecord.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public class MemeRecord : MemeService {
val record = if (tag.startsWith('#')) {
FaceRecord.random()
} else {
FaceRecord.match(tag = tag).randomOrNull() ?: return null
FaceRecord.match(tag = tag).randomOrNull()
?: MiraiHibernateRecorder.face(md5 = tag)
?: return null
}
val message = record.toMessageContent()
if (message is Image && message.isUploaded(bot).not()) {
Expand Down

0 comments on commit 0de3c73

Please sign in to comment.