处理好友申请和群邀请,支持查看申请、手动同意/拒绝申请、同意/拒绝全部申请。
Project description
📖 介绍
此插件用于远程处理好友申请和加群邀请,支持查看申请、手动同意/拒绝申请、同意/拒绝全部申请。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-add-friends
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-add-friends
pdm
pdm add nonebot-plugin-add-friends
poetry
poetry add nonebot-plugin-add-friends
conda
conda install nonebot-plugin-add-friends
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_add_friends"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| SUPERUSERS | 是 | 无 | Bot的超级用户,用于接收、同意/拒绝好友申请及群邀请信息。 |
🕹️ 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| 查看申请 | 主人 | 否 | 私聊 | 查看待处理申请 |
| 同意/拒绝申请 <QQ号/群号> | 主人 | 否 | 私聊 | 同意/拒绝申请 |
| 同意/拒绝全部申请 | 主人 | 否 | 私聊 | 同意/拒绝全部申请 |
🎉 鸣谢
感谢以下开发者对本插件作出的贡献: Agnes4m
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
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_add_friends-0.1.5.tar.gz.
File metadata
- Download URL: nonebot_plugin_add_friends-0.1.5.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69be83dd649da0f2ad48bf765b883a22c569f7e56414df337435485abd739176
|
|
| MD5 |
ace868f4c32eef4615e53eb163628db0
|
|
| BLAKE2b-256 |
d9ed4c574a32e5049dfd7326681d7a1ecc5f0f8313e3a933001e03bc7cf3fe83
|
Provenance
The following attestation bundles were made for nonebot_plugin_add_friends-0.1.5.tar.gz:
Publisher:
pypi-publish.yml on hakunomiko/nonebot-plugin-add-friends
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_add_friends-0.1.5.tar.gz -
Subject digest:
69be83dd649da0f2ad48bf765b883a22c569f7e56414df337435485abd739176 - Sigstore transparency entry: 182043844
- Sigstore integration time:
-
Permalink:
hakunomiko/nonebot-plugin-add-friends@ae50b10c1fa7ec272cf2f65ec0706e4e13cb2052 -
Branch / Tag:
refs/tags/0.1.5 - Owner: https://github.com/hakunomiko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@ae50b10c1fa7ec272cf2f65ec0706e4e13cb2052 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nonebot_plugin_add_friends-0.1.5-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_add_friends-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
598ac1095bad288a4895d67707be7cdae0ed411883ade8a8258e1625f7104a5e
|
|
| MD5 |
37ea5432a5e942973fd84856740f3fea
|
|
| BLAKE2b-256 |
0d6ec3e0c87208c36fdc1d72392be89f079fdf5211e0324df6360f4dadcc27a4
|
Provenance
The following attestation bundles were made for nonebot_plugin_add_friends-0.1.5-py3-none-any.whl:
Publisher:
pypi-publish.yml on hakunomiko/nonebot-plugin-add-friends
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_add_friends-0.1.5-py3-none-any.whl -
Subject digest:
598ac1095bad288a4895d67707be7cdae0ed411883ade8a8258e1625f7104a5e - Sigstore transparency entry: 182043846
- Sigstore integration time:
-
Permalink:
hakunomiko/nonebot-plugin-add-friends@ae50b10c1fa7ec272cf2f65ec0706e4e13cb2052 -
Branch / Tag:
refs/tags/0.1.5 - Owner: https://github.com/hakunomiko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@ae50b10c1fa7ec272cf2f65ec0706e4e13cb2052 -
Trigger Event:
push
-
Statement type: