Skip to main content

Pallas-Bot 官方扩展:群内做梦与分片漂移。

Project description

牛牛做梦

牛牛做梦 pallas-plugin-dream

提供群内梦话漂流、历史梦与醉酒联动能力。

官方插件 控制台插件商店 安装命令 PyPI 版本

安装方式

需已安装 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.pydream_worker_sleep_*dream_drift_queue_tick_probabilitydream_message_retention_days 等。

排障

现象 处理
无梦话 确认已做梦、冷却未挡;他群无做梦则无漂流
梦库过大 运维可调用库清理逻辑

实现

源码位置:src/pallas_plugin_dream/

实现要点:

  • 做梦后会按配置周期推送梦话,并可跨群漂流。
  • 分片模式下依赖共享 data/ 与协调层保持行为一致。
  • 醉酒等其他玩法会影响梦话频率与联动表现。

相关链接

说明 链接
牛牛做梦 · 用户文档 文档站 · dream
插件开发入门 develop/plugin/getting-started

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pallas_plugin_dream-4.0.8.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pallas_plugin_dream-4.0.8-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

Details for the file pallas_plugin_dream-4.0.8.tar.gz.

File metadata

  • Download URL: pallas_plugin_dream-4.0.8.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

Hashes for pallas_plugin_dream-4.0.8.tar.gz
Algorithm Hash digest
SHA256 b3cc91148f86d3ce2e8d5477535acc74759594a8f90ac4f4ed71c13e3306392e
MD5 2d00ec8a77b0b7b1a405d337b38af242
BLAKE2b-256 693dfbcdd78bb0ddf8f4d1f45e533c33fb453d64237db5acd3cceb48944ba316

See more details on using hashes here.

Provenance

The following attestation bundles were made for pallas_plugin_dream-4.0.8.tar.gz:

Publisher: publish-pypi.yml on TogetsuDo/pallas-plugin-dream

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pallas_plugin_dream-4.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for pallas_plugin_dream-4.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 21a8ff1a30f2b04eb7433ba756ad320fcf48020fb5f7070000bcdd6709e270e6
MD5 75d15d2f9b2d624fc9935772e1316a71
BLAKE2b-256 6b2494ab893f2db20d43b6daf61888e16ae84aee4a2bb4467355f0286b24633c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pallas_plugin_dream-4.0.8-py3-none-any.whl:

Publisher: publish-pypi.yml on TogetsuDo/pallas-plugin-dream

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page