帮助管理员审核入群请求,退群自动记录拒绝入群
📖 介绍
在群内播报申请和审核状态,添加关键词后自动进行模糊匹配。
可开启退群黑名单,自动拒绝退群的人再次申请。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-auto-enter-group
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-auto-enter-group
pdm
pdm add nonebot-plugin-auto-enter-group
poetry
poetry add nonebot-plugin-auto-enter-group
conda
conda install nonebot-plugin-auto-enter-group
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_auto_enter_group"]
⚙️ 配置
无配置项,涉及到群管需用命令进行配置
插件数据存储在目录 ~/.local/share/nonebot2/nonebot_plugin_auto_enter_group
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| 查看关键词 | 群主/管理员/超级用户 | 否 | 群聊 | 群主/管理员可查看入群关键词 |
| 添加/删除允许关键词 | 群主/管理员/超级用户 | 否 | 群聊 | <关键词> |
| 添加/删除拒绝关键词 | 群主/管理员/超级用户 | 否 | 群聊 | <关键词> |
| 启用/禁用退群黑名单 | 群主/管理员/超级用户 | 否 | 群聊 | 启用后退群用户将无法再次加入 |
| 查看黑名单 | 群主/管理员/超级用户 | 否 | 群聊 | 查看当前群组黑名单 |
| 添加/移除黑名单 | 群主/管理员/超级用户 | 否 | 群聊 | 将批量用户ID添加/移出黑名单 |
🌹 鸣谢
感谢 大橘 提供的代码,多写点让我抄抄!
由于我不是代码相关专业,使用AI协助完成的代码
Metadata
Release files for nonebot-plugin-auto-enter-group 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_auto_enter_group-1.0.1.tar.gz | 7.1 kB | Without provenance | Details for nonebot_plugin_auto_enter_group-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_auto_enter_group-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_auto_enter_group-1.0.1-py3-none-any.whl |
Total release size: 15.6 kB
Release files / nonebot_plugin_auto_enter_group-1.0.1.tar.gz
| Download URL | nonebot_plugin_auto_enter_group-1.0.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af68a2a07cbfcdc70f9addfe2070200a31de308e612d557f9952a963d2f5b66f
|
|
BLAKE2b-256 checksum How to use checksums |
e2a84adb727e508326237a9bad04b85c0434cbf5ba10ca9f1d5c4c1aa211ee6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / nonebot_plugin_auto_enter_group-1.0.1-py3-none-any.whl
| Download URL | nonebot_plugin_auto_enter_group-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f288fda818bff5f51369df591d515137f94a411a3bd90817088dcc35f138c8c7
|
|
BLAKE2b-256 checksum How to use checksums |
b898aac2ca00f96a383cab7a45bc0e5587cff5a1b0e72344c121f5a607bbff40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for nonebot-plugin-auto-enter-group 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.