|
3 | 3 | > 基于 [Mirai Console](https://github.com/mamoe/mirai-console) 和 [百度AI内容审核](https://ai.baidu.com/ai-doc/ANTIPORN/) 的自动禁言助手
|
4 | 4 |
|
5 | 5 | [](https://github.com/gnuf0rce/mirai-content-censor/releases)
|
6 |
| -[](https://shields.io/category/downloads) |
| 6 | +[](https://repo1.maven.org/maven2/io/github/gnuf0rce/mirai-content-censor/) |
7 | 7 | [](https://mirai.mamoe.net/topic/293)
|
8 | 8 |
|
9 | 9 | 同时安装有 [Mirai Administrator](https://github.com/cssxsh/mirai-administrator) 时,将会桥接到服务接口
|
|
23 | 23 |
|
24 | 24 | 位于 `config/io.github.gnuf0rce.content-censor/ContentCensor.yml`
|
25 | 25 |
|
26 |
| -1. `mute` 禁言时间,单位秒,默认1分钟 |
27 |
| -2. `recall` 撤回消息的延时,单位秒,默认0秒 |
28 |
| -3. `plain` 是否检查文本,默认 true |
29 |
| -4. `image` 是否检查图片,默认 false |
30 |
| -5. `audio` 是否检查语音,默认 false |
| 26 | +1. `mute` 禁言时间,单位秒,默认1分钟 |
| 27 | +2. `recall` 撤回消息的延时,单位秒,默认0秒 |
| 28 | +3. `plain` 是否检查文本,默认 true |
| 29 | +4. `image` 是否检查图片,默认 false |
| 30 | +5. `audio` 是否检查语音,默认 false |
| 31 | +6. `download` 下载文件再上传(语音/图片),默认 false |
31 | 32 |
|
32 | 33 | ### 避开审查
|
33 | 34 |
|
34 | 35 | 拥有权限 `io.github.gnuf0rce.content-censor:no-censor` 的用户将不会被检测
|
35 | 36 |
|
36 | 37 | ### 指令
|
37 | 38 |
|
38 |
| -1. `/censor` 测试是否有有违规 |
| 39 | +1. `/censor` 测试是否有有违规 |
39 | 40 | 示例: `/censor cnm`
|
40 |
| -2. `/censor-record from [sender] [date]` 查看 sender (消息的发送者) 相关的违规记录 |
41 |
| - 示例: `/censor from 123456 2022-07-24` |
42 |
| -3. `/censor-record target [subject] [date]` 查看 subject (消息的接收者) 相关的违规记录 |
43 |
| - 示例: `/censor target 789456 2022-07-24` |
| 41 | + |
| 42 | +2. `/censor-record from [sender] [date]` 查看 sender (消息的发送者) 相关的违规记录 |
| 43 | + 示例: `/censor from 123456 2022-07-24` |
| 44 | + |
| 45 | +3. `/censor-record target [subject] [date]` 查看 subject (消息的接收者) 相关的违规记录 |
| 46 | + 示例: `/censor target 789456 2022-07-24` |
44 | 47 |
|
45 | 48 | ### 百度云后台
|
46 | 49 |
|
47 |
| -* 策略管理 <https://ai.baidu.com/censoring/#/strategylist> |
48 |
| - 配置审查规则、自定义黑白名单、测试验证规则有效性 |
49 |
| -* 数据统计 <https://ai.baidu.com/censoring/#/overview> |
50 |
| - 统计结果,图表 |
51 |
| -* 数据查询 <https://ai.baidu.com/censoring/#/query> |
52 |
| - 历史审核数据 |
| 50 | +* 策略管理 <https://ai.baidu.com/censoring/#/strategylist> |
| 51 | + 配置审查规则、自定义黑白名单、测试验证规则有效性 |
| 52 | + |
| 53 | +* 数据统计 <https://ai.baidu.com/censoring/#/overview> |
| 54 | + 统计结果,图表 |
| 55 | + |
| 56 | +* 数据查询 <https://ai.baidu.com/censoring/#/query> |
| 57 | + 历史审核数据 |
53 | 58 |
|
54 | 59 | ## 安装
|
55 | 60 |
|
56 | 61 | ### MCL 指令安装
|
57 | 62 |
|
58 | 63 | **请确认 mcl.jar 的版本是 2.1.0+**
|
59 |
| -`./mcl --update-package io.github.gnuf0rce:mirai-content-censor --channel stable --type plugin` |
| 64 | +`./mcl --update-package io.github.gnuf0rce:mirai-content-censor --channel maven-stable --type plugin` |
60 | 65 |
|
61 | 66 | ### 手动安装
|
62 | 67 |
|
63 |
| -1. 运行 [Mirai Console](https://github.com/mamoe/mirai-console) 生成`plugins`文件夹 |
64 |
| -2. 从 [Releases](https://github.com/cssxsh/mirai-content-censor/releases) 下载`jar`并将其放入`plugins`文件夹中 |
| 68 | +1. 从 [Releases](https://github.com/gnuf0rce/mirai-content-censor/releases) 或者 [Maven](https://repo1.maven.org/maven2/io/github/gnuf0rce/mirai-content-censor/) 下载 `mirai2.jar` |
| 69 | +2. 将其放入 `plugins` 文件夹中 |
65 | 70 |
|
66 | 71 | ## TODO
|
67 | 72 |
|
|
0 commit comments