棋类游戏插件,包含五子棋、围棋、黑白棋。
在 KiramiBot 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install kirami-plugin-boardgame
pdm
pdm add kirami-plugin-boardgame
poetry
poetry add kirami-plugin-boardgame
conda
conda install kirami-plugin-boardgame
打开 KiramiBot 项目根目录下的配置文件, 以 kirami.toml
为例,在 [plugin]
部分追加写入
plugins = ["kiramit_plugin_boardgame"]
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
围棋/五子棋/黑白棋 | 群员 | 是 | 群聊 | 开启一局棋类游戏 |
落子 字母+数字 | 群员 | 否 | 群聊 | 如:落子 A1 |
停止下棋 | 群员 | 否 | 群聊 | 停止一局游戏 |
查看棋盘 | 群员 | 否 | 群聊 | 查看当前棋盘 |
跳过回合 | 群员 | 否 | 群聊 | 黑白棋规则下,跳过你的回合 |
悔棋 | 群员 | 否 | 群聊 | 悔棋 |
重载五子棋/围棋/黑白棋棋局 | 群员 | 否 | 群聊 | 继续群内已停止的棋局下棋 |