Pallas-Bot 官方扩展:群内做梦与分片漂移。
Project description
pallas-plugin-dream
Pallas-Bot 4.0 官方扩展:牛牛做梦(群内旁路、分片漂移)。
安装
需已安装 Pallas-Bot ≥ 4.0。
推荐直接在控制台插件商店安装,或在本体项目中执行:
uv run pallas ext install pallas-plugin-dream
也可单独安装本包:
uv pip install pallas-plugin-dream
开发联调:clone 本仓库后 uv pip install -e .。
多进程分片
- hub 与每个 worker 须安装相同版本;共享
data/与 Redis 协调层。 - 梦话漂流经本体
plugin_coord.dream;未安装扩展时不影响 core。
详见:多进程分片
功能说明
做梦期间推送梦话:跨群漂流、历史梦、画画归档图、复读已学句;醉酒时更密且可联动夺舍。
用户命令
| 口令 | 场景 | 说明 |
|---|---|---|
| 牛牛做梦 | 群内 | 进入做梦约 5~15 分钟 |
| 牛牛醒梦 / 牛牛别做梦 | 群内 | 结束做梦 |
| 牛牛醒一醒 | 群内 | 醒酒时亦会醒梦(见 plugins-party) |
命令权限
| 命令 ID | 默认等级 |
|---|---|
dream.ban_cleanup |
staff |
(与复读共用「不可以」清理梦库,权限见帮助详情。)
配置
WebUI 插件 → dream,或本仓库 config.py:dream_worker_sleep_*、dream_drift_queue_tick_probability、dream_message_retention_days 等。
排障
| 现象 | 处理 |
|---|---|
| 无梦话 | 确认已做梦、冷却未挡;他群无做梦则无漂流 |
| 梦库过大 | 运维可调用库清理逻辑 |
文档
| 说明 | 链接 |
|---|---|
| 牛牛做梦 · 用户文档 | 文档站 · dream |
| 插件开发入门 | 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_dream-4.0.4.tar.gz.
File metadata
- Download URL: pallas_plugin_dream-4.0.4.tar.gz
- Upload date:
- Size: 85.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97712ba76a4ca2b93d4d36155978eec45f59cf5504308f8f337e28212ecf6160
|
|
| MD5 |
246f44828706d908dc95bda293376f84
|
|
| BLAKE2b-256 |
2b240cd01f4a482723cd7582a61863b2b42739f1e251998a208ac887e70246fa
|
Provenance
The following attestation bundles were made for pallas_plugin_dream-4.0.4.tar.gz:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-dream
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_dream-4.0.4.tar.gz -
Subject digest:
97712ba76a4ca2b93d4d36155978eec45f59cf5504308f8f337e28212ecf6160 - Sigstore transparency entry: 1860229836
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-dream@422065a45f0df3918dfacb53f8be1e7453f6c000 -
Branch / Tag:
refs/tags/v4.0.4 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@422065a45f0df3918dfacb53f8be1e7453f6c000 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pallas_plugin_dream-4.0.4-py3-none-any.whl.
File metadata
- Download URL: pallas_plugin_dream-4.0.4-py3-none-any.whl
- Upload date:
- Size: 49.6 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 |
b8388335bf0984588c8005da85c40b53c3a48188b138bafab700d135dbf3b2bc
|
|
| MD5 |
5e5e63c03c1f20fd65e0e0709880b9fa
|
|
| BLAKE2b-256 |
8348567a298953d87b58d727a04d9c2d96fd33dd42877c117e8a4334daa218e2
|
Provenance
The following attestation bundles were made for pallas_plugin_dream-4.0.4-py3-none-any.whl:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-dream
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_dream-4.0.4-py3-none-any.whl -
Subject digest:
b8388335bf0984588c8005da85c40b53c3a48188b138bafab700d135dbf3b2bc - Sigstore transparency entry: 1860230032
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-dream@422065a45f0df3918dfacb53f8be1e7453f6c000 -
Branch / Tag:
refs/tags/v4.0.4 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@422065a45f0df3918dfacb53f8be1e7453f6c000 -
Trigger Event:
push
-
Statement type: