根据星露谷物语图片素材,粗制滥造的钓鱼游戏
Project description
📖 介绍
素材采自 星露谷物语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/下。
效果图
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 kirami_plugin_fishing-0.1.3.tar.gz.
File metadata
- Download URL: kirami_plugin_fishing-0.1.3.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d05dda40364db6fbea96bca3b52df8512d63a69ac8ac06f59e6088c38965b8ee
|
|
| MD5 |
75534cc791f0f660dd5aa7d180c6aec8
|
|
| BLAKE2b-256 |
3c62f3bfafff3532ebafd276f0788a357054a2916f36c396d2c5b8576316ee0a
|
File details
Details for the file kirami_plugin_fishing-0.1.3-py3-none-any.whl.
File metadata
- Download URL: kirami_plugin_fishing-0.1.3-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b19e2ba6a5ec1e88aa5a7ae7f014f0412a674548ebbc6b0a80f5dc542e72968
|
|
| MD5 |
657dea2829194b2369c626d02357dca9
|
|
| BLAKE2b-256 |
efe12ee286386700fac8a2a005cb0031ed3e5d14eeffe26aa7722535388e1534
|