基于nonebot2的bing-chat软件
Project description
📖 介绍
一个可以使用新版Bing进行聊天的插件
目前正在完善更多的设置
💿 安装
使用 nb-cli 安装(推荐)
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-bing-chat
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip install nonebot-plugin-bing-chat
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_bing_chat"]
⚙️ 配置
在 nonebot2 项目的data/BingChat
文件中添加`cookies.json(必须)
- 在浏览器安装
cookie-editor
的插件- Chrome/Edge(需要魔法)
- Firefox
- 打开
bing.com
(需要魔法) - 打开
cookie-editor
插件 - 点击右下角的
Export
按钮(这会把cookie保存到你的剪切板上) - 把你复制道德内容放到
cookies.json
文件里
在 nonebot2 项目的
.env
文件中添加下表中的必填配置
配置项 必填 默认值 说明 配置项1 是 无 配置说明
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
chat | 所有人 | 否 | 私聊/群聊 | 与Bing进行对话 |
刷新列表 | 所有人 | 是 | 私聊/群聊 | 新建一个对话 |
🌸 致谢
- @A-kirami 项目使用了README模板
- @acheong08 项目使用了与Bing通讯的接口 EdgeGPT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot-plugin-bing-chat-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aae04a77749ee249e7138a2b129cfa146c693248f745288d27749bc180e572e |
|
MD5 | 1e4522d644399c0ba00fac76a26a78ad |
|
BLAKE2b-256 | afa21ade3b85de80ed002ec0521c0ca5adc922cd1960700487a16aeaec47ec14 |
Close
Hashes for nonebot_plugin_bing_chat-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e2abb06de37c09d2529a1da4d5922fb458cc6ddf22c22c84c8edcbbc5d95df |
|
MD5 | a0a26b9122e9781617e62edcbfe29df6 |
|
BLAKE2b-256 | 880bdb4307e2bcc8d29d75afbc1cfc2ad48441a4353595706d2abaf4e585ac73 |