你甚至可以电子钓鱼
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"]
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置
配置项 | 必填 | 说明 |
---|---|---|
fishes | 否 | 使用(名称, 等待时间, 权重) 的格式配置 |
fishing_limit | 否 | 填入每次钓鱼后,限制钓鱼的秒数 |
在作者实际使用时,发现fishes
配置项由于未知的原因,在通过.env
文件传入时可能会出现错误,导致插件无法加载。可根据实际情况通过官方文档进行配置。可能是因为作者的配置写错了(悲
🎉 使用
指令表
指令 | 范围 | 说明 |
---|---|---|
钓鱼 | 所有 | 放下鱼竿 |
统计信息 | 所有 | 查看钓鱼次数 |
背包 | 所有 | 查看背包 |
📝 Todo
- 重写数据库逻辑(改为使用nonebot/plugin-orm)
- 增加系统商店,卖出钓到的鱼们
- 为鱼竿增加耐久度,耐久度为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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d3b3eb17954839a8d1e51eadb3611bd876b53e3a469997fae20b6f7ac8ea38 |
|
MD5 | 29a349dd41c69ede76c7c49a4ae03b71 |
|
BLAKE2b-256 | 62b3069eaa6dd292d8eed0ccca3a102a58ef80ba2ff822ae0c829f4a1f3d589a |
Close
Hashes for nonebot_plugin_fishing-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ffb186d9a6a549d1bda5a50976fa72e5dc7b85d1e714dcd7427ce85aaf0826 |
|
MD5 | c197ab2a913bcb998f7fa17443eb4c87 |
|
BLAKE2b-256 | f590746049b8f0426f7245bbe0e78ae36eafd1c64d8dd5699577157e318efe3e |