Skip to main content

生成字符画(包括GIF)

安装

  1. 通过pip或nb安装;

命令

  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)

Metadata

Release files for nonebot-plugin-charpic-migang 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-charpic-migang 0.0.1
File Size Uploaded Provenance Actions
nonebot_plugin_charpic_migang-0.0.1.tar.gz 210.3 kB Without provenance Details for nonebot_plugin_charpic_migang-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-charpic-migang 0.0.1
File Interpreter ABI Platform Actions
nonebot_plugin_charpic_migang-0.0.1-py3-none-any.whl Python 3 none any Details for nonebot_plugin_charpic_migang-0.0.1-py3-none-any.whl

Total release size: 420.3 kB

Release files / nonebot_plugin_charpic_migang-0.0.1.tar.gz

Download URL nonebot_plugin_charpic_migang-0.0.1.tar.gz
Size 210.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1387a7eb3df7bda3d1530aa8bbcb5c1ce1b1c0702a4851fbdfcc83c6a5ab8dea
BLAKE2b-256 checksum
How to use checksums
4360753d0d2d180d223d291f0abf700db3b176d2b9b6ea89309f7708f7a3964f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.13.3 CPython/3.12.1 Windows/11

Release files / nonebot_plugin_charpic_migang-0.0.1-py3-none-any.whl

Download URL nonebot_plugin_charpic_migang-0.0.1-py3-none-any.whl
Size 210.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42bbf518719af88bdbd3f0a3b33222f0998bc0eaffdab24044b6999253be19a7
BLAKE2b-256 checksum
How to use checksums
aad4d2ee007c2993acc9eae682ab25b7ed3baa8d1970af03cde2cf2a6f22ce5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.13.3 CPython/3.12.1 Windows/11

Security for nonebot-plugin-charpic-migang 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page