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.2.1.tar.gz (209.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_charpic-0.2.1-py3-none-any.whl (209.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_charpic-0.2.1.tar.gz
  • Upload date:
  • Size: 209.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.24.1 CPython/3.13.2 Windows/11

File hashes

Hashes for nonebot_plugin_charpic-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4d2e5c8fdb76d1065a4dfdccecca0de8fd435601eadbe57fba194f7b7e4da292
MD5 b68b135120d9673ae509280167edef58
BLAKE2b-256 a07da438da84b7dce74974d93a23b91c626497ef48ab960180919c95d16081bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_charpic-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a66df6b4290c01d2e1446276351d67d8f8bd03e33f3932156989b985b31373c
MD5 ba9e23fb2a58fe2f4eb869b211804ce3
BLAKE2b-256 d443761ccd5244f28ed2eaa104bc1c4398d5fafa6997f9fc096d880b4c67d2ef

See more details on using hashes here.

Supported by

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