This release is a pre-release and may not be stable for production use.
前言
准备工作
开始使用
通过 poetry 添加到 NoneBot2 项目的 pyproject.toml
poetry add nonebot-plugin-translator
也可以通过 pip 从 PyPI 安装
pip install nonebot-plugin-translator
参照下文在 NoneBot2 项目的环境文件 .env.* 中添加配置项
配置项
- tencentcloud_common_region str
- 地域参数 ,用来标识希望操作哪个地域的数据
- tencentcloud_common_secretid str
- tencentcloud_common_secretkey str
- 你的 SecretKey 用来生成请求签名 Signature
# .env.prod
tencentcloud_common_region = "ap-shanghai"
tencentcloud_common_secretid = ""
tencentcloud_common_secretkey = ""
翻译+ 是一个用于进行连续翻译的翻译锁定模式,翻译锁定 是它的别名,请根据提示操作
常见问题
- 我确认我的安装和配置过程正确,但我发送 翻译 或 机翻 没有反应
- 如果在 .env.* 的 command_start 内仅设置了非空前缀,就必须在命令前加上前缀,比如 /翻译 /翻译+
特别感谢
优化建议
Metadata
Release files for nonebot-plugin-translator 2.0.0b4.post2
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 | |
|---|---|---|---|---|
| nonebot_plugin_translator-2.0.0b4.post2.tar.gz | 18.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_translator-2.0.0b4.post2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.1 kB
Release files / nonebot_plugin_translator-2.0.0b4.post2.tar.gz
| Download URL | nonebot_plugin_translator-2.0.0b4.post2.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34d5f076e53c18fe7e105661f2589e8446eeea5be1c0ebae8649ce364fb60f96
|
|
BLAKE2b-256 checksum How to use checksums |
951bdd3b595ce41307a9291bb97e51125b891eaf3876013464cd1871655ae911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.10.10 Windows/10
|
Release files / nonebot_plugin_translator-2.0.0b4.post2-py3-none-any.whl
| Download URL | nonebot_plugin_translator-2.0.0b4.post2-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b58b0da493f0000819977b77478d014b16249c72ee847ff6a1e8397e51ebad4
|
|
BLAKE2b-256 checksum How to use checksums |
d66b75c65ca416f989ae4f2e148cec60b04375e0517ad7928b9df106ac05a5ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.10.10 Windows/10
|
Security for nonebot-plugin-translator 2.0.0b4.post2
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.