基于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`文件中添加下表中的配置(可选)
配置项 | 必填 | 类型 | 默认值 | 说明 |
---|---|---|---|---|
bingchat_allow_group | 否 | Bool | True | 是否允许在群聊中使用 |
bingchat_command_chat | 否 | str/list[str] | ['chat'] | 对话关键词 |
bingchat_command_new_chat | 否 | str/list[str] | ['刷新对话'] | 新建对话关键词 |
🎉 使用
指令表
以下为指令可以在配置文件中更改
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
chat | 所有人 | 否 | 私聊/群聊 | 与Bing进行对话 |
刷新列表 | 所有人 | 是 | 私聊/群聊 | 新建一个对话 |
📄 ToDo
- 支持更多的适配器
- onebot-v11
- 支持更好的权限管理
- 每个人的次数限制
- 白名单/黑名单机制
- 支持账号自动切换
- 更好的错误处理
🌸 致谢
- @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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6c02927c4e8008b48f38fba6645ec2dedc6e15dcd7b25688fe5f7d58a34c844 |
|
MD5 | 93aea71ddaf9b860e3512dea74c34796 |
|
BLAKE2b-256 | 25f975b77d2761b8858976e823f38429a71b8bbc7a95c6bb493c7522fd7159c3 |
Close
Hashes for nonebot_plugin_bing_chat-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94d399fd1331804fb6c494449b0256325fec82cf42ef61250b545ca2a5d6872d |
|
MD5 | 29bb7958860327d74f5948a4f5a50986 |
|
BLAKE2b-256 | 60b15364ed0f9f61a9d6c8fd74a252afcd485dc440a9dd4191d7d3106bc9a78c |