nonebot-plugin-easy-translate


Namenonebot-plugin-easy-translate JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_easy_translate
SummaryNonebot2 谷歌翻译插件
upload_time2023-08-27 16:34:06
maintainer
docs_urlNone
authornikissXI
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <a href="https://v2.nonebot.dev/store">
  <img src="https://user-images.githubusercontent.com/44545625/209862575-acdc9feb-3c76-471d-ad89-cc78927e5875.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
</p>

<div align="center">

# nonebot_plugin_easy_translate

_✨ Nonebot2 简单易用谷歌翻译插件,免key! ✨_

</div>
<p align="center">
  <a href="https://opensource.org/licenses/MIT">
    <img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="license">
  </a>
  <a href="https://v2.nonebot.dev/">
    <img src="https://img.shields.io/static/v1?label=nonebot&message=v2rc1%2B&color=green" alt="nonebot2">
  </a>
  <img src="https://img.shields.io/static/v1?label=python+&message=3.8%2B&color=blue" alt="python">
</p>

## 简介
之前的免梯谷歌翻译接口寄了,现在用的是[谷歌翻译库](https://py-googletrans.readthedocs.io/en/latest/#googletrans.Translator.translate),我把代码改成异步然后当插件用了,得用梯子

<img width="500" src="https://raw.githubusercontent.com/nikissXI/nonebot_plugins/main/nonebot_plugin_easy_translate/readme_img/fanyi.jpg"/>

## 安装

使用nb-cli安装
```bash
nb plugin install nonebot_plugin_easy_translate
```

或者  
直接把插件clone下来放进去plugins文件夹

## 可选配置
在bot对应的.env文件修改

```bash
# 机器人的QQ号列表,如果有多个bot连接,会按照填写的list,左边的机器人QQ优先级最高 1234 > 5678 > 6666,会自动切换
# 如果不填该配置则由第一个连上的bot响应
easy_translate_bot_qqnum_list = [1234,5678,6666]
```

## 插件命令  
| 指令 | 说明 |
|:-----:|:----:|
| 翻译 | 你发一下就知道啦 |

## 更新日志
### 2023/8/28 \[v0.2.1]

* 修复导入错误

### 2023/6/24 \[v0.2.0]

* 改用谷歌翻译库,需要梯子了

### 2023/1/24 \[v0.1.4]

* 修复多bot处理bug

### 2023/1/16 \[v0.1.3]

* 最低python版本兼容至3.8

### 2023/1/15 \[v0.1.2]

* 发布插件
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_easy_translate",
    "name": "nonebot-plugin-easy-translate",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "nikissXI",
    "author_email": "1299577815@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/e8/76/436b79e82c156c80e2a3f45e8de14672935f6b68f953e54f3920e404b2d6/nonebot_plugin_easy_translate-0.2.1.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <a href=\"https://v2.nonebot.dev/store\">\n  <img src=\"https://user-images.githubusercontent.com/44545625/209862575-acdc9feb-3c76-471d-ad89-cc78927e5875.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\n</p>\n\n<div align=\"center\">\n\n# nonebot_plugin_easy_translate\n\n_\u2728 Nonebot2 \u7b80\u5355\u6613\u7528\u8c37\u6b4c\u7ffb\u8bd1\u63d2\u4ef6\uff0c\u514dkey\uff01 \u2728_\n\n</div>\n<p align=\"center\">\n  <a href=\"https://opensource.org/licenses/MIT\">\n    <img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"license\">\n  </a>\n  <a href=\"https://v2.nonebot.dev/\">\n    <img src=\"https://img.shields.io/static/v1?label=nonebot&message=v2rc1%2B&color=green\" alt=\"nonebot2\">\n  </a>\n  <img src=\"https://img.shields.io/static/v1?label=python+&message=3.8%2B&color=blue\" alt=\"python\">\n</p>\n\n## \u7b80\u4ecb\n\u4e4b\u524d\u7684\u514d\u68af\u8c37\u6b4c\u7ffb\u8bd1\u63a5\u53e3\u5bc4\u4e86\uff0c\u73b0\u5728\u7528\u7684\u662f[\u8c37\u6b4c\u7ffb\u8bd1\u5e93](https://py-googletrans.readthedocs.io/en/latest/#googletrans.Translator.translate)\uff0c\u6211\u628a\u4ee3\u7801\u6539\u6210\u5f02\u6b65\u7136\u540e\u5f53\u63d2\u4ef6\u7528\u4e86\uff0c\u5f97\u7528\u68af\u5b50\n\n<img width=\"500\" src=\"https://raw.githubusercontent.com/nikissXI/nonebot_plugins/main/nonebot_plugin_easy_translate/readme_img/fanyi.jpg\"/>\n\n## \u5b89\u88c5\n\n\u4f7f\u7528nb-cli\u5b89\u88c5\n```bash\nnb plugin install nonebot_plugin_easy_translate\n```\n\n\u6216\u8005  \n\u76f4\u63a5\u628a\u63d2\u4ef6clone\u4e0b\u6765\u653e\u8fdb\u53bbplugins\u6587\u4ef6\u5939\n\n## \u53ef\u9009\u914d\u7f6e\n\u5728bot\u5bf9\u5e94\u7684.env\u6587\u4ef6\u4fee\u6539\n\n```bash\n# \u673a\u5668\u4eba\u7684QQ\u53f7\u5217\u8868\uff0c\u5982\u679c\u6709\u591a\u4e2abot\u8fde\u63a5\uff0c\u4f1a\u6309\u7167\u586b\u5199\u7684list\uff0c\u5de6\u8fb9\u7684\u673a\u5668\u4ebaQQ\u4f18\u5148\u7ea7\u6700\u9ad8 1234 > 5678 > 6666\uff0c\u4f1a\u81ea\u52a8\u5207\u6362\n# \u5982\u679c\u4e0d\u586b\u8be5\u914d\u7f6e\u5219\u7531\u7b2c\u4e00\u4e2a\u8fde\u4e0a\u7684bot\u54cd\u5e94\neasy_translate_bot_qqnum_list = [1234,5678,6666]\n```\n\n## \u63d2\u4ef6\u547d\u4ee4  \n| \u6307\u4ee4 | \u8bf4\u660e |\n|:-----:|:----:|\n| \u7ffb\u8bd1 | \u4f60\u53d1\u4e00\u4e0b\u5c31\u77e5\u9053\u5566 |\n\n## \u66f4\u65b0\u65e5\u5fd7\n### 2023/8/28 \\[v0.2.1]\n\n* \u4fee\u590d\u5bfc\u5165\u9519\u8bef\n\n### 2023/6/24 \\[v0.2.0]\n\n* \u6539\u7528\u8c37\u6b4c\u7ffb\u8bd1\u5e93\uff0c\u9700\u8981\u68af\u5b50\u4e86\n\n### 2023/1/24 \\[v0.1.4]\n\n* \u4fee\u590d\u591abot\u5904\u7406bug\n\n### 2023/1/16 \\[v0.1.3]\n\n* \u6700\u4f4epython\u7248\u672c\u517c\u5bb9\u81f33.8\n\n### 2023/1/15 \\[v0.1.2]\n\n* \u53d1\u5e03\u63d2\u4ef6",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Nonebot2 \u8c37\u6b4c\u7ffb\u8bd1\u63d2\u4ef6",
    "version": "0.2.1",
    "project_urls": {
        "Documentation": "https://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_easy_translate#README.md",
        "Homepage": "https://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_easy_translate",
        "Repository": "https://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_easy_translate"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aa8ca1b5307edb73617f778aac4105fadb09b6b6eef706cd05f4d3b5c73e18a7",
                "md5": "0c97ef9ceda10e3be3fb3cc8155d2393",
                "sha256": "b2a9947e2c485701da74e52bcd6e10b93b8c6ba1a295b5422df1c2c098ba0077"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_easy_translate-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c97ef9ceda10e3be3fb3cc8155d2393",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16664,
            "upload_time": "2023-08-27T16:34:04",
            "upload_time_iso_8601": "2023-08-27T16:34:04.994806Z",
            "url": "https://files.pythonhosted.org/packages/aa/8c/a1b5307edb73617f778aac4105fadb09b6b6eef706cd05f4d3b5c73e18a7/nonebot_plugin_easy_translate-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e876436b79e82c156c80e2a3f45e8de14672935f6b68f953e54f3920e404b2d6",
                "md5": "06acecb33b1b555ec22b160ec3a799a7",
                "sha256": "38ac2f8452f202b94465921cc5ea68b7a80cc832d6a61bfc920a3d035dc00326"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_easy_translate-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "06acecb33b1b555ec22b160ec3a799a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 14579,
            "upload_time": "2023-08-27T16:34:06",
            "upload_time_iso_8601": "2023-08-27T16:34:06.652695Z",
            "url": "https://files.pythonhosted.org/packages/e8/76/436b79e82c156c80e2a3f45e8de14672935f6b68f953e54f3920e404b2d6/nonebot_plugin_easy_translate-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-27 16:34:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nikissXI",
    "github_project": "nonebot_plugins",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot-plugin-easy-translate"
}
        
Elapsed time: 0.15309s