Metadata-Version: 2.1
Name: nonebot-plugin-bingimagecreator
Version: 0.0.2
Summary: A nonebot plugin for Bing DALL-E 3
License: MIT
Author: Alpaca
Author-email: alpaca@bupt.edu.cn
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: asyncio (>=3.4.3,<4.0.0)
Requires-Dist: nonebot-adapter-onebot (>=2.2.1,<3.0.0)
Requires-Dist: nonebot2 (>=2.0.0rc3,<3.0.0)
Description-Content-Type: text/markdown

<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>
</div>

<div align="center">

# nonebot-plugin-BingImageCreator
</div>

# 介绍
- 本插件调用Bing的绘图接口，仅需提供Bing的cookies即可调用DALL-E 3进行绘图。
- 本插件支持多cookies和代理设置。
- 在不支持NewBing的地区请设置代理。
# 安装

* 手动安装
  ```
  git clone https://github.com/Alpaca4610/nonebot_plugin_BingImageCreator.git
  ```

  下载完成后在bot项目的pyproject.toml文件手动添加插件：

  ```
  plugin_dirs = ["xxxxxx","xxxxxx",......,"下载完成的插件路径/nonebot-plugin-BingImageCreator"]
  ```
* 使用 pip
  ```
  pip install nonebot-plugin-BingImageCreator
  ```

# 配置文件

在Bot根目录下的.env文件中追加如下内容：

```
bing_cookies = ["cookies1","cookies2","cookies3",......]
```

可选内容：
```
bing_proxy = "http://127.0.0.1:8001"    # 无法访问NewBing的地区请配置此项
```
cookies获取方法参考[此处](https://github.com/acheong08/BingImageCreator#chromium-based-browsers-edge-opera-vivaldi-brave)

# 使用方法

- 直接发送: 画图 XXXXXX

