Pallas-Bot 官方扩展:图像生成网关与画画命令。
Project description
牛牛画画 pallas-plugin-draw
提供群内 AI 生图与参考图改图能力。
安装方式
需已安装 Pallas-Bot ≥ 4.0。
推荐直接在控制台插件商店安装,或在本体项目中执行:
uv run pallas ext install pallas-plugin-draw
也可单独安装本包:
uv pip install pallas-plugin-draw
怎么使用
群内 AI 生图;可纯文字或带参考图(附图/回复图)。依赖画画网关,次数受限。
用户命令
| 口令 / 触发 | 场景 | 说明 |
|---|---|---|
| 牛牛画画 … | 群内 | 按描述生图或改图 |
命令权限
| 命令 ID | 默认等级 |
|---|---|
draw.draw |
everyone |
详细用法、限制条件和可用范围以帮助为主。
配置项
WebUI 插件 → 牛牛画画 或 服务网关 / 连通性;字段前缀为 pallas_image_*(历史命名,见文档站)。
完整键:本仓库 config.py
排障
| 现象 | 处理 |
|---|---|
| 失败提示 | 看返回文案;用 牛牛连通 测网关 |
| 次数用尽 | 等待重置或调配额 |
实现
关键文件:
src/pallas_plugin_draw/__init__.py:注册画画命令与插件元数据。src/pallas_plugin_draw/config.py:定义画画网关与限制配置。
实现要点:
- 支持纯文本生成与带参考图的改图路径。
- 结果依赖外部画图网关,失败时以返回文案和连通性为主要事实源。
相关链接
| 说明 | 链接 |
|---|---|
| 牛牛画画 · 用户文档 | 文档站 · draw |
| 插件开发入门 | develop/plugin/getting-started |
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pallas_plugin_draw-4.0.5.tar.gz.
File metadata
- Download URL: pallas_plugin_draw-4.0.5.tar.gz
- Upload date:
- Size: 427.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d105ceb28f6949702225558c261268a812637ece816c503ddc2359a4628c1ec1
|
|
| MD5 |
6a712510498c3413e77ae983a60b4b99
|
|
| BLAKE2b-256 |
cf3c2cbfbd1bc2d7fb1da0ebf28deb8d41d36b50094643600851ad816c69d31a
|
Provenance
The following attestation bundles were made for pallas_plugin_draw-4.0.5.tar.gz:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-draw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_draw-4.0.5.tar.gz -
Subject digest:
d105ceb28f6949702225558c261268a812637ece816c503ddc2359a4628c1ec1 - Sigstore transparency entry: 1860322953
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-draw@3b6b15a12aca03a91f0dc6ea24a71e991aa1af6d -
Branch / Tag:
refs/tags/v4.0.5 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3b6b15a12aca03a91f0dc6ea24a71e991aa1af6d -
Trigger Event:
push
-
Statement type:
File details
Details for the file pallas_plugin_draw-4.0.5-py3-none-any.whl.
File metadata
- Download URL: pallas_plugin_draw-4.0.5-py3-none-any.whl
- Upload date:
- Size: 61.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6385b95b37862bb75a9478a69686d0c2e0b1d4ec7a4a88eeb5c6d9a1db16826d
|
|
| MD5 |
5bf5e5e7a6ea6074470c27661c4c9733
|
|
| BLAKE2b-256 |
293f11a98c547f406af0cbfcb988862ac1071181543f452d612c1184a616ec8e
|
Provenance
The following attestation bundles were made for pallas_plugin_draw-4.0.5-py3-none-any.whl:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-draw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_draw-4.0.5-py3-none-any.whl -
Subject digest:
6385b95b37862bb75a9478a69686d0c2e0b1d4ec7a4a88eeb5c6d9a1db16826d - Sigstore transparency entry: 1860323067
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-draw@3b6b15a12aca03a91f0dc6ea24a71e991aa1af6d -
Branch / Tag:
refs/tags/v4.0.5 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@3b6b15a12aca03a91f0dc6ea24a71e991aa1af6d -
Trigger Event:
push
-
Statement type: