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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot_plugin_charpic_migang-0.0.1.tar.gz
.
File metadata
- Download URL: nonebot_plugin_charpic_migang-0.0.1.tar.gz
- Upload date:
- Size: 210.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.13.3 CPython/3.12.1 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1387a7eb3df7bda3d1530aa8bbcb5c1ce1b1c0702a4851fbdfcc83c6a5ab8dea |
|
MD5 | e088fa317116b0fb3f1d3d86215a7a9f |
|
BLAKE2b-256 | 4360753d0d2d180d223d291f0abf700db3b176d2b9b6ea89309f7708f7a3964f |
File details
Details for the file nonebot_plugin_charpic_migang-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_charpic_migang-0.0.1-py3-none-any.whl
- Upload date:
- Size: 210.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.13.3 CPython/3.12.1 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42bbf518719af88bdbd3f0a3b33222f0998bc0eaffdab24044b6999253be19a7 |
|
MD5 | cc47c7fa475085664b6e68fd1d4dbf93 |
|
BLAKE2b-256 | aad4d2ee007c2993acc9eae682ab25b7ed3baa8d1970af03cde2cf2a6f22ce5d |