Skip to content

Commit

Permalink
build: 1.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jan 30, 2022
1 parent 03c3c2c commit daa0068
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

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

mavenCentralPublish {
useCentralS01()
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/xyz/cssxsh/mirai/plugin/WeiboHelperPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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.6") {
JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.4.7") {
name("weibo-helper")
author("cssxsh")
}
Expand Down Expand Up @@ -40,10 +40,10 @@ object WeiboHelperPlugin : KotlinPlugin(
WeiboListener.start()

globalEventChannel().subscribeOnce<BotOnlineEvent> {
clear = this@WeiboHelperPlugin.launch {
clear = this@WeiboHelperPlugin.launch(Dispatchers.IO) {
clear()
}
restore = this@WeiboHelperPlugin.launch {
restore = this@WeiboHelperPlugin.launch(Dispatchers.IO) {
restore()
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/xyz/cssxsh/mirai/plugin/WeiboUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ internal suspend fun restore(interval: Long = 3600_000) = supervisorScope {
logger.info { "WEIBO登陆状态已刷新 $result" }
continue
} catch (throwable: SerializationException) {
logger.warning({ "构建WEIBO RESTORE 序列化时失败, $throwable" }, throwable)
sendLoginMessage("构建WEIBO RESTORE 任务序列化时失败, $throwable")
logger.warning({ "WEIBO RESTORE 任务序列化时失败, $throwable" }, throwable)
sendLoginMessage("WEIBO RESTORE 任务序列化时失败, $throwable")
} catch (cause: Throwable) {
logger.warning({ "WEIBO登陆状态失效,需要重新登陆, $cause" }, cause)
sendLoginMessage("WEIBO登陆状态失效,需要重新登陆 /wlogin $cause")
Expand Down

0 comments on commit daa0068

Please sign in to comment.