基于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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d499373c4a896aca0a70ce1f2ab3ec30f73d2e76a6dd342f15203bb043bcdabc |
|
MD5 | ab70be7541c565bc40f8b8420c2c98e0 |
|
BLAKE2b-256 | 9d3c35c89dfc7a940546ae2569ec3ff12df6b70853e0f9b3a694b3d6e886793b |
Close
Hashes for nonebot_plugin_bing_chat-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24cf0856756da29cfb047f427dab99d2f88206f016fe3c33f90cd78788db8bde |
|
MD5 | 762f85c648024906af479ad646e1e325 |
|
BLAKE2b-256 | 0290e1319ba81bfa975d15347f9be999e3310c8da1f641e54cfab892e8d41c59 |