Generate picture(or GIF) by characters
Project description
生成字符画(包括GIF)
版本
v0.1.1
⚠ 适配nonebot2-2.0.1;
安装
- 通过
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)
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_charpic-0.1.2.tar.gz
(208.9 kB
view details)
Built Distribution
File details
Details for the file nonebot_plugin_charpic-0.1.2.tar.gz
.
File metadata
- Download URL: nonebot_plugin_charpic-0.1.2.tar.gz
- Upload date:
- Size: 208.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b8f1490380789db10b6f8003dd534bd716ff4514a395e1ceb51a909f9d53a0e |
|
MD5 | c8938ee8a4d7f2a05cc0c3700b8ddf99 |
|
BLAKE2b-256 | cbecffa737ac2025001d7fdaaa4173730fcdc4141d4ec0ce931cad0990053765 |
File details
Details for the file nonebot_plugin_charpic-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_charpic-0.1.2-py3-none-any.whl
- Upload date:
- Size: 208.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc9fb0e61b4f12dcc20bf33bda6f27c1cc8d5ae563ee034cd7c98085ddf69502 |
|
MD5 | d8cd87bd25324a8b2e40abb9c100dcaf |
|
BLAKE2b-256 | 5b20ba208033011d1cbcabe02320f5faa70237ca8914f553a6570dddfd625a41 |