diff --git a/build.gradle.kts b/build.gradle.kts index d4fbf65..20e4b8b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { } group = "io.github.gnuf0rce" -version = "1.2.0-RC" +version = "1.2.0" mavenCentralPublish { useCentralS01() diff --git a/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubHelperPlugin.kt b/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubHelperPlugin.kt index d1a8ec3..c22413f 100644 --- a/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubHelperPlugin.kt +++ b/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubHelperPlugin.kt @@ -26,7 +26,7 @@ public object GitHubHelperPlugin : KotlinPlugin( JvmPluginDescription( id = "io.github.gnuf0rce.github-helper", name = "github-helper", - version = "1.2.0-RC", + version = "1.2.0", ) { author("cssxsh") diff --git a/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubReplier.kt b/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubReplier.kt index 96bdbc8..3b8c86d 100644 --- a/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubReplier.kt +++ b/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubReplier.kt @@ -37,7 +37,6 @@ internal val ReplierPermission: Permission by lazy { private fun MessageEvent.hasReplierPermission() = toCommandSender().hasPermission(ReplierPermission) -// TODO: REPLIER_FORMAT private val REPLIER_FORMAT get() = GitHubConfig.replier /** @@ -52,7 +51,7 @@ internal val OwnerReplier: MessageReplier = replier@{ result -> val (owner) = result.destructured val entry = github.user(owner).load().takeIf { it.type == "User" } ?: github.organization(owner).load() - entry.toMessage(subject, REPLIER_FORMAT, "", OffsetDateTime.MIN) + entry.toMessage(subject, REPLIER_FORMAT, "replier", OffsetDateTime.MIN) } catch (cause: Throwable) { logger.warning({ "构建Repo(${result.value})信息失败" }, cause) cause.message