
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
nonebot-plugin-bing-chat
Advanced tools
一个可以使用新版Bing进行聊天的插件 (现在又不需要代理了)
目前支持go-cqhttp与onebot v11适配器和nonebot-plugin-guild-patch
QQ群:366731501
给个star🌟?
5月份有考试,暂时随缘更新
如果你有更多需求,请发布issue让我知道
nb plugin install nonebot-plugin-bing-chat --upgrade
pip install --upgrade nonebot-plugin-bing-chat
对于发送图片的支持需要执行
pip install --upgrade nonebot-plugin-bing-chat[image]
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_bing_chat"]
./data/BingChat/cookies
文件夹中添加cookies.json
(必须)
cookie-editor
的插件
www.bing.com/chat
(需要魔法)cookie-editor
插件Export
按钮(这会把cookie保存到你的剪切板上)cookies.json
文件里 .json
结尾的cookies文件.env
文件中添加下表中的配置(可选项)
在.env书写配置时,字符转要使用双引号,而不是单引号
命令配置
配置项 | 类型 | 默认值 | 说明 |
---|---|---|---|
command_start | list[str] | ["/"] | 命令前缀 |
bingchat_command_chat | str/list[str] | ["chat"] | 对话命令 |
bingchat_command_new_chat | str/list[str] | ["chat-new", "刷新对话"] | 新建对话命令 |
bingchat_command_history_chat | str/list[str] | ["chat-history"] | 返回历史对话命令 |
bingchat_block | bool | False | 是否block |
bingchat_priority | int | 1 | 指令的优先级 |
bingchat_to_me | bool | False | 所有命令是否需要@bot |
bingchat_share_chat | bool | False | 他人是否可以用过回复bot而进行对话 |
输出配置
配置项 | 类型 | 默认值 | 说明 |
---|---|---|---|
bingchat_display_is_waiting | bool | True | 是否显示“正在请求” |
bingchat_display_in_forward | bool | False | 是否以合并转发的消息形式发送消息 |
bingchat_display_content_types | str/list[str] | ["text.num-max-conversation&answer&suggested-question"] | 输出的内容包括什么 |
进行配置
配置项 | 类型 | 默认值 | 说明 |
---|---|---|---|
bingchat_log | bool | True | 是否记录日志 |
bingchat_proxy | str | None | 代理地址 |
bingchat_conversation_style | "creative" / "balanced" / "precise" | "balanced" | 对话样式 |
bingchat_auto_switch_cookies | bool | False | 账号上限后是否自动切换cookies |
bingchat_auto_refresh_conversation | bool | True | 聊天上限后是否自动建立新的对话 |
屏蔽群聊配置
配置项 | 类型 | 默认值 | 说明 |
---|---|---|---|
bingchat_group_filter_mode | "whitelist"/"blacklist" | "blacklist" | 对群聊屏蔽的模式 |
bingchat_group_filter_blacklist | list[int] | [] | QQ群黑名单列表 |
bingchat_group_filter_whitelist | list[int] | [] | QQ群白名单列表 |
bingchat_guild_filter_blacklist | list[dict] | [] | QQ频道黑名单列表 |
bingchat_guild_filter_whitelist | list[dict] | [] | QQ频道白名单列表 |
频道的配置格式:{"guild_id": "123456789", "channel_id": "123456789"}
还没写,可以来QQ群来问我
以下为指令可以在配置文件中更改
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
chat | 所有人 | 否 | 私聊/群聊 | 与Bing进行对话 |
chat-new | 所有人 | 否 | 私聊/群聊 | 新建一个对话 |
chat-history | 所有人 | 否 | 私聊/群聊 | 返回历史对话 |
你可以回复bot的消息从而直接继续对话,而不用输入对话指令
FAQs
基于nonebot2的bing-chat软件
We found that nonebot-plugin-bing-chat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.