<div align="center">
<a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
<br>
<p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>
<div align="center">
# nonebot-plugin-add-friends
_✨ 处理好友申请和群邀请,支持查看申请、手动同意/拒绝申请、同意/拒绝全部申请。 ✨_
<a href="https://github.com/hakunomiko/nonebot-plugin-add-friends/stargazers">
<img alt="GitHub stars" src="https://img.shields.io/github/stars/hakunomiko/nonebot-plugin-add-friends" alt="stars">
</a>
<a href="./LICENSE">
<img src="https://img.shields.io/github/license/hakunomiko/nonebot-plugin-add-friends.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-add-friends">
<img src="https://img.shields.io/pypi/v/nonebot-plugin-add-friends.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
</div>
## 📖 介绍
此插件用于远程处理好友申请和加群邀请,支持查看申请、手动同意/拒绝申请、同意/拒绝全部申请。
## 💿 安装
<details open>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-add-friends
</details>
<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
<details>
<summary>pip</summary>
pip install nonebot-plugin-add-friends
</details>
<details>
<summary>pdm</summary>
pdm add nonebot-plugin-add-friends
</details>
<details>
<summary>poetry</summary>
poetry add nonebot-plugin-add-friends
</details>
<details>
<summary>conda</summary>
conda install nonebot-plugin-add-friends
</details>
打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
plugins = ["nonebot_plugin_add_friends"]
</details>
## ⚙️ 配置
在 nonebot2 项目的`.env`文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|:-----:|:----:|:----:|:----:|
| SUPERUSERS | 是 | 无 | Bot的超级用户,用于接收、同意/拒绝好友申请及群邀请信息。 |
## 🕹️ 使用
### 指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|:-----:|:----:|:----:|:----:|:----:|
| 查看申请 | 主人 | 否 | 私聊 | 查看待处理申请 |
| 同意/拒绝申请 <QQ号/群号> | 主人 | 否 | 私聊 | 同意/拒绝申请 |
| 同意/拒绝全部申请 | 主人 | 否 | 私聊 | 同意/拒绝全部申请 |
## 🎉 鸣谢
感谢以下开发者对本插件作出的贡献:
[Agnes4m](https://github.com/Agnes4m/nonebot_plugin_friends)
Raw data
{
"_id": null,
"home_page": "https://github.com/hakunomiko/nonebot-plugin-add-friends",
"name": "nonebot-plugin-add-friends",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "nonebot, nonebot2, plugin",
"author": "hakunomiko",
"author_email": "48401273+hakunomiko@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/c3/3d/36b05526fecaa6cba4848211c93190800bac2b1311240ff309b4f7a4c9c5/nonebot_plugin_add_friends-0.1.4.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n <a href=\"https://v2.nonebot.dev/store\"><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\n <br>\n <p><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-add-friends\n\n_\u2728 \u5904\u7406\u597d\u53cb\u7533\u8bf7\u548c\u7fa4\u9080\u8bf7\uff0c\u652f\u6301\u67e5\u770b\u7533\u8bf7\u3001\u624b\u52a8\u540c\u610f/\u62d2\u7edd\u7533\u8bf7\u3001\u540c\u610f/\u62d2\u7edd\u5168\u90e8\u7533\u8bf7\u3002 \u2728_\n\n\n<a href=\"https://github.com/hakunomiko/nonebot-plugin-add-friends/stargazers\">\n <img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/hakunomiko/nonebot-plugin-add-friends\" alt=\"stars\">\n</a>\n<a href=\"./LICENSE\">\n <img src=\"https://img.shields.io/github/license/hakunomiko/nonebot-plugin-add-friends.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-add-friends\">\n <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-add-friends.svg\" alt=\"pypi\">\n</a>\n<img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\n\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u6b64\u63d2\u4ef6\u7528\u4e8e\u8fdc\u7a0b\u5904\u7406\u597d\u53cb\u7533\u8bf7\u548c\u52a0\u7fa4\u9080\u8bf7\uff0c\u652f\u6301\u67e5\u770b\u7533\u8bf7\u3001\u624b\u52a8\u540c\u610f/\u62d2\u7edd\u7533\u8bf7\u3001\u540c\u610f/\u62d2\u7edd\u5168\u90e8\u7533\u8bf7\u3002\n\n## \ud83d\udcbf \u5b89\u88c5\n\n<details open>\n<summary>\u4f7f\u7528 nb-cli \u5b89\u88c5</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u6253\u5f00\u547d\u4ee4\u884c, \u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4\u5373\u53ef\u5b89\u88c5\n\n nb plugin install nonebot-plugin-add-friends\n\n</details>\n\n<details>\n<summary>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u63d2\u4ef6\u76ee\u5f55\u4e0b, \u6253\u5f00\u547d\u4ee4\u884c, \u6839\u636e\u4f60\u4f7f\u7528\u7684\u5305\u7ba1\u7406\u5668, \u8f93\u5165\u76f8\u5e94\u7684\u5b89\u88c5\u547d\u4ee4\n\n<details>\n<summary>pip</summary>\n\n pip install nonebot-plugin-add-friends\n</details>\n<details>\n<summary>pdm</summary>\n\n pdm add nonebot-plugin-add-friends\n</details>\n<details>\n<summary>poetry</summary>\n\n poetry add nonebot-plugin-add-friends\n</details>\n<details>\n<summary>conda</summary>\n\n conda install nonebot-plugin-add-friends\n</details>\n\n\u6253\u5f00 nonebot2 \u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684 `pyproject.toml` \u6587\u4ef6, \u5728 `[tool.nonebot]` \u90e8\u5206\u8ffd\u52a0\u5199\u5165\n\n plugins = [\"nonebot_plugin_add_friends\"]\n\n</details>\n\n## \u2699\ufe0f \u914d\u7f6e\n\n\u5728 nonebot2 \u9879\u76ee\u7684`.env`\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e0b\u8868\u4e2d\u7684\u5fc5\u586b\u914d\u7f6e\n\n| \u914d\u7f6e\u9879 | \u5fc5\u586b | \u9ed8\u8ba4\u503c | \u8bf4\u660e |\n|:-----:|:----:|:----:|:----:|\n| SUPERUSERS | \u662f | \u65e0 | Bot\u7684\u8d85\u7ea7\u7528\u6237\uff0c\u7528\u4e8e\u63a5\u6536\u3001\u540c\u610f/\u62d2\u7edd\u597d\u53cb\u7533\u8bf7\u53ca\u7fa4\u9080\u8bf7\u4fe1\u606f\u3002 |\n\n## \ud83d\udd79\ufe0f \u4f7f\u7528\n### \u6307\u4ee4\u8868\n| \u6307\u4ee4 | \u6743\u9650 | \u9700\u8981@ | \u8303\u56f4 | \u8bf4\u660e |\n|:-----:|:----:|:----:|:----:|:----:|\n| \u67e5\u770b\u7533\u8bf7 | \u4e3b\u4eba | \u5426 | \u79c1\u804a | \u67e5\u770b\u5f85\u5904\u7406\u7533\u8bf7 |\n| \u540c\u610f/\u62d2\u7edd\u7533\u8bf7 <QQ\u53f7/\u7fa4\u53f7> | \u4e3b\u4eba | \u5426 | \u79c1\u804a | \u540c\u610f/\u62d2\u7edd\u7533\u8bf7 |\n| \u540c\u610f/\u62d2\u7edd\u5168\u90e8\u7533\u8bf7 | \u4e3b\u4eba | \u5426 | \u79c1\u804a | \u540c\u610f/\u62d2\u7edd\u5168\u90e8\u7533\u8bf7 |\n\n## \ud83c\udf89 \u9e23\u8c22\n\u611f\u8c22\u4ee5\u4e0b\u5f00\u53d1\u8005\u5bf9\u672c\u63d2\u4ef6\u4f5c\u51fa\u7684\u8d21\u732e\uff1a\n[Agnes4m](https://github.com/Agnes4m/nonebot_plugin_friends)\n\n",
"bugtrack_url": null,
"license": null,
"summary": "\u5904\u7406\u597d\u53cb\u7533\u8bf7\u548c\u7fa4\u9080\u8bf7\uff0c\u652f\u6301\u67e5\u770b\u7533\u8bf7\u3001\u624b\u52a8\u540c\u610f/\u62d2\u7edd\u7533\u8bf7\u3001\u540c\u610f/\u62d2\u7edd\u5168\u90e8\u7533\u8bf7\u3002",
"version": "0.1.4",
"project_urls": {
"Homepage": "https://github.com/hakunomiko/nonebot-plugin-add-friends",
"Repository": "https://github.com/hakunomiko/nonebot-plugin-add-friends"
},
"split_keywords": [
"nonebot",
" nonebot2",
" plugin"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c133960387bd83abc14d1ef3f7605b4962ed6aa2b634a1ad3562b089a7a45a15",
"md5": "3315040a7b525dad2628671ff2c23a81",
"sha256": "c660ddac553211aa996b23f01ebf58fcd96058acdc36462a9a5e74570492ab40"
},
"downloads": -1,
"filename": "nonebot_plugin_add_friends-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3315040a7b525dad2628671ff2c23a81",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 7298,
"upload_time": "2025-01-09T10:10:26",
"upload_time_iso_8601": "2025-01-09T10:10:26.259928Z",
"url": "https://files.pythonhosted.org/packages/c1/33/960387bd83abc14d1ef3f7605b4962ed6aa2b634a1ad3562b089a7a45a15/nonebot_plugin_add_friends-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c33d36b05526fecaa6cba4848211c93190800bac2b1311240ff309b4f7a4c9c5",
"md5": "81d172678e81326eba4635d06a94443b",
"sha256": "a9968fb093205bf16a5e5d6c95046d8fa7adfdc45028535a32a95f5db3822c48"
},
"downloads": -1,
"filename": "nonebot_plugin_add_friends-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "81d172678e81326eba4635d06a94443b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 5729,
"upload_time": "2025-01-09T10:10:28",
"upload_time_iso_8601": "2025-01-09T10:10:28.511964Z",
"url": "https://files.pythonhosted.org/packages/c3/3d/36b05526fecaa6cba4848211c93190800bac2b1311240ff309b4f7a4c9c5/nonebot_plugin_add_friends-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-09 10:10:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hakunomiko",
"github_project": "nonebot-plugin-add-friends",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nonebot-plugin-add-friends"
}