Pallas-Bot 官方扩展:唱歌与聊天。
Project description
AI 媒体 pallas-plugin-ai-media
提供牛牛唱歌与酒后聊天能力,依赖 Pallas-Bot-AI 媒体与对话运行时。
安装方式
需已安装 Pallas-Bot ≥ 4.0,并部署 Pallas-Bot-AI。
推荐直接在控制台插件商店安装,或在本体项目中执行:
uv run pallas ext install pallas-plugin-ai-media
也可单独安装本包:
uv pip install pallas-plugin-ai-media
怎么使用
牛牛唱歌(sing)
AI 翻唱、续唱、点歌与查歌名;依赖 AI 仓与本体 callback 回传音频。
| 口令 / 触发 | 场景 | 说明 |
|---|---|---|
| 牛牛唱歌 歌曲名 [key=±N] | 群内 | AI 翻唱 |
| 牛牛继续唱 / 牛牛接着唱 | 群内 | 续唱上一首 |
| 牛牛点歌 歌曲名 | 群内 | 网易云原曲 |
| 牛牛什么歌 / 牛牛哪首歌 | 群内 | 查询当前曲目 |
| 网易云登录 / 网易云登出 | 私聊 | 超管维护 Cookie |
| 命令 ID | 默认等级 |
|---|---|
sing.ncm_login |
superuser |
sing.ncm_logout |
superuser |
详细用法、限制条件和可用范围以帮助为主。
配置项
可在控制台对应插件页中修改。
唱歌与酒后聊天的具体配置分别位于对应子插件配置文件:src/pallas_plugin_sing/config.py 与 src/pallas_plugin_chat/config.py。
酒后聊天(chat)
牛牛醉酒时可用 ChatRWKV 对话(与 plugins-ollama 随时闲聊独立)。
| 触发 | 场景 | 说明 |
|---|---|---|
| @牛牛 / 牛牛 + 文本 | 群内 | 醉酒时 AI 回复 |
排障
| 现象 | 处理 |
|---|---|
| 唱歌无语音 | 查 AI 服务、/callback 可达;牛牛连通 测唱歌网关 |
| 聊天无回复 | 确认已喝酒、chat_enable=true、AI 可达 |
实现
源码位置:
实现要点:
sing负责媒体任务编排、回调收口与网易云相关命令。chat只在牛牛醉酒时接管对话,与常驻闲聊能力分离。- 两部分都依赖 Pallas-Bot-AI 与本体网关连通性。
相关链接
| 说明 | 链接 |
|---|---|
| 唱歌 | 文档站 · sing |
| 酒后聊天 | 文档站 · chat |
| Pallas-Bot-AI | GitHub |
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_ai_media-4.0.11.tar.gz.
File metadata
- Download URL: pallas_plugin_ai_media-4.0.11.tar.gz
- Upload date:
- Size: 3.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81ced0aea24a696f9335db7c5b27ced300ece4d8be0e35c5fa2f1075d4a5d599
|
|
| MD5 |
74746c7f9a191020cf1f392c36ad8edf
|
|
| BLAKE2b-256 |
a894b1ec578abadd362a7cb3437a6cdb52d9b368df3d790cc20db48f34a6475d
|
Provenance
The following attestation bundles were made for pallas_plugin_ai_media-4.0.11.tar.gz:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-ai-media
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_ai_media-4.0.11.tar.gz -
Subject digest:
81ced0aea24a696f9335db7c5b27ced300ece4d8be0e35c5fa2f1075d4a5d599 - Sigstore transparency entry: 1932695689
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-ai-media@ce91e28c57f6d8cf43734e20a728dbec1bfe8d12 -
Branch / Tag:
refs/tags/v4.0.11 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@ce91e28c57f6d8cf43734e20a728dbec1bfe8d12 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pallas_plugin_ai_media-4.0.11-py3-none-any.whl.
File metadata
- Download URL: pallas_plugin_ai_media-4.0.11-py3-none-any.whl
- Upload date:
- Size: 38.5 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 |
bb42aecf966affb12b67c433d71130b341194a46cbd5b3d2c8bc51d761dfc23d
|
|
| MD5 |
c62419acdbf55a83b099c4c433d66fd3
|
|
| BLAKE2b-256 |
708ca7480b85fcee5fa037a65eba2705108613b76750860c3656a42bc91f80fa
|
Provenance
The following attestation bundles were made for pallas_plugin_ai_media-4.0.11-py3-none-any.whl:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-ai-media
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_ai_media-4.0.11-py3-none-any.whl -
Subject digest:
bb42aecf966affb12b67c433d71130b341194a46cbd5b3d2c8bc51d761dfc23d - Sigstore transparency entry: 1932695971
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-ai-media@ce91e28c57f6d8cf43734e20a728dbec1bfe8d12 -
Branch / Tag:
refs/tags/v4.0.11 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@ce91e28c57f6d8cf43734e20a728dbec1bfe8d12 -
Trigger Event:
push
-
Statement type: