Skip to main content

Generate picture(or GIF) by characters

Project description

生成字符画(包括GIF)

安装

  1. 通过pipnb安装;

命令

  1. 使用 nb-cli , 需要在 bot 根目录下执行
nb plugin install nonebot_plugin_charpic
  1. 使用 pip ,安装完需要手动在 pyproject.toml 中的 tool.nonebot.plugins 中添加 nonebot_plugin_charpic 以加载插件
pip install nonebot_plugin_charpic

功能

合成字符画(或 gif )

使用方法

字符画 + 图片

⚠ 需要 nonebot2 配置的命令前缀,如果没配置默认 /

问题

缺资源

(没有字体的话可以尝试以下解决方案)

  1. 找到这个包(一般在site-packages目录下),将data_source.py中的Path(__file__).parent / "font" / "consola.ttf"改为你自己想要的字体的路径;
  2. __init__.py同级目录创建文件夹,名为 font, 再下载本仓库中的字体放进去。
  3. 直接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.3.tar.gz (208.8 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_charpic-0.1.3-py3-none-any.whl (208.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_charpic-0.1.3.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_charpic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 07aa55ee210f804381011e495b781217e2cc8e42a1bc806c40a0ff8ae9164c45
MD5 c4cf92d618fd0c34cf5680501768fd3e
BLAKE2b-256 ce36230111f884090f5bf5d7cf86f04e9e4cd2b48c2353d86d96919ba95868f3

See more details on using hashes here.

File details

Details for the file nonebot_plugin_charpic-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_charpic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 54b03df0b54e4934c08606de7546601b4155d495caf3aa7a528172eb7b126cd6
MD5 f8d1ce59b587e152fe44361de9fcfa5c
BLAKE2b-256 6d0c6fa50d09691272623a80af7021cacad687e06698c5cdea286f985d008d1f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page