Giter Site home page Giter Site logo

hoshino-plugin-fishing's Introduction

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-fishing

✨ 你甚至可以电子钓鱼 ✨

license pypi python

💿 安装

使用 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 # 价格
}

🎉 使用

指令表

指令 范围 说明
钓鱼 所有 放下鱼竿
统计信息 所有 查看钓鱼次数
背包 所有 查看背包
卖鱼 所有 卖鱼

📝 Todo

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

hoshino-plugin-fishing's People

Contributors

c14h22o avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.