Skip to main content

更好的电子钓鱼

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-fishing2

✨ 更好的电子钓鱼 ✨

license pypi python

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-fishing2
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-fishing2
pdm
pdm add nonebot-plugin-fishing2
poetry
poetry add nonebot-plugin-fishing2
conda
conda install nonebot-plugin-fishing2

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_fishing2"]

注意:安装过后,需在控制台输入 nb orm upgrade 指令以初始化数据库。

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 说明
fishes 配置鱼塘内鱼们的名称、权重、等待时间和价格
fishing_limit 填入每次钓鱼后,限制钓鱼的秒数
fishing_coin_name 填入卖鱼获取的货币名称
special_fish_enabled 是否启用赛博放生功能(默认为否)
special_fish_price 每放生一次所需的货币数量
special_fish_probability 钓鱼时钓到用户放生的鱼的概率

其中 fishes 配置项说明如下:

FISHES='
[
  {
    "name": "小鱼", # 鱼的名称
    "frequency": 2, # 鱼上钩的时间
    "weight": 100, # 权重
    "price": 2 # 价格
  }
]
'

🔨 更新

每一次更新后,需执行 nb orm upgrade

🎉 使用

指令表

指令 范围 说明
钓鱼 所有 放下鱼竿
卖鱼 所有 获取货币
放生 所有 赛博放生
祈愿 所有 向神祈愿
背包 所有 查看背包
成就 所有 查看成就
排行榜 所有 富翁排行

赛博放生

当用户使用货币放生由自己取名的一条鱼后,每个用户在钓鱼时都有机会钓到那一条鱼。但此功能开关 special_fish_enabled 默认关闭,原因是用户生成内容如果不符合规范,可能导致出现不可预料的情况,请谨慎开启。

📝 Todo

  • 重写数据库逻辑(改为使用 nonebot/plugin-orm
  • 增加系统商店,卖出钓到的鱼们
  • 赛博放生 #4 (已基本完成)
  • 使用 nonebot_plugin_chikari_economy 经济系统
  • 为鱼竿增加耐久度,耐久度为0时需重新购买鱼竿
  • 为钓鱼背包添加排序
  • 添加成就系统

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_fishing2-0.0.3.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_fishing2-0.0.3-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_fishing2-0.0.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_fishing2-0.0.3.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for nonebot_plugin_fishing2-0.0.3.tar.gz
Algorithm Hash digest
SHA256 43b3e233a994c6436ba4d05c402fdf236b014fa4ecdc680fd716b8f670be0ece
MD5 ff2cad56517c94b4372c2130eaa7319a
BLAKE2b-256 743a9310e73cce5ea7d9f1d58c54dee30cc9b03a8d28aebece76e413d12ed8df

See more details on using hashes here.

File details

Details for the file nonebot_plugin_fishing2-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_fishing2-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75594cb71b57cfb8155573788ec56ed60e8224fc3d88e0ba8bd1e5e1f402ef08
MD5 9d6e2b9e6bd0609e2ba32f0e2f476e1f
BLAKE2b-256 251896ec48dc7240c15b8d55eb9a8ea57f7cf5828735c4971ff72a9b0f99fd34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page