## nonebot-plugin-nekoimage
对接[NekoImageGallery](https://github.com/hv0905/NekoImageGallery)(一个AI驱动的自然语言和反向图像搜索引擎,由CLIP和qdrant提供支持)的nonebot插件
### 安装
1. **手动构建最新版本的**[nonebot-plugin-send-anything-anywhere](https://github.com/MountainDash/nonebot-plugin-send-anything-anywhere)(以下简称saa)并安装
> 截止2024.1.15,saa的最新版本号仍为2023年11月18日的[0.4.0](https://pypi.org/project/nonebot-plugin-send-anything-anywhere/0.4.0/),这个版本并未对qq适配器进行较好的适配,因此需要手动构建最新版本的saa并安装,安装命令如下:
```bash
git clone https://github.com/MountainDash/nonebot-plugin-send-anything-anywhere
cd nonebot-plugin-send-anything-anywhere
poetry install
```
2. 安装本插件
- 使用 nb-cli 安装
`nb plugin install nonebot-plugin-nekoimage`
- 使用 poetry 安装
`poetry add nonebot-plugin-nekoimage`
- 使用 pip 安装
`pip install nonebot-plugin-nekoimage`
### 配置文件
```env
NEKOIMAGE_API=http://127.0.0.1:8000 # 参见 [NekoImageGallery](https://github.com/hv0905/NekoImageGallery)
NEKOIMAGE_SECRET=your-super-secret-access-token # 参见 [NekoImageGallery](https://github.com/hv0905/NekoImageGallery)
NEKOIMAGE_AT_MSG=true # 是否**仅处理at机器人**的消息
NEKOIMAGE_BETTER_URL=true # 将url格式的信息处理后发送,特别适用于adapter-qq
NEKOIMAGE_HTTPX_TIMEOUT=30 # 插件向NekoImageGallery后端发送请求的等待超时时间
```
### 支持的适配器
本插件使用 [nonebot-saa](https://github.com/MountainDash/nonebot-plugin-send-anything-anywhere) 同时适配以下适配器使用:
- [adapter-onebot [v11,测试于OpenShamrock的实现] ](https://whitechi73.github.io/OpenShamrock/api)
- [adapter-qq](https://github.com/nonebot/adapter-qq)
### 特别感谢
- [KirbyScarlet/vanilla-bot](https://github.com/KirbyScarlet/vanilla-bot)
Raw data
{
"_id": null,
"home_page": "https://github.com/pk5ls20/nonebot-plugin-nekoimage",
"name": "nonebot-plugin-nekoimage",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "nonebot,nonebot2",
"author": "pk5ls20",
"author_email": "pk5ls20@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/cd/d6/2e90b28d6254c239eb09ffb58dd9df4c3db270243b56715e1a187179f1a1/nonebot_plugin_nekoimage-0.3.3.tar.gz",
"platform": null,
"description": "## nonebot-plugin-nekoimage\n\u5bf9\u63a5[NekoImageGallery](https://github.com/hv0905/NekoImageGallery)\uff08\u4e00\u4e2aAI\u9a71\u52a8\u7684\u81ea\u7136\u8bed\u8a00\u548c\u53cd\u5411\u56fe\u50cf\u641c\u7d22\u5f15\u64ce\uff0c\u7531CLIP\u548cqdrant\u63d0\u4f9b\u652f\u6301\uff09\u7684nonebot\u63d2\u4ef6\n\n### \u5b89\u88c5\n1. **\u624b\u52a8\u6784\u5efa\u6700\u65b0\u7248\u672c\u7684**[nonebot-plugin-send-anything-anywhere](https://github.com/MountainDash/nonebot-plugin-send-anything-anywhere)\uff08\u4ee5\u4e0b\u7b80\u79f0saa\uff09\u5e76\u5b89\u88c5 \n\n> \u622a\u6b622024.1.15\uff0csaa\u7684\u6700\u65b0\u7248\u672c\u53f7\u4ecd\u4e3a2023\u5e7411\u670818\u65e5\u7684[0.4.0](https://pypi.org/project/nonebot-plugin-send-anything-anywhere/0.4.0/)\uff0c\u8fd9\u4e2a\u7248\u672c\u5e76\u672a\u5bf9qq\u9002\u914d\u5668\u8fdb\u884c\u8f83\u597d\u7684\u9002\u914d\uff0c\u56e0\u6b64\u9700\u8981\u624b\u52a8\u6784\u5efa\u6700\u65b0\u7248\u672c\u7684saa\u5e76\u5b89\u88c5\uff0c\u5b89\u88c5\u547d\u4ee4\u5982\u4e0b\uff1a\n\n```bash\ngit clone https://github.com/MountainDash/nonebot-plugin-send-anything-anywhere\ncd nonebot-plugin-send-anything-anywhere\npoetry install\n```\n\n2. \u5b89\u88c5\u672c\u63d2\u4ef6\n- \u4f7f\u7528 nb-cli \u5b89\u88c5 \n `nb plugin install nonebot-plugin-nekoimage`\n- \u4f7f\u7528 poetry \u5b89\u88c5 \n `poetry add nonebot-plugin-nekoimage`\n- \u4f7f\u7528 pip \u5b89\u88c5 \n `pip install nonebot-plugin-nekoimage`\n\n### \u914d\u7f6e\u6587\u4ef6\n```env\nNEKOIMAGE_API=http://127.0.0.1:8000 # \u53c2\u89c1 [NekoImageGallery](https://github.com/hv0905/NekoImageGallery)\nNEKOIMAGE_SECRET=your-super-secret-access-token # \u53c2\u89c1 [NekoImageGallery](https://github.com/hv0905/NekoImageGallery)\nNEKOIMAGE_AT_MSG=true # \u662f\u5426**\u4ec5\u5904\u7406at\u673a\u5668\u4eba**\u7684\u6d88\u606f\nNEKOIMAGE_BETTER_URL=true # \u5c06url\u683c\u5f0f\u7684\u4fe1\u606f\u5904\u7406\u540e\u53d1\u9001\uff0c\u7279\u522b\u9002\u7528\u4e8eadapter-qq\nNEKOIMAGE_HTTPX_TIMEOUT=30 # \u63d2\u4ef6\u5411NekoImageGallery\u540e\u7aef\u53d1\u9001\u8bf7\u6c42\u7684\u7b49\u5f85\u8d85\u65f6\u65f6\u95f4\n```\n\n### \u652f\u6301\u7684\u9002\u914d\u5668\n\u672c\u63d2\u4ef6\u4f7f\u7528 [nonebot-saa](https://github.com/MountainDash/nonebot-plugin-send-anything-anywhere) \u540c\u65f6\u9002\u914d\u4ee5\u4e0b\u9002\u914d\u5668\u4f7f\u7528\uff1a\n- [adapter-onebot [v11,\u6d4b\u8bd5\u4e8eOpenShamrock\u7684\u5b9e\u73b0] ](https://whitechi73.github.io/OpenShamrock/api)\n- [adapter-qq](https://github.com/nonebot/adapter-qq)\n\n### \u7279\u522b\u611f\u8c22\n- [KirbyScarlet/vanilla-bot](https://github.com/KirbyScarlet/vanilla-bot)\n",
"bugtrack_url": null,
"license": "AGPL-3.0",
"summary": "A nonebot plugin for integrating with NekoImageGallery",
"version": "0.3.3",
"project_urls": {
"Documentation": "https://github.com/pk5ls20/nonebot-plugin-nekoimage/wiki",
"Homepage": "https://github.com/pk5ls20/nonebot-plugin-nekoimage",
"Repository": "https://github.com/pk5ls20/nonebot-plugin-nekoimage"
},
"split_keywords": [
"nonebot",
"nonebot2"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f98b23cd8e59eff1634ec4085ef5435012925f07999957c4c4f56f02e35a5d03",
"md5": "94920280e0fc9975b689574d4ea90491",
"sha256": "6dba63d093d4dd5cc0eb0da67dc8a453b850b59bcee1fc88d6d94481df85da61"
},
"downloads": -1,
"filename": "nonebot_plugin_nekoimage-0.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "94920280e0fc9975b689574d4ea90491",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 9683,
"upload_time": "2024-01-15T01:44:34",
"upload_time_iso_8601": "2024-01-15T01:44:34.682356Z",
"url": "https://files.pythonhosted.org/packages/f9/8b/23cd8e59eff1634ec4085ef5435012925f07999957c4c4f56f02e35a5d03/nonebot_plugin_nekoimage-0.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cdd62e90b28d6254c239eb09ffb58dd9df4c3db270243b56715e1a187179f1a1",
"md5": "dca35b700407bae9dd7b9ec9d1969385",
"sha256": "bb79879955b25ede2b3cbbeb4527b6fbbb096f7c641132d1a6861e34865c19ff"
},
"downloads": -1,
"filename": "nonebot_plugin_nekoimage-0.3.3.tar.gz",
"has_sig": false,
"md5_digest": "dca35b700407bae9dd7b9ec9d1969385",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 7901,
"upload_time": "2024-01-15T01:44:36",
"upload_time_iso_8601": "2024-01-15T01:44:36.262372Z",
"url": "https://files.pythonhosted.org/packages/cd/d6/2e90b28d6254c239eb09ffb58dd9df4c3db270243b56715e1a187179f1a1/nonebot_plugin_nekoimage-0.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-15 01:44:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pk5ls20",
"github_project": "nonebot-plugin-nekoimage",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nonebot-plugin-nekoimage"
}