Skip to content

Commit

Permalink
build: 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Aug 15, 2023
1 parent f2d5e46 commit d43b9ed
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 1.4.2 (23/08/15)

1. fix: MiraiBlackList.check, close #26
2. fix: mail docs
3. fix: timer docs

## 1.4.1 (23/07/13)

1. fix: MiraiMemberCleaner
2. feat: approver remind, close #24
3. fix: approver config
4. fix: mail title

## 1.4.0 (23/05/01)

1. feat: newWatchService catch
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@
例如 `/timer mute PT5H "0 0 1 ? * 2-6"`, 将会在 星期一到星期五的凌晨01:00 禁言 5 小时
例如 `/timer mute PT0S "0 0 0 1 * ?"`, 将会 取消 禁言定时器

5. cleaner 指令,`day` 单位为天数的发言期限, 小于等于 `0` 清理不发言就会关闭
例如 `/timer cleaner 30 "0 0 12 ? * 1,7"`, 将会在 星期留、星期天的12:00 清理 30 天未发言的用户
5. cleaner 指令,`day` 单位为天数的发言期限, 小于等于 `0` 清理不发言就会关闭
例如 `/timer cleaner 30 "0 0 12 ? * 1,7"`, 将会在 星期六、星期天的12:00 清理 30 天未发言的用户
例如 `/timer cleaner 0 "0 0 0 1 * ?"`, 将会 取消 清理不发言定时器

## 配置
Expand Down
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.mirai"
version = "1.4.1"
version = "1.4.2"

mavenCentralPublish {
useCentralS01()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiAdminPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal object MiraiAdminPlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.mirai-administrator",
name = "mirai-administrator",
version = "1.4.1",
version = "1.4.2",
) {
author("cssxsh")
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ internal fun target(contact: Contact): MessageSource? {
internal fun from(member: Member): MessageSource? {
for (handler in ComparableService<MessageSourceHandler>()) {
return try {
handler.from(member) ?: continue
handler.from(member = member) ?: continue
} catch (cause: Exception) {
logger.warning({ "message source find failure." }, cause)
continue
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/xyz/cssxsh/mirai/admin/data/AdminSetting.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal object AdminSetting : ReadOnlyPluginConfig("AdminSetting"), MiraiConten
}
}

plugin.launch {
plugin.launch(CoroutineName(name = "CENSOR_WATCH")) {
val watcher = try {
runInterruptible(Dispatchers.IO) {
folder.fileSystem.newWatchService()
Expand Down Expand Up @@ -87,7 +87,7 @@ internal object AdminSetting : ReadOnlyPluginConfig("AdminSetting"), MiraiConten
try {
dict[file.name] = file.readLines()
} catch (cause: IOException) {
plugin.logger.warning("更新审核库 $file 失败 , ${kind.name()}", cause)
plugin.logger.warning("更新审核库 ${file.toUri()} 失败, ${kind.name()}", cause)
}
}
StandardWatchEventKinds.ENTRY_DELETE -> {
Expand Down

0 comments on commit d43b9ed

Please sign in to comment.