基于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进行对话 |
刷新列表 | 所有人 | 是 | 私聊/群聊 | 新建一个对话 |
🌸 致谢
- @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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a187091492621a525426043a87ab16f136eeef6f753a71acb713dc40ed2acda |
|
MD5 | 899165f7871d673a738312b3314b1149 |
|
BLAKE2b-256 | 30cc54099d5e928dde7bc1bda01fe552bc717f4365fe016953e19cc969f4a491 |
Close
Hashes for nonebot_plugin_bing_chat-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34511ee26e394860ec4d6983fb894ebe427e2b941ce07717593dcb9b7265742f |
|
MD5 | f155e8af5bf371ef5a4ca42dc1580ae6 |
|
BLAKE2b-256 | 1396506ac3ed1711c314448236651553a8537b2ffef6560d58c0024655ecd4e5 |