Generate picture(or GIF) by characters
Project description
生成字符画(或GIF)
安装
- 通过
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.2.0.tar.gz
(209.4 kB
view details)
Built Distribution
File details
Details for the file nonebot_plugin_charpic-0.2.0.tar.gz
.
File metadata
- Download URL: nonebot_plugin_charpic-0.2.0.tar.gz
- Upload date:
- Size: 209.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.12.3 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34308c3fc7bf9994a334b5ad3a7f4819b13f430b37e3f8ad3932ef52ac4ee614 |
|
MD5 | f595e16ef49190244adc36ee035bd301 |
|
BLAKE2b-256 | 262bfec7edfbd16c4a801cce876311a87433d3aed7980036e1666b6c90ad344e |
File details
Details for the file nonebot_plugin_charpic-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_charpic-0.2.0-py3-none-any.whl
- Upload date:
- Size: 209.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.12.3 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c26a718a7001bcf24df60abb0eb74bb172bbb073824c20e557f18ff0ddadfa38 |
|
MD5 | ebaf116318a01fb2ba554919be762859 |
|
BLAKE2b-256 | fd88f532c04e89175bc186cf6db60d951eacd370b5da3f9b3df4a472adf6a8c0 |