Skip to main content
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日元
货币名称+汇率 否 私聊/群聊 展示该货币的汇率详情
汇率列表/货币列表 否 私聊/群聊 查看支持的货币清单

Release files for nonebot-plugin-exchangerate 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-exchangerate 0.1.2
File Size Uploaded
nonebot-plugin-exchangerate-0.1.2.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-exchangerate 0.1.2
File Interpreter ABI Platform
nonebot_plugin_exchangerate-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / nonebot-plugin-exchangerate-0.1.2.tar.gz

Download URL nonebot-plugin-exchangerate-0.1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
298d4c49aa05b0fc3f77b1a4a0eae9b9c101ed4719610c9062508fd24b28fe38
BLAKE2b-256 checksum
How to use checksums
f31bb468679a626d59f1d6848a118e691680f12b7287ac07ed44860596f65746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / nonebot_plugin_exchangerate-0.1.2-py3-none-any.whl

Download URL nonebot_plugin_exchangerate-0.1.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dd5488056d9c1bd4084c851ca6d53f8000f3c784c0cf661bc2e9d429b27501b
BLAKE2b-256 checksum
How to use checksums
94fce253f440921c1f8a94c230fa7fdbfde67f2921539a05442e32e777ec52e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page