Pallas-Bot 官方扩展:泰拉风味多幕决斗(含分片 QTE 与八角笼)。
Project description
牛牛决斗 pallas-plugin-duel
提供多幕决斗、八角笼与 QTE 抢答玩法。
安装方式
需已安装 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 |
实现
实现要点:
- 决斗事件、QTE 与多牛牛在线判定共同组成一场完整对局。
- 分片模式下通过协调层维持同群互斥与事件同步。
- 干员资源与头像不全时会直接影响决斗展示效果。
相关链接
| 说明 | 链接 |
|---|---|
| 牛牛决斗 · 用户文档 | 文档站 · duel |
| 插件开发入门 | develop/plugin/getting-started |
| 多进程分片 | architecture/bot-process-sharding |
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_duel-4.0.7.tar.gz.
File metadata
- Download URL: pallas_plugin_duel-4.0.7.tar.gz
- Upload date:
- Size: 3.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c70771cf4b36b5a2b5a2f99276016a017862e3b187995c35e3d423c472c536b1
|
|
| MD5 |
709de7e7fee3c6150492d952cb086428
|
|
| BLAKE2b-256 |
a4d22f0eb2d43986046938ae2054f31cc1c9e36b59caaa47a62cc551d628610a
|
Provenance
The following attestation bundles were made for pallas_plugin_duel-4.0.7.tar.gz:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-duel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_duel-4.0.7.tar.gz -
Subject digest:
c70771cf4b36b5a2b5a2f99276016a017862e3b187995c35e3d423c472c536b1 - Sigstore transparency entry: 1932695494
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-duel@5506e04365e8f5a46ef87d6b8cf65296e8a5218a -
Branch / Tag:
refs/tags/v4.0.7 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5506e04365e8f5a46ef87d6b8cf65296e8a5218a -
Trigger Event:
push
-
Statement type:
File details
Details for the file pallas_plugin_duel-4.0.7-py3-none-any.whl.
File metadata
- Download URL: pallas_plugin_duel-4.0.7-py3-none-any.whl
- Upload date:
- Size: 95.9 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 |
85e02eccb5de86aed0cdf0956b182278e9d1794cf969f796e1f72d521cb57418
|
|
| MD5 |
ed837c88250ef27b373ecea13fa7f597
|
|
| BLAKE2b-256 |
0f8664268c07dd0d46fd295647059ac3c83c65bd1869915b6621cc7efabf1c07
|
Provenance
The following attestation bundles were made for pallas_plugin_duel-4.0.7-py3-none-any.whl:
Publisher:
publish-pypi.yml on TogetsuDo/pallas-plugin-duel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pallas_plugin_duel-4.0.7-py3-none-any.whl -
Subject digest:
85e02eccb5de86aed0cdf0956b182278e9d1794cf969f796e1f72d521cb57418 - Sigstore transparency entry: 1932695755
- Sigstore integration time:
-
Permalink:
TogetsuDo/pallas-plugin-duel@5506e04365e8f5a46ef87d6b8cf65296e8a5218a -
Branch / Tag:
refs/tags/v4.0.7 - Owner: https://github.com/TogetsuDo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5506e04365e8f5a46ef87d6b8cf65296e8a5218a -
Trigger Event:
push
-
Statement type: