Coder Social home page Coder Social logo

nonebot-plugin-exchangerate's Introduction

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-exchangerate

✨ 简单汇率换算 ✨

license pypi python

📖 介绍

支持汇率换算与汇率查询

💿 安装

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

打开 nonebot2 项目的 bot.py 文件, 在其中写入

nonebot.load_plugin('nonebot_plugin_exchangerate')

⚙️ 配置

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

配置项 必填 默认值 说明
EXCHANGE_APP_KEY 聚合数据的汇率APP_KEY,点击此处获取
EXCHANGE_DECIMALS 2 汇率换算保留小数位

🎉 使用

指令表

指令 需要@ 范围 说明
数字+货币名称 私聊/群聊 将该数量的货币换算为对应的人民币,如:200日元
货币名称+汇率 私聊/群聊 展示该货币的汇率详情
汇率列表/货币列表 私聊/群聊 查看支持的货币清单

nonebot-plugin-exchangerate's People

Contributors

a-kirami 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.