Skip to content

Commit

Permalink
build: 1.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Dec 26, 2021
1 parent 9729e25 commit e1b789d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ plugins {
kotlin("plugin.serialization") version Versions.kotlin

id("net.mamoe.mirai-console") version Versions.mirai
id("net.mamoe.maven-central-publish") version "0.6.1"
id("net.mamoe.maven-central-publish") version "0.7.1"
}

group = "xyz.cssxsh"
version = "1.4.5"
version = "1.4.6"

mavenCentralPublish {
useCentralS01()
Expand Down
2 changes: 0 additions & 2 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ object Versions {
// kotlin
const val kotlin = "1.5.31"
const val ktor = "1.5.4"
// other
const val junit = "5.2.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import xyz.cssxsh.mirai.plugin.command.*
import xyz.cssxsh.mirai.plugin.data.*

object WeiboHelperPlugin : KotlinPlugin(
JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.4.5") {
JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.4.6") {
name("weibo-helper")
author("cssxsh")
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/plugin/WeiboUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ internal suspend fun <T : CommandSenderOnMessage<*>> T.sendMessage(block: suspen
"发送消息失败, $cause"
}
when {
SendLimit.containsMatchIn(cause.message.orEmpty()) -> {
SendLimit in cause.message.orEmpty() -> {
delay(SendDelay)
quoteReply(SendLimit.find(cause.message!!)!!.value)
}
Expand Down

0 comments on commit e1b789d

Please sign in to comment.