|
5 | 5 | [](https://github.com/cssxsh/mirai-administrator/releases)
|
6 | 6 | [](https://repo1.maven.org/maven2/xyz/cssxsh/mirai/mirai-administrator/)
|
7 | 7 | [](https://search.maven.org/artifact/xyz.cssxsh.mirai/mirai-administrator)
|
| 8 | +[](https://www.codacy.com/gh/cssxsh/mirai-administrator/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cssxsh/mirai-administrator&utm_campaign=Badge_Grade) |
8 | 9 |
|
9 | 10 | **使用前应该查阅的相关文档或项目**
|
10 | 11 |
|
|
19 | 20 | * 群管理相关 群消息审核,自动宵禁,自动清理不发言,禁言自动退群
|
20 | 21 |
|
21 | 22 | 本插件提供[服务接口](#服务接口)以供其他插件拓展功能
|
22 |
| -例如使用 [Mirai Content Censor](https://github.com/gnuf0rce/mirai-content-censor) 依靠百度API审查群消息 |
| 23 | +例如使用 [Mirai Content Censor](https://github.com/gnuf0rce/mirai-content-censor) 依靠百度API审查群消息 |
| 24 | +例如使用 [Mirai Authenticator](https://github.com/cssxsh/mirai-authenticator) 验证加群请求 |
23 | 25 |
|
24 | 26 | ## MCL 指令安装
|
25 | 27 |
|
|
102 | 104 | | `/<send> <friends> [bot]? [second]?` | 发送给所有好友 |
|
103 | 105 | | `/<send> <to> [contact] [at]?` | 发送给指定联系人 |
|
104 | 106 | | `/<send> <nudge> [user]` | 戳一戳指定联系人 |
|
| 107 | +| `/<send> <log> {addresses}` | 备份日志到邮箱 | |
105 | 108 |
|
106 | 109 | 1. `bot` 参数在命令行模式下需要指定
|
107 | 110 | 2. `at` 参数为 `true`, `yes`, `enabled`, `on`, `1` 时表示 `true`, 将附加一个At
|
108 | 111 | 3. `second` 参数为 延迟的秒数 例如 `/send groups 123456 false 10`
|
| 112 | +4. `addresses` 参数为 邮箱地址 |
109 | 113 |
|
110 | 114 | ### AdminTimerCommand
|
111 | 115 |
|
|
161 | 165 | 2. `censor_types` 可选值 `IMAGE, FLASH, SERVICE, APP, AUDIO, FORWARD, VIP, MARKET, MUSIC, POKE`
|
162 | 166 | 3. 正则词库, 须手动添加,将会加载 censor 文件夹中的 txt 文件,每一行对应一个正则匹配,会监听文件改动,无需重启
|
163 | 167 |
|
| 168 | +### 邮件配置 |
| 169 | + |
| 170 | +1. `AdminMailConfig.yml` 配置一些默认的发送对象 |
| 171 | +2. `admin.mail.properties` 配置邮箱账号等 |
| 172 | + |
| 173 | +格式参考 |
| 174 | +```properties |
| 175 | +mail.host=smtp.mail.qq.com |
| 176 | +mail.auth=true |
| 177 | +mail.user=xxx |
| 178 | +mail.password=*** |
| 179 | + |
| 180 | +mail.store.protocol=smtp |
| 181 | +mail.transport.protocol=smtp |
| 182 | +# smtp |
| 183 | +mail.smtp.starttls.enable=true |
| 184 | +mail.smtp.auth=true |
| 185 | +mail.smtp.timeout=15000 |
| 186 | +``` |
| 187 | + |
| 188 | +QQ邮箱帮助: https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256 |
| 189 | + |
164 | 190 | ## [爱发电](https://afdian.net/@cssxsh)
|
165 | 191 |
|
166 |
| - |
| 192 | + |
167 | 193 |
|
168 | 194 | ## 服务接口
|
169 | 195 |
|
|
0 commit comments