Skip to main content

NoneBotPluginLogo

NoneBotPluginText

nonebot_plugin_face2cartoonpic

✨基于腾讯云合成图的以图绘图的Nonebot插件✨


license pypi python

💿 安装

1. nb-cli安装(推荐)

bot根目录下打开命令行,执行nb命令安装插件,插件配置会自动添加至配置文件

nb plugin install nonebot_plugin_face2cartoonpic

2. pip安装

pip install nonebot_plugin_face2cartoonpic --upgrade

打开 nonebot2 项目的 bot.py 文件, 在其中写入
nonebot.load_plugin('nonebot_plugin_abstain_diary')

或在bot路径pyproject.toml的[tool.nonebot]的plugins中添加nonebot_plugin_face2cartoonpic即可
pyproject.toml配置例如:

[tool.nonebot]
plugin_dirs = ["src/plugins"]
plugins = ["nonebot_plugin_face2cartoonpic","xxxxx"]

📖 配置


官方指南 https://cloud.tencent.com/document/product/1202/41796

先到腾讯云这里获取服务资源包 https://console.cloud.tencent.com/ft/resource

再去 https://console.cloud.tencent.com/cam/capi 的api密钥管理获取api密钥


bot根目录下.env文件

  
Secret_Id = ""这两个写从腾讯云获取的api密钥
  
Secret_Key = ""
  
FaceCartoonPic_cd_time = 60{int}默认60  
  

🎉 使用

指令表

指令 需要@ 范围 说明
人物变换 + 图片 否 群聊/私聊 对发送的图片启用模型, 支持回复图片

使用示例:

/人物变换 <图像>

注意

默认情况下, 您应该在指令前加上命令前缀, 通常是 /

Metadata

Release files for nonebot-plugin-face2cartoonpic 0.3.2

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-face2cartoonpic 0.3.2
File Size Uploaded Provenance
nonebot_plugin_face2cartoonpic-0.3.2.tar.gz 17.8 kB Without provenance Details

Release files / nonebot_plugin_face2cartoonpic-0.3.2.tar.gz

Download URL nonebot_plugin_face2cartoonpic-0.3.2.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
498f90714c112d6d1b37c28ee5ece2b5a5b3d433fc37c53a6ea6a380ba13534b
BLAKE2b-256 checksum
How to use checksums
33d0960011a9d2a4ef92d6f4cd9d11e98f15464b6fbe6e3484f22cd45674e358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.0

Security for nonebot-plugin-face2cartoonpic 0.3.2

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.

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