nonebot-plugin-face2cartoonpic


Namenonebot-plugin-face2cartoonpic JSON
Version 0.3.2 PyPI version JSON
download
home_pagehttps://github.com/ANGJustinl/nonebot_plugin_face2cartoonpic
Summary基于 腾讯云合成图的 以图绘图 NoneBot2插件
upload_time2022-12-30 13:37:47
maintainer
docs_urlNone
authorANGJustinl
requires_python>=3.8
license
keywords pip nonebot2 nonebot nonebot_plugin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>


# nonebot_plugin_face2cartoonpic
  
_✨基于腾讯云合成图的以图绘图的Nonebot插件✨_



 
---
  
<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/ANGJustinl/nonebot_plugin_face2cartoonpic" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot_plugin_face2cartoonpic">
    <img src="https://img.shields.io/pypi/v/nonebot_plugin_face2cartoonpic.svg" alt="pypi">
</a>
<a href="https://www.python.org">
    <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
</a>

---  
 </div> 
  
## 💿 安装

### 1. nb-cli安装(推荐)
bot根目录下打开命令行,执行nb命令安装插件,插件配置会自动添加至配置文件  
```
nb plugin install nonebot_plugin_face2cartoonpic
```

### 2. pip安装
```
pip install nonebot_plugin_face2cartoonpic --upgrade
```  
打开 nonebot2 项目的 ```bot.py``` 文件, 在其中写入  
```nonebot.load_plugin('nonebot_plugin_abstain_diary')```  
  
或在bot路径```pyproject.toml```的```[tool.nonebot]```的```plugins```中添加```nonebot_plugin_face2cartoonpic```即可  
pyproject.toml配置例如:  
``` 
[tool.nonebot]
plugin_dirs = ["src/plugins"]
plugins = ["nonebot_plugin_face2cartoonpic","xxxxx"]
```
  
## 📖 配置
--- 
  
官方指南 https://cloud.tencent.com/document/product/1202/41796  
  
先到腾讯云这里获取服务资源包 https://console.cloud.tencent.com/ft/resource
  
再去 https://console.cloud.tencent.com/cam/capi 的api密钥管理获取api密钥
  
---
  
bot根目录下.env文件
  
```  
  
Secret_Id = ""这两个写从腾讯云获取的api密钥
  
Secret_Key = ""
  
FaceCartoonPic_cd_time = 60{int}默认60  
  
```  
## 🎉 使用
### 指令表
| 指令 | 需要@ | 范围 | 说明 |
|:-----:|:----:|:----:|:----:|
| 人物变换 + 图片 | 否 | 群聊/私聊 | 对发送的图片启用模型, 支持回复图片 |

使用示例:

    /人物变换 <图像>

**注意**

