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.2.tar.gz (15.6 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.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_fishing2-0.0.2.tar.gz
  • Upload date:
  • Size: 15.6 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.2.tar.gz
Algorithm Hash digest
SHA256 356431b6749887d9f37fb08fe0153dcb4a1209d7dec5b313524940cca3c3466b
MD5 34f0d58737a7686a84b0cfb54228bb7a
BLAKE2b-256 b00fb9504f5492ece8542c5217123fb3ae04e71bc9ad985cfaba2e3e26c4843b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_fishing2-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64a2036fdd6d217056fa5fceb6d7566758c59c79cab63941550d7a90c8f99828
MD5 e9af66844c26d0ae4bb83efbbd1a268b
BLAKE2b-256 ddb3b5c4c424236b03e82327e84f5926dfd57c94772c17db18a3965c082e5487

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