Name | nonebot-plugin-weiweibot JSON |
Version |
0.2.1
JSON |
| download |
home_page | None |
Summary | a simple weiwei bot |
upload_time | 2025-07-17 04:39:54 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.12 |
license | MIT |
keywords |
nonebot
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<!-- markdownlint-disable MD033 MD036 MD041 MD045 -->
<div align="center">
<a href="https://v2.nonebot.dev/store">
<img src="./NoneBotPlugin.svg" width="300" alt="logo">
</a>
</div>
<div align="center">
# nonebot-plugin-weiweibot
_✨ 维维豆奶欢乐开怀 😋 ✨_
<a href="./LICENSE">
<img src="https://img.shields.io/github/license/SwedishDoveCooker/nonebot-plugin-weiweibot.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-weiweibot">
<img src="https://img.shields.io/pypi/v/nonebot-plugin-weiweibot.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
<img src="https://img.shields.io/pypi/dm/nonebot-plugin-weiweibot?logo=nonebot-plugin-weiweibot&label=Downloads" alt="downloads">
</div>
## 📖 介绍
一个快速查找维维老师语录的机器人
## 💿 安装
<details open>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-weiweibot
</details>
<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
<details>
<summary>pip</summary>
pip install nonebot-plugin-weiweibot
</details>
<details>
<summary>pdm</summary>
pdm add nonebot-plugin-weiweibot
</details>
<details>
<summary>poetry</summary>
poetry add nonebot-plugin-weiweibot
</details>
<details>
<summary>conda</summary>
conda install nonebot-plugin-weiweibot
</details>
打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
plugins = ["nonebot_plugin_weiweibot"]
</details>
## ⚙️ 配置
在 nonebot2 项目的`.env`文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
| :--------------------: | :--: | :-------------: | :-----------------------------: |
| COMMAND_START | 否 | ["/"] | 决定命令开头 |
| COMMAND_SEP | 否 | ["."] | 决定命令分割符 |
| GPG_EMAIL | 是 | xxx@example.com | 决定 bot 使用的密钥 |
| ALGOLIA_APPLICATION_ID | 是 | 114514 | 请先将 nin 的图片库上传 algolia |
| ALGOLIA_API_KEY | 是 | 114514 | 请先将 nin 的图片库上传 algolia |
## 🎉 使用
### 指令表
| 指令 | 权限 | 需要@ | 说明 |
| :-----: | :----: | :---: | :------------------------------------------------: |
| /help | 所有人 | 否 | 帮助说明 |
| /deta | 所有人 | 否 | 进一步的帮助说明(bushi |
| /vv | 所有人 | 否 | 输入任意关键字, 返回匹配的随机图片 |
| /r | 所有人 | 否 | 无需参数, 返回随机图片 |
| /al | 所有人 | 否 | algolia 搜索, 输入任意关键字, 返回匹配列表或指定图 |
| /acc | 所有人 | 否 | 精确搜索, 输入关键字, 返回匹配的图片列表或唯一图片 |
| /gpg | 所有人 | 否 | 加载 nin 的 gpg 密钥用于加密通信 |
| /upload | 所有人 | 否 | 上传图片 |
<p> 🥹 目前仅 /vv 和 /al 指令支持 gpg, clip 正在绝赞施工中 </p>
<p> ⚠️ 目前部分指令未进行全面的测试 </p>
🥰 nin 可以在本仓库的 assets 里下载样例图片
Raw data
{
"_id": null,
"home_page": null,
"name": "nonebot-plugin-weiweibot",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "nonebot",
"author": null,
"author_email": "Alesso <intro@j4cka.cc>",
"download_url": "https://files.pythonhosted.org/packages/88/fb/a2cadc091c2bdb5aef94da4838316d19b2c423b013e72e32e4660eda2120/nonebot_plugin_weiweibot-0.2.1.tar.gz",
"platform": null,
"description": "<!-- markdownlint-disable MD033 MD036 MD041 MD045 -->\n<div align=\"center\">\n <a href=\"https://v2.nonebot.dev/store\">\n <img src=\"./NoneBotPlugin.svg\" width=\"300\" alt=\"logo\">\n </a>\n\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-weiweibot\n\n_\u2728 \u7ef4\u7ef4\u8c46\u5976\u6b22\u4e50\u5f00\u6000 \ud83d\ude0b \u2728_\n\n<a href=\"./LICENSE\">\n <img src=\"https://img.shields.io/github/license/SwedishDoveCooker/nonebot-plugin-weiweibot.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-weiweibot\">\n <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-weiweibot.svg\" alt=\"pypi\">\n</a>\n<img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\n<img src=\"https://img.shields.io/pypi/dm/nonebot-plugin-weiweibot?logo=nonebot-plugin-weiweibot&label=Downloads\" alt=\"downloads\">\n\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u4e00\u4e2a\u5feb\u901f\u67e5\u627e\u7ef4\u7ef4\u8001\u5e08\u8bed\u5f55\u7684\u673a\u5668\u4eba\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-weiweibot\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-weiweibot\n\n</details>\n<details>\n<summary>pdm</summary>\n\n pdm add nonebot-plugin-weiweibot\n\n</details>\n<details>\n<summary>poetry</summary>\n\n poetry add nonebot-plugin-weiweibot\n\n</details>\n<details>\n<summary>conda</summary>\n\n conda install nonebot-plugin-weiweibot\n\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_weiweibot\"]\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| COMMAND_START | \u5426 | [\"/\"] | \u51b3\u5b9a\u547d\u4ee4\u5f00\u5934 |\n| COMMAND_SEP | \u5426 | [\".\"] | \u51b3\u5b9a\u547d\u4ee4\u5206\u5272\u7b26 |\n| GPG_EMAIL | \u662f | xxx@example.com | \u51b3\u5b9a bot \u4f7f\u7528\u7684\u5bc6\u94a5 |\n| ALGOLIA_APPLICATION_ID | \u662f | 114514 | \u8bf7\u5148\u5c06 nin \u7684\u56fe\u7247\u5e93\u4e0a\u4f20 algolia |\n| ALGOLIA_API_KEY | \u662f | 114514 | \u8bf7\u5148\u5c06 nin \u7684\u56fe\u7247\u5e93\u4e0a\u4f20 algolia |\n\n## \ud83c\udf89 \u4f7f\u7528\n\n### \u6307\u4ee4\u8868\n\n| \u6307\u4ee4 | \u6743\u9650 | \u9700\u8981@ | \u8bf4\u660e |\n| :-----: | :----: | :---: | :------------------------------------------------: |\n| /help | \u6240\u6709\u4eba | \u5426 | \u5e2e\u52a9\u8bf4\u660e |\n| /deta | \u6240\u6709\u4eba | \u5426 | \u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9\u8bf4\u660e(bushi |\n| /vv | \u6240\u6709\u4eba | \u5426 | \u8f93\u5165\u4efb\u610f\u5173\u952e\u5b57, \u8fd4\u56de\u5339\u914d\u7684\u968f\u673a\u56fe\u7247 |\n| /r | \u6240\u6709\u4eba | \u5426 | \u65e0\u9700\u53c2\u6570, \u8fd4\u56de\u968f\u673a\u56fe\u7247 |\n| /al | \u6240\u6709\u4eba | \u5426 | algolia \u641c\u7d22, \u8f93\u5165\u4efb\u610f\u5173\u952e\u5b57, \u8fd4\u56de\u5339\u914d\u5217\u8868\u6216\u6307\u5b9a\u56fe |\n| /acc | \u6240\u6709\u4eba | \u5426 | \u7cbe\u786e\u641c\u7d22, \u8f93\u5165\u5173\u952e\u5b57, \u8fd4\u56de\u5339\u914d\u7684\u56fe\u7247\u5217\u8868\u6216\u552f\u4e00\u56fe\u7247 |\n| /gpg | \u6240\u6709\u4eba | \u5426 | \u52a0\u8f7d nin \u7684 gpg \u5bc6\u94a5\u7528\u4e8e\u52a0\u5bc6\u901a\u4fe1 |\n| /upload | \u6240\u6709\u4eba | \u5426 | \u4e0a\u4f20\u56fe\u7247 |\n\n<p> \ud83e\udd79 \u76ee\u524d\u4ec5 /vv \u548c /al \u6307\u4ee4\u652f\u6301 gpg, clip \u6b63\u5728\u7edd\u8d5e\u65bd\u5de5\u4e2d </p>\n\n<p> \u26a0\ufe0f \u76ee\u524d\u90e8\u5206\u6307\u4ee4\u672a\u8fdb\u884c\u5168\u9762\u7684\u6d4b\u8bd5 </p>\n\n\ud83e\udd70 nin \u53ef\u4ee5\u5728\u672c\u4ed3\u5e93\u7684 assets \u91cc\u4e0b\u8f7d\u6837\u4f8b\u56fe\u7247\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "a simple weiwei bot",
"version": "0.2.1",
"project_urls": {
"homepage": "https://github.com/SwedishDoveCooker/nonebot-plugin-weiweibot",
"repository": "https://github.com/SwedishDoveCooker/nonebot-plugin-weiweibot"
},
"split_keywords": [
"nonebot"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "be19acc629cdd8d44a5154ed88b6a747881cc8d38cc0669d59fe0e9cbcf9ab7e",
"md5": "4cccd9b99ad65ff358890183195689c1",
"sha256": "7439efac3c95f7d426a50402279182f9ec8eeeceaff7a6b0356585d031b10183"
},
"downloads": -1,
"filename": "nonebot_plugin_weiweibot-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4cccd9b99ad65ff358890183195689c1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 12585,
"upload_time": "2025-07-17T04:39:53",
"upload_time_iso_8601": "2025-07-17T04:39:53.093765Z",
"url": "https://files.pythonhosted.org/packages/be/19/acc629cdd8d44a5154ed88b6a747881cc8d38cc0669d59fe0e9cbcf9ab7e/nonebot_plugin_weiweibot-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "88fba2cadc091c2bdb5aef94da4838316d19b2c423b013e72e32e4660eda2120",
"md5": "4e6840c729e1b85fb9f11b7124e2557c",
"sha256": "9497afe9159fe57b7c027f470db33a5b45fcb7c07612cee94c2dc0bc81b4fe7e"
},
"downloads": -1,
"filename": "nonebot_plugin_weiweibot-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "4e6840c729e1b85fb9f11b7124e2557c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 11886,
"upload_time": "2025-07-17T04:39:54",
"upload_time_iso_8601": "2025-07-17T04:39:54.542944Z",
"url": "https://files.pythonhosted.org/packages/88/fb/a2cadc091c2bdb5aef94da4838316d19b2c423b013e72e32e4660eda2120/nonebot_plugin_weiweibot-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-17 04:39:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SwedishDoveCooker",
"github_project": "nonebot-plugin-weiweibot",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nonebot-plugin-weiweibot"
}