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.1.tar.gz
(208.9 kB
view hashes)
Built Distribution
Close
Hashes for nonebot_plugin_charpic-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff38ed330070e651e7f5a49bdb0aa1b38ed17026ea76f54d03330b0ad731ee81 |
|
MD5 | 59d3dd6676586f24906c078784e588a1 |
|
BLAKE2b-256 | 1427fa06910ada47351803b5f51bdc10231bc8bfd806d0c55cbfbe222439b9e4 |
Close
Hashes for nonebot_plugin_charpic-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eda84e6af2bd0b73ec0e9f5dae9b2c773de57401768d9f67623d39ff16d6e9e |
|
MD5 | 3a1423c0e32aed7777a888d2ea8195bd |
|
BLAKE2b-256 | 3074a3f9cf7b2f5c3022c5457f0548d0a6032afe776a6acdd8ef14306ed00b59 |