基于 OneBot 适配器的 NoneBot2 百度翻译插件, 可以调用百度翻译 API 实现常用语种之间的互译
Project description
Nonebot_Plugin_BaiduTranslate
✨ 基于OneBot适配器的NoneBot2百度翻译插件 ✨
功能
- 可以调用百度翻译 API 实现常用语种之间的互译
安装
- 使用 nb-cli
nb plugin install nonebot_plugin_baidutranslate
- 使用 pip
pip install nonebot_plugin_baidutranslate
如何使用
.env 配置项
# 以下均为百度翻译配置,见 https://fanyi-api.baidu.com/doc/21
appid = "xxx" # 你的 APP ID,在百度翻译的开发者中心里可以找到
key = "xxx" # 你的密钥,在百度翻译的开发者中心里可以找到
salt = "xxx" # 随机字符串
各配置项的含义如上。
指令
使用以下指令触发,需加上指令前缀
x翻x [内容]
图片示例
更新日志
2022-05-27 v0.1.0
- 添加了基础翻译功能
2022-05-30 v0.1.1
- 修改最低兼容版本到 Python 3.7.3 版本
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
Built Distribution
Close
Hashes for nonebot_plugin_baidutranslate-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9adb26e0c464dd26541f92d4abc7b539190d54bc8dc40c85baf40a8004103cc7 |
|
MD5 | a708a12dd0016c8794a9ab49908e2ae0 |
|
BLAKE2b-256 | bc1ab935acf852afa38bbb08f4134817e50ce2a3e6dc9f264ddac59e61736d2e |
Close
Hashes for nonebot_plugin_baidutranslate-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 664a14d425069774295b563ee30cbbeaae05d907c139c280e204f1b792de7727 |
|
MD5 | 37648e875adc8b054f1d869d42d6ffc1 |
|
BLAKE2b-256 | c0f45db2cbd628663a2c7732f2e7fdd56124ee65d1e7ffcd933a40cb37b6e3b0 |