Skip to main content

基于Trie树的高效群聊违禁词过滤插件,自动撤回群成员的敏感发言.需要管理员权限.

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-paminet-nodirtymsg

✨ NoneBot 群聊脏话管理插件 ✨

license pypi python

📖 介绍

只是一个平平无奇的聊天过滤插件。

暂仅支持OnebotV11协议

[!IMPORTANT] 该项目由DeepSeek-R1辅助开发!

🛡️ 功能特性

  • 多级违禁词匹配(支持 10 万级词库)
  • 异步文件 IO 操作
  • 智能撤回重试机制(可配置重试次数)
  • 实时热更新词库(修改文件后自动重载)
  • 环境变量覆盖配置

[!IMPORTANT] 收藏项目,让更多人知道这个没什么用的东西!⭐️

starify

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-paminet-nodirtymsg
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-paminet-nodirtymsg
pdm
pdm add nonebot-plugin-paminet-nodirtymsg
poetry
poetry add nonebot-plugin-paminet-nodirtymsg
conda
conda install nonebot-plugin-paminet-nodirtymsg

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot-plugin-paminet-nodirtymsg"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
DIRTY_MSG_FILTER_ENABLE True 是否启用聊天过滤
BADWORDS_DATA_PATH "data/badwords.json" 过滤词文件位置
MAX_RETRIES 5 消息撤回重试次数

🎉 使用

指令表

用去吧孩子,没指令

效果图

暂无

📄 许可证

本项目使用 MIT 许可证开源

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_paminet_nodirtymsg-0.3.6.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_paminet_nodirtymsg-0.3.6.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_paminet_nodirtymsg-0.3.6.tar.gz
Algorithm Hash digest
SHA256 3d3d24938541f85525c123b5afc838e21393d1ccbf7690fa31a1a6704d1f4cec
MD5 4f902740e0230d27b19516d8f2c11369
BLAKE2b-256 a2f351d8f3ea6e150de5c80692afd22c200f03bb99ffc5ffdbfc8c878c165f4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_paminet_nodirtymsg-0.3.6.tar.gz:

Publisher: pypi-publish.yml on PamiNET-Corp/nonebot-plugin-paminet-nodirtymsg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_paminet_nodirtymsg-0.3.6-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_paminet_nodirtymsg-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ab58f15c7d9a5fb163071515844771813ad557338b5041951033ebc85a65f810
MD5 22f2b4f67e3a53ff1b7121a567018f3d
BLAKE2b-256 b5528132b10196fb4ec79e5b59df416fb4e7f748f32520fbdc9295ffdc6ed67e

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_paminet_nodirtymsg-0.3.6-py3-none-any.whl:

Publisher: pypi-publish.yml on PamiNET-Corp/nonebot-plugin-paminet-nodirtymsg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page