Skip to content

Commit

Permalink
build: 1.2.0-RC
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jun 7, 2022
1 parent 2323cde commit 478e565
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 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.mirai"
version = "1.2.0"
version = "1.2.0-RC"

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 @@ -13,7 +13,7 @@ public object MiraiAdminPlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.mirai-administrator",
name = "mirai-administrator",
version = "1.2.0",
version = "1.2.0-RC",
) {
author("cssxsh")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public object MiraiAdministrator : SimpleListenerHost() {

@EventHandler
internal fun BotGroupPermissionChangeEvent.mark() {
if (group.botPermission < MemberPermission.ADMINISTRATOR) return
if (new < MemberPermission.ADMINISTRATOR) return
for (timer in ComparableService<GroupTimerService<*>>()) {
timer.start(target = group)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public object AdminTimerCommand : CompositeCommand(
//
appendLine("宵禁:")
for ((group, cron) in AdminTimerData.mute) {
appendLine("Group($group) - ${AdminTimerData.moments[group]} minute")
appendLine("Group($group) - ${AdminTimerData.moments[group]}")
appendLine(descriptor.describe(cron))
}
appendLine()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import net.mamoe.mirai.event.events.*
public object AdminRequestEventData : AutoSavePluginData("AdminRequestEventData"),
Sequence<Map.Entry<Long, List<RequestEventData>>> {

private val friends by value<MutableMap<Long, List<RequestEventData.NewFriendRequest>>>()
private val friends: MutableMap<Long, List<RequestEventData.NewFriendRequest>> by value()

private val groups by value<MutableMap<Long, List<RequestEventData.BotInvitedJoinGroupRequest>>>()
private val groups: MutableMap<Long, List<RequestEventData.BotInvitedJoinGroupRequest>> by value()

private val members by value<MutableMap<Long, List<RequestEventData.MemberJoinRequest>>>()
private val members: MutableMap<Long, List<RequestEventData.MemberJoinRequest>> by value()

override operator fun iterator(): Iterator<Map.Entry<Long, List<RequestEventData>>> = iterator {
yieldAll(friends.entries)
Expand Down

0 comments on commit 478e565

Please sign in to comment.