No project description provided
Project description
📖 介绍
通过 违禁词词库 审核群消息, 触犯规则后自动禁言或踢出, 可选禁止重新加群
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-sensitive-lexicon --upgrade
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令uv
uv add nonebot-plugin-sensitive-lexicon
安装仓库 master 分支
uv add git+https://github.com/zifox666/nonebot-plugin-sensitive-lexicon@master
pdm
pdm add nonebot-plugin-sensitive-lexicon
安装仓库 master 分支
pdm add git+https://github.com/zifox666/nonebot-plugin-sensitive-lexicon@master
poetry
poetry add nonebot-plugin-sensitive-lexicon
安装仓库 master 分支
poetry add git+https://github.com/zifox666/nonebot-plugin-sensitive-lexicon@master
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_sensitive_lexicon"]
使用 nbr 安装(使用 uv 管理依赖可用)
nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2
nbr plugin install nonebot-plugin-sensitive-lexicon
使用 pypi 源安装
nbr plugin install nonebot-plugin-sensitive-lexicon -i "https://pypi.org/simple"
使用清华源安装
nbr plugin install nonebot-plugin-sensitive-lexicon -i "https://pypi.tuna.tsinghua.edu.cn/simple"
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| KICK_COUNT | 否 | 5 | 触犯几次规则后踢人 |
| MUTE_DAY | 否 | 1 | 首次触发禁言天数 |
| REJECT_ADD_REQUEST | 否 | False | 踢出后禁止重新加群 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| esl | 管理员 | 否 | 群聊 | 开关本群审核 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_sensitive_lexicon-0.0.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_sensitive_lexicon-0.0.2.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4eefc36977c08d885df4e27cc58ef6ace51ef4395acb7b26f8cfc04b13bd4dac
|
|
| MD5 |
6f3c4cb7d078cd122b22ced5a81ebf3e
|
|
| BLAKE2b-256 |
8953e0f605ffe22b7a221566ebb0073f57a7476e0923fd280358434df1548896
|
File details
Details for the file nonebot_plugin_sensitive_lexicon-0.0.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_sensitive_lexicon-0.0.2-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c6d30f7256854b6f0544a8960d904ba15b81eed87d058df13178471716a1279
|
|
| MD5 |
51263484dc79426242ccc5a8b8d68d05
|
|
| BLAKE2b-256 |
7766b939a5b561a53faef6f081be9e1c9d7a85f1139207b5f38b614d8ad88c0c
|