Skip to main content

nonebot-plugin-weiweibot

✨ 维维豆奶欢乐开怀 😋 ✨

license pypi python downloads

📖 介绍

一个快速查找维维老师语录的机器人

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-weiweibot
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-weiweibot
pdm
pdm add nonebot-plugin-weiweibot
poetry
poetry add nonebot-plugin-weiweibot
uv
uv add nonebot-plugin-weiweibot

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_weiweibot"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
COMMAND_START 否 ["/"] 决定命令开头
COMMAND_SEP 否 ["."] 决定命令分割符
GPG_EMAIL 是 xxx@example.com 决定 bot 使用的密钥
PLUG_LISTEN_GROUPS 是 [114514, 1919810] 决定插件响应群组
ALGOLIA_APPLICATION_ID 是 114514 请先将 nin 的图片库上传 algolia
ALGOLIA_API_KEY 是 114514 请先将 nin 的图片库上传 algolia

🎉 使用

指令表

指令 权限 需要@ 说明
/help 所有人 否 帮助说明
/deta 所有人 否 进一步的帮助说明(bushi
/vv 所有人 否 输入任意关键字, 返回匹配的随机图片
/r 所有人 否 无需参数, 返回随机图片
/al 所有人 否 algolia 搜索, 输入任意关键字, 返回匹配列表或指定图
/acc 所有人 否 精确搜索, 输入关键字, 返回匹配的图片列表或唯一图片
/gpg 所有人 否 加载 nin 的 gpg 密钥用于加密通信
/upload 所有人 否 上传图片

🥹 目前仅 /vv 和 /al 指令支持 gpg, clip 正在绝赞施工中

⚠️ 目前部分指令未进行全面的测试

😘本项目使用了 nonebot_plugin_localstore 进行会话存储, 存储位置等请参照该插件文档

🥰 nin 可以在本仓库的 assets 里下载样例图片

Metadata

Release files for nonebot-plugin-weiweibot 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-weiweibot 0.2.3
File Size Uploaded Provenance Actions
nonebot_plugin_weiweibot-0.2.3.tar.gz 12.2 kB With provenance Details for nonebot_plugin_weiweibot-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-weiweibot 0.2.3
File Interpreter ABI Platform Actions
nonebot_plugin_weiweibot-0.2.3-py3-none-any.whl Python 3 none any Details for nonebot_plugin_weiweibot-0.2.3-py3-none-any.whl

Total release size: 25.1 kB

Release files / nonebot_plugin_weiweibot-0.2.3.tar.gz

Download URL nonebot_plugin_weiweibot-0.2.3.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bee123e24b58a50579d31c21bf2434fac9857f1efe42c9161bea74254a80bdec
BLAKE2b-256 checksum
How to use checksums
2a15080fad8461e4faeecc51eb1ce68030c043daa8c2d2b9068b9ec057261abd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2025.

Transparency log

Release files / nonebot_plugin_weiweibot-0.2.3-py3-none-any.whl

Download URL nonebot_plugin_weiweibot-0.2.3-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aade1d6816ab7481dd3db32a57af89f74fb09700d76595d39bbe8da60049e993
BLAKE2b-256 checksum
How to use checksums
5c17215718e2027a7503cdfbf4575e9b2fc46caca0cdc5b1acb2d13b0922e185
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2025.

Transparency log

Security for nonebot-plugin-weiweibot 0.2.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nonebot_plugin_weiweibot-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2025.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page