安装
- 通过
pip或nb安装;
命令
- 使用 nb-cli , 需要在 bot 根目录下执行
nb plugin install nonebot_plugin_charpic
- 使用 pip ,安装完需要手动在 pyproject.toml 中的
tool.nonebot.plugins中添加nonebot_plugin_charpic以加载插件
pip install nonebot_plugin_charpic
功能
合成字符画(或 gif )
使用方法
字符画 + 图片,图片支持从回复消息中获取
⚠ 需要 nonebot2 配置的命令前缀,如果没配置默认 /
可能遇到的问题
缺资源
(没有字体的话可以尝试以下解决方案)
- 找到这个包(一般在
site-packages目录下),将data_source.py中的Path(__file__).parent / "font" / "consola.ttf"改为你自己想要的字体的路径; - 在
__init__.py同级目录创建文件夹,名为font, 再下载本仓库中的字体放进去。 - 直接clone本仓库,安装好依赖,放在bot能导入到的文件夹下面
(dddd)
Metadata
Release files for nonebot-plugin-charpic 0.2.1
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 | |
|---|---|---|---|---|
| nonebot_plugin_charpic-0.2.1.tar.gz | 209.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_charpic-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 419.0 kB
Release files / nonebot_plugin_charpic-0.2.1.tar.gz
| Download URL | nonebot_plugin_charpic-0.2.1.tar.gz |
|---|---|
| Size | 209.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d2e5c8fdb76d1065a4dfdccecca0de8fd435601eadbe57fba194f7b7e4da292
|
|
BLAKE2b-256 checksum How to use checksums |
a07da438da84b7dce74974d93a23b91c626497ef48ab960180919c95d16081bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.24.1 CPython/3.13.2 Windows/11
|
Release files / nonebot_plugin_charpic-0.2.1-py3-none-any.whl
| Download URL | nonebot_plugin_charpic-0.2.1-py3-none-any.whl |
|---|---|
| Size | 209.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a66df6b4290c01d2e1446276351d67d8f8bd03e33f3932156989b985b31373c
|
|
BLAKE2b-256 checksum How to use checksums |
d443761ccd5244f28ed2eaa104bc1c4398d5fafa6997f9fc096d880b4c67d2ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.24.1 CPython/3.13.2 Windows/11
|
Security for nonebot-plugin-charpic 0.2.1
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.