UNPKG

pupbot-plugin-nodirty

Version:

检查你的群员有没有口吐芬芳

64 lines (48 loc) 1.39 kB
# 脏话检测 for PupBot [![npm-version](https://img.shields.io/npm/v/pupbot-plugin-nodirty?color=527dec&label=pupbot-plugin-nodirty&style=flat-square)](https://npm.im/pupbot-plugin-nodirty) [![dm](https://shields.io/npm/dm/pupbot-plugin-nodirty?style=flat-square)](https://npm.im/pupbot-plugin-nodirty) [`PupBot`](https://pupbot.cn) 的 [别说脏话](#) 插件。api来源于api.wer.plus接口,详情查看[api](hhttps://api.wer.plus/product/doc?id=28)。 **特征** - 支持添加脏话,屏蔽一些api奇奇怪怪的bug的词,指定群聊 **安装** ```shell /plugin add nodirty ``` **启用** ```shell /plugin on nodirty ``` **使用** ```shell 【口吐芬芳】 ``` **配置** 编辑 `框架目录/data/plugins/nodirtywords/config.json` 文件 > 注意:配置中不能带有注释,此处注释仅用作解释说明。 ```jsonc // `框架目录/data/plugins/nodirtywords/config.json` 文件内容 { /*开启的群聊*/ "enableg": [ 114514, 1919810 ], /*是否在私聊启用*/ "enablep": true, /*添加的脏话*/ "add": [ "煞笔" ], /*屏蔽的脏话*/ "pass": [ "开发", "help" /*这是我目前发现的一部分api的bug*/ /*你也可以输入"#屏蔽 添加 <有bug的奇奇怪怪的词>"*/ ] } ``` 修改后保存,使用以下命令重载插件即可生效。 ```shell /plugin reload nodirty ```