📖 介绍
支持汇率换算与汇率查询
💿 安装
使用 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日元 |
| 货币名称+汇率 | 否 | 私聊/群聊 | 展示该货币的汇率详情 |
| 汇率列表/货币列表 | 否 | 私聊/群聊 | 查看支持的货币清单 |
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot-plugin-exchangerate-0.1.2.tar.gz | 4.6 kB | Without provenance | Details for nonebot-plugin-exchangerate-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_exchangerate-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_exchangerate-0.1.2-py3-none-any.whl |
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
|
Security for nonebot-plugin-exchangerate 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.