Skip to content

Commit

Permalink
build: 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed May 1, 2023
1 parent e706167 commit 5ae11b0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.4.0 (23/05/01)

1. feat: newWatchService catch
2. feat: bot command
3. feat: poi

## 1.3.3 (23/03/16)

1. fix: timer
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.3.3"
version = "1.4.0"

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.3.3",
version = "1.4.0",
) {
author("cssxsh")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public object AdminBotCommand : CompositeCommand(
primaryName = "bot",
description = "BOT处理相关操作"
) {
/**
* 打印 BOT 列表
*/
@SubCommand
public suspend fun CommandSender.list() {
val message = try {
Expand All @@ -32,6 +35,10 @@ public object AdminBotCommand : CompositeCommand(
sendMessage(message)
}

/**
* 登出 BOT
* @param bot 操作对象
*/
@SubCommand
public suspend fun CommandSender.logout(bot: Bot) {
val message = try {
Expand Down

0 comments on commit 5ae11b0

Please sign in to comment.