你甚至可以电子钓鱼
Project description
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-fishing
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-fishing
pdm
pdm add nonebot-plugin-fishing
poetry
poetry add nonebot-plugin-fishing
conda
conda install nonebot-plugin-fishing
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_fishing"]
注意:安装过后,需在控制台输入 nb orm upgrade
指令以初始化数据库。
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置
配置项 | 必填 | 说明 |
---|---|---|
fishes | 否 | 配置鱼塘内鱼们的名称、权重、等待时间和价格 |
fishing_limit | 否 | 填入每次钓鱼后,限制钓鱼的秒数 |
fishing_coin_name | 否 | 填入卖鱼获取的货币名称 |
其中 fishes
配置项说明如下:
{
"name": "小鱼", # 鱼的名称
"frequency": 2, # 鱼上钩的时间
"weight": 100, # 权重
"price": 2 # 价格
}
🔨 更新
每一次更新后,需执行 nb orm upgrade
。
由于此前版本数据库迁移存在问题,故插件无法对 v0.2.1 版本及以前的数据进行迁移。
🎉 使用
指令表
指令 | 范围 | 说明 |
---|---|---|
钓鱼 | 所有 | 放下鱼竿 |
统计信息 | 所有 | 查看钓鱼次数 |
背包 | 所有 | 查看背包 |
卖鱼 | 所有 | 卖鱼 |
🔨 更新
每一次升级后,都需执行 nb orm upgrade
。
📝 Todo
- 重写数据库逻辑(改为使用 nonebot/plugin-orm)
- 增加系统商店,卖出钓到的鱼们
- 赛博放生 #4
- 为鱼竿增加耐久度,耐久度为0时需重新购买鱼竿
- 为钓鱼背包添加排序
- 添加成就系统
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
Close
Hashes for nonebot_plugin_fishing-0.2.3a3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225c5e48fa88969ab2e86c371ee83d0036df7ee45c3ea541a2701ff002904441 |
|
MD5 | 7042f403bd5ce820cb84d8e55b6ae5e7 |
|
BLAKE2b-256 | 1bf28df35ee009918d13d208927cb368f226a931b30f24707ffc9bf24e80bd5f |
Close
Hashes for nonebot_plugin_fishing-0.2.3a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 521513bbd33c6d8b9f92c3006ce9c7b3173bd21282d45eb84721102fe1ae72be |
|
MD5 | 1a99f21022caa04ea56c53db42a01cae |
|
BLAKE2b-256 | 850ee319dfd0557cac90766cc85e64242b866359ab4be57014f90443cc395f48 |