📖 介绍
素材采自 星露谷物语Wiki,群内钓鱼娱乐小游戏,提前刷屏警告。
💿 安装
在 KiramiBot 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install kirami-plugin-fishing
pdm
pdm add kirami-plugin-fishing
poetry
poetry add kirami-plugin-fishing
conda
conda install kirami-plugin-fishing
打开 KiramiBot 项目根目录下的配置文件, 以 kirami.toml 为例,在 [plugin] 部分追加写入
plugins = ["kiramit-plugin-fishing"]
⚙️ 配置
在 KiramiBot 项目的配置文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| fishing_limit | 否 | 1800 | 钓鱼CD时间(单位:秒) |
| fish_multiplier | 否 | 1.0 | 获取积分(鱼干)倍率 |
| fishing_time_radius | 否 | [30,150] | 上钩时间[最小时间,最大时间] |
| fishing_coin_name | 否 | 块小鱼干 | 钓鱼积分名称 |
| fish_empty_chance | 否 | 0.1 | 空军概率 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| 钓鱼/🎣 | 群员 | 否 | 群聊 | 钓鱼 |
| 钓鱼统计 | 群员 | 否 | 群聊 | 获取个人群内钓鱼统计信息 |
| 钓鱼排名 | 群员 | 否 | 群聊 | 获取群内钓鱼排行榜(按最重鱼) |
| 钓鱼余额/鱼干 | 群员 | 否 | 群聊 | 获取群内钓鱼积分排行统计 |
| 钓鱼手册/鱼鉴 | 群员 | 否 | 群聊 | 获取钓鱼收集图鉴 |
自定义鱼类
1、添加json数据
插件会在启动时,补全json数据到kirami的数据目录下的fishing文件夹下,在该文件内新增鱼类数据和稀有度即可。
鱼类数据添加到对应稀有度下,格式如下:
{
"legendary": {
"BlueShark": {
"display-name": "鱼名",
"weight-min": 160,
"weight-max": 240,
"msg": "捕获特殊文字"
}
}
}
2、添加图片(可选)
插件启动时,会检测kirami资源图片目录下是否有fish文件夹,如果没有,则自动创建,并下载默认图包。
如果需要添加自定义鱼类的图片,只需要将该以json文件中,与展示名称相同的文件名的图片放入该目录即可。
资源下载
如果插件启动时,无法下载资源,请手动下载资源。
默认鱼类图片包,解压后,将解压后的文件夹放入kirami的资源图片目录resources/image/fish下。
图鉴字体,放入kirami的字体资源目录resources/font下。
数据json文件,放入kirami的数据目录data/fishing/下。
效果图
Metadata
Release files for kirami-plugin-fishing 0.1.3
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_fishing-0.1.3.tar.gz | 10.5 kB | Without provenance | Details for kirami_plugin_fishing-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kirami_plugin_fishing-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for kirami_plugin_fishing-0.1.3-py3-none-any.whl |
Total release size: 21.7 kB
Release files / kirami_plugin_fishing-0.1.3.tar.gz
| Download URL | kirami_plugin_fishing-0.1.3.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d05dda40364db6fbea96bca3b52df8512d63a69ac8ac06f59e6088c38965b8ee
|
|
BLAKE2b-256 checksum How to use checksums |
3c62f3bfafff3532ebafd276f0788a357054a2916f36c396d2c5b8576316ee0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / kirami_plugin_fishing-0.1.3-py3-none-any.whl
| Download URL | kirami_plugin_fishing-0.1.3-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b19e2ba6a5ec1e88aa5a7ae7f014f0412a674548ebbc6b0a80f5dc542e72968
|
|
BLAKE2b-256 checksum How to use checksums |
efe12ee286386700fac8a2a005cb0031ed3e5d14eeffe26aa7722535388e1534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for kirami-plugin-fishing 0.1.3
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.