nonebot-plugin-boardgame
适用于 Nonebot2 的棋类游戏插件。
抄自隔壁 koishi(:koishi-plugin-chess
安装
- 使用 nb-cli
nb plugin install nonebot_plugin_boardgame
- 使用 pip
pip install nonebot_plugin_boardgame
使用
目前支持的规则有:
- 五子棋
- 围棋(禁全同,暂时不支持点目)
- 黑白棋
以下命令需要加命令前缀 (默认为/),可自行设置为空
@机器人 发送 “围棋” 或 “五子棋” 或 “黑白棋” 开始一个对应的棋局,一个群组内同时只能有一个棋局。
发送“落子 字母+数字”下棋,如“落子 A1”;
游戏发起者默认为先手,可使用 --white 选项选择后手;
发送“结束下棋”结束当前棋局;
发送“查看棋局”显示当前棋局;
发送“悔棋”可以进行悔棋;
发送“跳过回合”可跳过当前回合(仅黑白棋支持);
手动结束游戏或超时结束游戏时,可发送“重载xx棋局”继续下棋,如 重载围棋棋局;
或者使用 boardgame 指令:
可用选项:
-r RULE,--rule RULE: 规则名--white: 执白,即后手
示例
Metadata
Release files for nonebot_plugin_boardgame 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_boardgame-0.4.1.tar.gz | 11.5 kB | Without provenance | Details for nonebot_plugin_boardgame-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_boardgame-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_boardgame-0.4.1-py3-none-any.whl |
Total release size: 25.0 kB
Release files / nonebot_plugin_boardgame-0.4.1.tar.gz
| Download URL | nonebot_plugin_boardgame-0.4.1.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1e780ead9c1095955a0dae13f430a9a890f4aa0a65e9422ffa2f4ad0aa5c41e
|
|
BLAKE2b-256 checksum How to use checksums |
1a67aaf926e4ec44d063e911b6c17bc29086b8dfe919026c6331217d7aefbbe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure
|
Release files / nonebot_plugin_boardgame-0.4.1-py3-none-any.whl
| Download URL | nonebot_plugin_boardgame-0.4.1-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
739cd565a583baed03b3503bd7e3186c46413a86ddb53949713cf1a00b00d2c7
|
|
BLAKE2b-256 checksum How to use checksums |
ebfeba4540623b58f24bde4bea28a4bdb521623613f75306d2b5e6674794ccba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure
|
Security for nonebot_plugin_boardgame 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.