⚠ 注意
因为我是小白,我只能以我自己的方式写我觉得可能挺好用的插件() 所以部分代码逻辑可能不是很好
目前只支持 onebotV11 暂时还未上传nonebot商店 将在正式版尝试上传.
📖 介绍
这里是插件的详细介绍部分
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-HelpWithPic
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-HelpWithPic
pdm
pdm add nonebot-plugin-HelpWithPic
poetry
poetry add nonebot-plugin-HelpWithPic
conda
conda install nonebot-plugin-HelpWithPic
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_HelpWithPic"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
大小写不影响配置)
⚠ 注意
部分 pydantic 版本可能会导致 HWP_custom_bg 项目报错!
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| HWP_font | 否 | None | 使用的字体文件 |
| HWP_custom_bg | 否 | [] | 图片背景,需要以file:///开头,比如["file:///./data/draw/default_bg1.png"]此处使用相对路径,默认使用bing壁纸 |
| HWP_bot_version | 否 | "Unknow" | 可以填你的bot版本 |
| HWP_commandstart | 否 | "#" | 自定义命令头 |
| HWP_nickname | 否 | "本bot的帮助文档" | 标题 |
| HWP_text | 否 | "你想要的,我们都没有(不是\n这是描述" | 描述 |
| HWP_version | 否 | "HelpWithPic-Betaxxx" | 插件版本 |
| cubplugin_datadir | 否 | "" | 插件数据文件夹 |
| hwp_addseparator | 否 | "\n" | helpadd的命令分割符,默认为回车 |
| hwp_txt_halign | 否 | "left" | 描述文本对齐方式 left / center / right |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| #help | user | 否 | 群聊/私聊 | 请根据HWP_commandstart使用 |
Metadata
Release files for nonebot-plugin-helpwithpic 1.6.3
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_helpwithpic-1.6.3.tar.gz | 50.4 kB | Without provenance | Details for nonebot_plugin_helpwithpic-1.6.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_helpwithpic-1.6.3-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_helpwithpic-1.6.3-py3-none-any.whl |
Total release size: 89.7 kB
Release files / nonebot_plugin_helpwithpic-1.6.3.tar.gz
| Download URL | nonebot_plugin_helpwithpic-1.6.3.tar.gz |
|---|---|
| Size | 50.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b78287f58cd8c9e58baebb1d795afaee3fcd784626eb86028a4233966e6663c2
|
|
BLAKE2b-256 checksum How to use checksums |
0237ea0f9812852e07262b41a9f96e15886043830183ac7c0e964c8b437fa102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / nonebot_plugin_helpwithpic-1.6.3-py3-none-any.whl
| Download URL | nonebot_plugin_helpwithpic-1.6.3-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dedc8b9085f3d04bfcde0e23595af072ddad924f5e4ee0275ea6a387d483841
|
|
BLAKE2b-256 checksum How to use checksums |
4a301315a87aae2ee96538bc0746c426d8289a5c3a94e0e97ef3a20123749e64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for nonebot-plugin-helpwithpic 1.6.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.
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.