nonebot-plugin-vvquest
通过API获取维维语录图片的NoneBot2插件
功能介绍
通过API获取维维语录图片,支持直接搜索和引用消息搜索,可配置返回图片数量和使用合并转发消息。
安装方式
使用 nb-cli 安装(推荐)
nb plugin install nonebot-plugin-vvquest
使用 pip 安装
pip install nonebot-plugin-vvquest
手动安装
- 克隆本仓库
git clone https://github.com/webjoin111/nonebot-plugin-vvquest.git
-
将
nonebot_plugin_vvquest文件夹复制到你的插件目录下 -
在
pyproject.toml中添加插件
[tool.nonebot]
plugins = ["nonebot_plugin_vvquest"]
配置项
在.env文件中添加以下配置:
# 最大返回图片数量限制 (1-50)
VVQUEST_MAX_NUM=10
# 是否使用合并转发消息
VVQUEST_USE_FORWARD=true
# 本地API完整地址(如 http://localhost:8000/search),留空使用默认在线API
VVQUEST_API_BASE=""
# API请求冷却时间(秒),防止频繁请求 (1-300)
VVQUEST_COOLDOWN=30
使用方法
直接搜索
/vv语录 <标题> [数量/参数]
引用消息搜索
引用某条消息 + /vv语录 [数量/参数]
支持本地API
在配置中设置 VVQUEST_API_BASE 项,填写完整API地址(如 http://localhost:8000/search)
示例
/vv语录 你好
/vv语录 你好 5
/vv语录 你好 n=5
注意事项
- 默认返回5条结果,最大返回数量受配置限制
- 请求有冷却时间,防止频繁请求
- 本地API失败时会自动回退到在线API
- 插件内置API请求失败重试机制,提高稳定性
API 来源
本插件使用的 API 基于 MemeMeow 项目,在此对该项目的开发者表示衷心的感谢!
如果网络连接有问题,建议开启代理工具,并将 api.zvv.quest 加入规则列表,以确保 API 请求能够正常进行。
开源协议
本项目使用 MIT 许可证开源。
Metadata
Release files for nonebot-plugin-vvquest 0.1.0
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_vvquest-0.1.0.tar.gz | 6.4 kB | Without provenance | Details for nonebot_plugin_vvquest-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_vvquest-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_vvquest-0.1.0-py3-none-any.whl |
Total release size: 13.6 kB
Release files / nonebot_plugin_vvquest-0.1.0.tar.gz
| Download URL | nonebot_plugin_vvquest-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94b7f19802606f2c706f0d149840fdb441eec047bceaed64cd1ccfd558e34003
|
|
BLAKE2b-256 checksum How to use checksums |
b2150895f75a08a4f378fe9b91521be3207cdded9b83d2e397bc29fd068f63d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Release files / nonebot_plugin_vvquest-0.1.0-py3-none-any.whl
| Download URL | nonebot_plugin_vvquest-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52cf11c2e365e33c15e4e645b2614d6954275d8375a344edd0f90fc860c4d88f
|
|
BLAKE2b-256 checksum How to use checksums |
69b33a66730dd9be6f0dea7a4b00cfee5d5e6e72d84a1bf148869ecf872d5024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Security for nonebot-plugin-vvquest 0.1.0
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.