Skip to content

Commit 849f170

Browse files
committed
build: 1.0.2
1 parent 915bf52 commit 849f170

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "xyz.cssxsh.meme-helper"
10-
version = "1.0.1"
10+
version = "1.0.2"
1111

1212
repositories {
1313
mavenLocal()

src/main/kotlin/EmojiKitchen.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package xyz.cssxsh.mirai.meme
22

3-
import net.mamoe.mirai.utils.toInt
3+
import net.mamoe.mirai.utils.*
44

55
public data class EmojiKitchen(public val urls: Map<String, String>) {
66

77
public fun cook(emojis: Sequence<String>): Pair<String, String>? {
88
val filename = emojis.joinToString(separator = "_", postfix = ".png") { it.unicode() }
9-
println(filename)
9+
logger.debug { filename }
1010
val url = urls[filename]
1111
if (url != null) {
1212
return filename to url

src/main/kotlin/MemeHelperPlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public object MemeHelperPlugin : KotlinPlugin(
77
JvmPluginDescription(
88
id = "xyz.cssxsh.mirai.plugin.meme-helper",
99
name = "meme-helper",
10-
version = "1.0.1",
10+
version = "1.0.2",
1111
) {
1212
author("cssxsh")
1313
dependsOn("xyz.cssxsh.mirai.plugin.mirai-skia-plugin", ">= 1.1.0", false)

src/main/kotlin/impl/MemeYgo.kt

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public class MemeYgo: MemeService {
6161
}
6262
ygo.resolve("source/mold/attribute/jp")
6363
.renameTo(ygo.resolve("source/mold/attribute/ja"))
64+
ygo.resolve("source/mold/attribute/cn")
65+
.renameTo(ygo.resolve("source/mold/attribute/zh"))
6466
System.setProperty(YgoCard.SOURCE_KEY, ygo.path)
6567

6668
loaded = true

0 commit comments

Comments
 (0)