默认情况下, 您应该在指令前加上命令前缀, 通常是 /

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ANGJustinl/nonebot_plugin_face2cartoonpic",
    "name": "nonebot-plugin-face2cartoonpic",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "pip,nonebot2,nonebot,nonebot_plugin",
    "author": "ANGJustinl",
    "author_email": "angjustin@163.com",
    "download_url": "https://files.pythonhosted.org/packages/33/d0/960011a9d2a4ef92d6f4cd9d11e98f15464b6fbe6e3484f22cd45674e358/nonebot_plugin_face2cartoonpic-0.3.2.tar.gz",
    "platform": "any",
    "description": "<div align=\"center\">\r\n  \r\n  <a href=\"https://v2.nonebot.dev/store\"><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\r\n  <br>\r\n  <p><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\r\n\r\n\r\n# nonebot_plugin_face2cartoonpic\r\n  \r\n_\u2728\u57fa\u4e8e\u817e\u8baf\u4e91\u5408\u6210\u56fe\u7684\u4ee5\u56fe\u7ed8\u56fe\u7684Nonebot\u63d2\u4ef6\u2728_\r\n\r\n\r\n\r\n \r\n---\r\n  \r\n<a href=\"./LICENSE\">\r\n    <img src=\"https://img.shields.io/github/license/ANGJustinl/nonebot_plugin_face2cartoonpic\" alt=\"license\">\r\n</a>\r\n<a href=\"https://pypi.python.org/pypi/nonebot_plugin_face2cartoonpic\">\r\n    <img src=\"https://img.shields.io/pypi/v/nonebot_plugin_face2cartoonpic.svg\" alt=\"pypi\">\r\n</a>\r\n<a href=\"https://www.python.org\">\r\n    <img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\r\n</a>\r\n\r\n---  \r\n </div> \r\n  \r\n## \ud83d\udcbf \u5b89\u88c5\r\n\r\n### 1. nb-cli\u5b89\u88c5\uff08\u63a8\u8350\uff09\r\nbot\u6839\u76ee\u5f55\u4e0b\u6253\u5f00\u547d\u4ee4\u884c\uff0c\u6267\u884cnb\u547d\u4ee4\u5b89\u88c5\u63d2\u4ef6\uff0c\u63d2\u4ef6\u914d\u7f6e\u4f1a\u81ea\u52a8\u6dfb\u52a0\u81f3\u914d\u7f6e\u6587\u4ef6  \r\n```\r\nnb plugin install nonebot_plugin_face2cartoonpic\r\n```\r\n\r\n### 2. pip\u5b89\u88c5\r\n```\r\npip install nonebot_plugin_face2cartoonpic --upgrade\r\n```  \r\n\u6253\u5f00 nonebot2 \u9879\u76ee\u7684 ```bot.py``` \u6587\u4ef6, \u5728\u5176\u4e2d\u5199\u5165  \r\n```nonebot.load_plugin('nonebot_plugin_abstain_diary')```  \r\n  \r\n\u6216\u5728bot\u8def\u5f84```pyproject.toml```\u7684```[tool.nonebot]```\u7684```plugins```\u4e2d\u6dfb\u52a0```nonebot_plugin_face2cartoonpic```\u5373\u53ef  \r\npyproject.toml\u914d\u7f6e\u4f8b\u5982\uff1a  \r\n``` \r\n[tool.nonebot]\r\nplugin_dirs = [\"src/plugins\"]\r\nplugins = [\"nonebot_plugin_face2cartoonpic\",\"xxxxx\"]\r\n```\r\n  \r\n## \ud83d\udcd6 \u914d\u7f6e\r\n--- \r\n  \r\n\u5b98\u65b9\u6307\u5357 https://cloud.tencent.com/document/product/1202/41796  \r\n  \r\n\u5148\u5230\u817e\u8baf\u4e91\u8fd9\u91cc\u83b7\u53d6\u670d\u52a1\u8d44\u6e90\u5305 https://console.cloud.tencent.com/ft/resource\r\n  \r\n\u518d\u53bb https://console.cloud.tencent.com/cam/capi \u7684api\u5bc6\u94a5\u7ba1\u7406\u83b7\u53d6api\u5bc6\u94a5\r\n  \r\n---\r\n  \r\nbot\u6839\u76ee\u5f55\u4e0b.env\u6587\u4ef6\r\n  \r\n```  \r\n  \r\nSecret_Id = \"\"\u8fd9\u4e24\u4e2a\u5199\u4ece\u817e\u8baf\u4e91\u83b7\u53d6\u7684api\u5bc6\u94a5\r\n  \r\nSecret_Key = \"\"\r\n  \r\nFaceCartoonPic_cd_time = 60{int}\u9ed8\u8ba460  \r\n  \r\n```  \r\n## \ud83c\udf89 \u4f7f\u7528\r\n### \u6307\u4ee4\u8868\r\n| \u6307\u4ee4 | \u9700\u8981@ | \u8303\u56f4 | \u8bf4\u660e |\r\n|:-----:|:----:|:----:|:----:|\r\n| \u4eba\u7269\u53d8\u6362 + \u56fe\u7247 | \u5426 | \u7fa4\u804a/\u79c1\u804a | \u5bf9\u53d1\u9001\u7684\u56fe\u7247\u542f\u7528\u6a21\u578b, \u652f\u6301\u56de\u590d\u56fe\u7247 |\r\n\r\n\u4f7f\u7528\u793a\u4f8b\uff1a\r\n\r\n    /\u4eba\u7269\u53d8\u6362 <\u56fe\u50cf>\r\n\r\n**\u6ce8\u610f**\r\n\r\n\u9ed8\u8ba4\u60c5\u51b5\u4e0b, \u60a8\u5e94\u8be5\u5728\u6307\u4ee4\u524d\u52a0\u4e0a\u547d\u4ee4\u524d\u7f00, \u901a\u5e38\u662f /\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "\u57fa\u4e8e \u817e\u8baf\u4e91\u5408\u6210\u56fe\u7684 \u4ee5\u56fe\u7ed8\u56fe NoneBot2\u63d2\u4ef6",
    "version": "0.3.2",
    "split_keywords": [
        "pip",
        "nonebot2",
        "nonebot",
        "nonebot_plugin"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "f78bb635d16576c6026f3af710e70b9f",
                "sha256": "498f90714c112d6d1b37c28ee5ece2b5a5b3d433fc37c53a6ea6a380ba13534b"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_face2cartoonpic-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f78bb635d16576c6026f3af710e70b9f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 17807,
            "upload_time": "2022-12-30T13:37:47",
            "upload_time_iso_8601": "2022-12-30T13:37:47.581572Z",
            "url": "https://files.pythonhosted.org/packages/33/d0/960011a9d2a4ef92d6f4cd9d11e98f15464b6fbe6e3484f22cd45674e358/nonebot_plugin_face2cartoonpic-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-30 13:37:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ANGJustinl",
    "github_project": "nonebot_plugin_face2cartoonpic",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot-plugin-face2cartoonpic"
}
        
Elapsed time: 0.38205s