📖 介绍
适用于KiramiBot的赛马小游戏插件
由 zhenxun_bot_HorseRace & nonebot_plugin_horserace 适配而来,稍作修改,添加合并消息返回配置项
💿 安装
在 KiramiBot 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install kirami-plugin-horserace
pdm
pdm add kirami-plugin-horserace
poetry
poetry add kirami-plugin-horserace
conda
conda install kirami-plugin-horserace
打开 KiramiBot 项目根目录下的配置文件, 以 kirami.toml 为例,在 [plugin] 部分追加写入
plugins = ["kiramit_plugin_horserace"]
⚙️ 配置
在 KiramiBot 项目的配置文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| send_forward_msg | 否 | True | 将图片以合并消息发送 |
| pic_font_size | 否 | 16 | 图片字体大小 |
| setting_track_length | 否 | 20 | 跑道长度 |
| setting_random_min_length | 否 | 0 | 随机位置事件,最小能到的跑道距离 |
| setting_random_max_length | 否 | 15 | 随机位置事件,最大能到的跑道距离 |
| base_move_min | 否 | 1 | 每回合基础移动力最小值 |
| base_move_max | 否 | 3 | 每回合基础移动力最大值 |
| max_player | 否 | 8 | 最大支持玩家数 |
| min_player | 否 | 2 | 最小支持玩家数 |
| setting_over_time | 否 | 120 | 超时允许重置最少时间,秒 |
| event_rate | 否 | 450 | 事件概率 = event_rate / 1000 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| 赛马创建 | 群员 | 否 | 群聊 | 创建游戏 |
| 赛马加入 [你的马儿名称] | 群员 | 否 | 群聊 | 加入赛马游戏 |
| 赛马开始 | 群员 | 否 | 群聊 | 开始游戏 |
| 赛马重置 | 主人 | 否 | 群聊 | 重置已有赛马 |
| 赛马清空 | 主人 | 否 | 群聊 | 清空已有赛马 |
| 赛马事件重载 | 主人 | 否 | 群聊 | 重载事件文件 |
效果图
Metadata
Release files for kirami-plugin-horserace 0.1.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 |
|---|---|---|---|---|
| kirami-plugin-horserace-0.1.1.tar.gz | 3.3 kB | Without provenance | Details for kirami-plugin-horserace-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kirami_plugin_horserace-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for kirami_plugin_horserace-0.1.1-py3-none-any.whl |
Total release size: 6.7 kB
Release files / kirami-plugin-horserace-0.1.1.tar.gz
| Download URL | kirami-plugin-horserace-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5140637c4b025dcb3d09ba0b427aaad8cfc1d3042664b961e449baa402528d0d
|
|
BLAKE2b-256 checksum How to use checksums |
f4a9ce5b739aa004c12ac7e0319a3e28b60a5524e11bf52da6a4b25bfa270249
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / kirami_plugin_horserace-0.1.1-py3-none-any.whl
| Download URL | kirami_plugin_horserace-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e8956a7bcea519dc0b543fa7f0c09b0314604daee42784aa5e07dacb3d80395
|
|
BLAKE2b-256 checksum How to use checksums |
2d5e30e3c5cbaf1ba5e57a9f726c0c6e6867fc5be12e9f8897ce559f209a42ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for kirami-plugin-horserace 0.1.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.