Skip to content

Commit

Permalink
build: 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Nov 9, 2022
1 parent 85f1c2e commit c5df152
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> 基于 Mirai Console 的 管理员 Bot 及其标准
[![Release](https://img.shields.io/github/v/release/cssxsh/mirai-administrator)](https://github.com/cssxsh/mirai-administrator/releases)
![Downloads](https://img.shields.io/github/downloads/cssxsh/mirai-administrator/total)
[![Downloads](https://img.shields.io/github/downloads/cssxsh/mirai-administrator/total)](https://repo1.maven.org/maven2/xyz/cssxsh/mirai/mirai-administrator/)
[![maven-central](https://img.shields.io/maven-central/v/xyz.cssxsh.mirai/mirai-administrator)](https://search.maven.org/artifact/xyz.cssxsh.mirai/mirai-administrator)

**使用前应该查阅的相关文档或项目**
Expand All @@ -24,7 +24,7 @@
## MCL 指令安装

**请确认 mcl.jar 的版本是 2.1.0+**
`./mcl --update-package xyz.cssxsh.mirai:mirai-administrator --channel stable --type plugin`
`./mcl --update-package xyz.cssxsh.mirai:mirai-administrator --channel maven-stable --type plugin`

# 指令

Expand All @@ -46,6 +46,7 @@
| `/<contact> <request>` | 查看申请列表 |
| `/<contact> <black> {permitteeIds}` | 拉黑 |
| `/<contact> <white> {permitteeIds}` | 取消拉黑 |
| `/<contact> <backup>` | 触发备份功能 |

1. `id` 是 事件id 或 好友id 或 群id
2. `accept``black` 参数为 `true`, `yes`, `enabled`, `on`, `1` 时表示 `true` (不区分大小写)
Expand Down Expand Up @@ -179,9 +180,14 @@ Wiki [Service Provider Interface](https://en.wikipedia.org/wiki/Service_provider
## 定时消息

接口 [BotTimingMessage](src/main/kotlin/xyz/cssxsh/mirai/spi/BotTimingMessage.kt)
实例 [MiraiOnlineMessage](src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiOnlineMessage.kt)
实例 [MiraiMessageTimer](src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiMessageTimer.kt)
实例 [MiraiStatusMessage](src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiStatusMessage.kt)

## 上线操作

接口 [BotOnlineAction](src/main/kotlin/xyz/cssxsh/mirai/spi/BotOnlineAction.kt)
实例 [MiraiOnlineMessage](src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiOnlineMessage.kt)

## 宵禁(群定时禁言)

接口 [GroupCurfewTimer](src/main/kotlin/xyz/cssxsh/mirai/spi/GroupCurfewTimer.kt)
Expand All @@ -207,4 +213,9 @@ Wiki [Service Provider Interface](https://en.wikipedia.org/wiki/Service_provider
## 黑名单

接口 [BlackListService](src/main/kotlin/xyz/cssxsh/mirai/spi/BlackListService.kt)
实例 [MiraiBlackList](src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiBlackList.kt)
实例 [MiraiBlackList](src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiBlackList.kt)

## 联系人备份

接口 [BackupService](src/main/kotlin/xyz/cssxsh/mirai/spi/BackupService.kt)
实例 [MiraiBackupService](src/main/kotlin/xyz/cssxsh/mirai/admin/MiraiBackupService.kt)
15 changes: 8 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ plugins {
kotlin("jvm") version "1.7.20"
kotlin("plugin.serialization") version "1.7.20"

id("net.mamoe.mirai-console") version "2.13.0-RC2"
id("net.mamoe.mirai-console") version "2.13.0"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}

group = "xyz.cssxsh.mirai"
version = "1.3.0-RC"
version = "1.3.0"

mavenCentralPublish {
useCentralS01()
Expand All @@ -26,19 +26,19 @@ repositories {
}

dependencies {
compileOnly("net.mamoe:mirai-core:2.13.0-RC2")
compileOnly("net.mamoe:mirai-core-utils:2.13.0-RC2")
compileOnly("net.mamoe:mirai-core:2.13.0")
compileOnly("net.mamoe:mirai-core-utils:2.13.0")
api("com.cronutils:cron-utils:9.2.0") {
exclude(group = "org.slf4j")
exclude(group = "org.glassfish")
exclude(group = "org.javassist")
}
implementation("io.ktor:ktor-client-okhttp:2.1.2") {
implementation("io.ktor:ktor-client-okhttp:2.1.3") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
}
implementation("io.ktor:ktor-client-encoding:2.1.2") {
implementation("io.ktor:ktor-client-encoding:2.1.3") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
Expand All @@ -52,7 +52,8 @@ dependencies {

testImplementation(kotlin("test"))
testImplementation("org.slf4j:slf4j-simple:2.0.3")
testImplementation("net.mamoe:mirai-logging-slf4j:2.13.0-RC2")
testImplementation("net.mamoe:mirai-logging-slf4j:2.13.0")
testImplementation("net.mamoe:mirai-core-utils:2.13.0")
}

kotlin {
Expand Down

0 comments on commit c5df152

Please sign in to comment.