Skip to main content

Pallas-Bot 官方扩展:泰拉风味多幕决斗(含分片 QTE 与八角笼)。

Project description

Pallas-Bot

pallas-plugin-duel

Pallas-Bot 4.0 官方扩展:牛牛决斗

安装

需已安装 Pallas-Bot ≥ 4.0

推荐直接在控制台插件商店安装,或在本体项目中执行:

uv run pallas ext install pallas-plugin-duel

也可单独安装本包:

uv pip install pallas-plugin-duel

开发联调:clone 本仓库后 uv pip install -e .pyproject.toml 可配置本体 path 依赖)。

多进程分片

Pallas-Bot 支持单进程,也支持 hub + 多个 worker 的多进程部署。启用分片时:

  • hub 与每个 worker 须安装相同版本的本扩展包
  • 各进程共享同一路径的 data/(注册表、协调状态、WebUI 落盘等);
  • 跨进程互斥与状态同步依赖 Redis 协调层(配置见文档站)。

本插件通过本体 plugin_coord 与启动时的 register_duel_coord() / register_fleet_probe() 接入协调层;未安装扩展时不影响 core 插件运行。

详见:多进程分片 · 架构说明

功能说明

泰拉风味多幕决斗:事件包、干员/关键词 QTE、双牛八角笼、胜负惩罚。

用户命令

口令 场景 说明
牛牛决斗 @对手 [N幕|N回合] 群内 对人或单牛
牛牛决斗 @牛A @牛B 群内 双牛对决
八角笼牛 [N幕|N回合] 群内 随机两只在线牛牛
按幕面提示答干员名/关键词 群内 QTE 抢答
决斗事件重载 群内 热更新事件包(群管)

命令权限

命令 ID 默认等级
duel.duel everyone
duel.cage everyone
duel.reload_events group_moderator

配置

WebUI 插件 → duel,或本仓库 config.py。事件包约定见 event_packs/README.md

干员资源同步(在本体仓库执行):

uv run python scripts/fetch_arknights_duel_data.py

排障

现象 处理
无法开战 同群仅一场;检查 @ 与在线牛
乱入无头像 执行资源脚本补 resource/arknights/avatars

文档

说明 链接
牛牛决斗 · 用户文档 文档站 · duel
插件开发入门 develop/plugin/getting-started
多进程分片 architecture/bot-process-sharding

源码

实现位于本仓库 src/pallas_plugin_duel/

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_duel-4.0.4.tar.gz (127.5 kB view details)

Uploaded Source

Built Distribution

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

pallas_plugin_duel-4.0.4-py3-none-any.whl (95.2 kB view details)

Uploaded Python 3

File details

Details for the file pallas_plugin_duel-4.0.4.tar.gz.

File metadata

  • Download URL: pallas_plugin_duel-4.0.4.tar.gz
  • Upload date:
  • Size: 127.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pallas_plugin_duel-4.0.4.tar.gz
Algorithm Hash digest
SHA256 fe087e96167ebb46de10c18be5a2926cd7e5413b127e3f76ecf4da47dd7b1680
MD5 1d48c9ce17c02c6425ab9af13119145d
BLAKE2b-256 cc395ed780117d2c0dda4128268112635df2b1a8a61b32c09391d3e42952dc13

See more details on using hashes here.

Provenance

The following attestation bundles were made for pallas_plugin_duel-4.0.4.tar.gz:

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

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_duel-4.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pallas_plugin_duel-4.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 14c26c9043cdd465ff60ec1b688e098adb735cd822b14083617e140382b2936c
MD5 79d42b2ffd2dbbc17228e682a324cd80
BLAKE2b-256 b7dd39b14cce53711cc91ca7fa62f269aa7dbb10086a852c9b28d46ac7e91a56

See more details on using hashes here.

Provenance

The following attestation bundles were made for pallas_plugin_duel-4.0.4-py3-none-any.whl:

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

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