Skip to main content

nonebot插件-动态帮助图片制作

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-HelpWithPic

✨ nonebot插件-动态帮助图片制作 ✨

license pypi python

⚠ 注意

因为我是小白,我只能以我自己的方式写我觉得可能挺好用的插件() 所以部分代码逻辑可能不是很好

目前只支持 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使用

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_helpwithpic-1.6.2.tar.gz (50.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_helpwithpic-1.6.2-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_helpwithpic-1.6.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_helpwithpic-1.6.2.tar.gz
Algorithm Hash digest
SHA256 3b27b6d9295fccdf5c669702a5440410d4aedb14036ac029cc90190a460c9ec6
MD5 e661798abf4d43032ac60b3d19a513aa
BLAKE2b-256 2f9ea3e8c946f7165cb5e9362fc9e7eb4316ff9edfc7a3f973670a415bdf5bb7

See more details on using hashes here.

File details

Details for the file nonebot_plugin_helpwithpic-1.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_helpwithpic-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 862bcf528e60422545f07471ba0a8b29358c2c5d342fdf40b7831a05c86e359d
MD5 543cc4d20be41530ec728fa341f82f7b
BLAKE2b-256 465d39f5e4dc377c95cce3501c2b09654547afc720a37cc10512e29ebdd74b31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page