lss233 / chatgpt-mirai-qq-bot

🚀 一键部署!真正的 AI 聊天机器人!支持ChatGPT、文心一言、讯飞星火、Bing、Bard、ChatGLM、POE,多账号,人设调教,虚拟女仆、图片渲染、语音发送 | 支持 QQ、Telegram、Discord、微信 等平台
GNU Affero General Public License v3.0
12.55k stars 1.52k forks source link

bot私聊非管理不能用,群聊@和管理员私聊可用 #627

Closed Emvdy closed 1 year ago

Emvdy commented 1 year ago

提交 issue 前,请先确认:

运行环境:

问题描述

log情况

  1. chatgpt
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.559 | SUCCESS  | config:scan_presets:467 - 注册预设:dan <==> ./presets/utils/dan.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.559 | SUCCESS  | config:scan_presets:467 - 注册预设:lawyer <==> ./presets/assistant/lawyer.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.559 | ERROR    | config:scan_presets:464 - 注册预设:dan <==> ./presets/assistant/dan.txt [失败:关键词已存在]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.559 | SUCCESS  | config:scan_presets:467 - 注册预设:poet <==> ./presets/assistant/poet.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:novelist <==> ./presets/assistant/novelist.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:debater <==> ./presets/assistant/debater.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:Lss233 <==> ./presets/assistant/Lss233.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:shineisheji <==> ./presets/assistant/shineisheji.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:long <==> ./presets/assistant/long.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:bing <==> ./presets/assistant/bing.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:kp <==> ./presets/assistant/kp.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:huxijin <==> ./presets/role-play/huxijin.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:yutao <==> ./presets/role-play/yutao.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:zhangweiwei <==> ./presets/role-play/zhangweiwei.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:DJ <==> ./presets/role-play/DJ.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:dingzhen <==> ./presets/role-play/dingzhen.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:ERNIE <==> ./presets/role-play/ERNIE.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.560 | SUCCESS  | config:scan_presets:467 - 注册预设:PG13succubus <==> ./presets/role-play/PG13succubus.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:crazy <==> ./presets/role-play/crazy.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:ikun <==> ./presets/role-play/ikun.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:welldone <==> ./presets/role-play/welldone.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:MOSS <==> ./presets/role-play/MOSS.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:cixiaogui <==> ./presets/role-play/cixiaogui.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:catgirl <==> ./presets/role-play/catgirl.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:debatestick <==> ./presets/role-play/debatestick.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:hanli <==> ./presets/role-play/hanli.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:gaoqiqiang <==> ./presets/role-play/gaoqiqiang.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.561 | SUCCESS  | config:scan_presets:467 - 注册预设:预设模板 <==> ./presets/预设模板.txt [成功]
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.562 | INFO     | manager.bot:login_bing:147 - 正在解析第 1 个 Bing 账号
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:47.562 | INFO     | manager.bot:__check_proxy:295 - [代理测试] 正在检查代理配置:http://172.17.0.1:32935
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.244 | SUCCESS  | manager.bot:__check_proxy:303 - [代理测试] 连接成功!
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.244 | SUCCESS  | manager.bot:login_bing:152 - 解析成功!
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.244 | SUCCESS  | manager.bot:login_bing:158 - 成功解析 1/1 个 Bing 账号!
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.245 | INFO     | manager.bot:login:98 - 当前的 browserless_endpoint 为:https://bypass.churchless.tech/api/
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.245 | INFO     | manager.bot:login:110 - 当前的 api_endpoint 为:https://api.openai.com/v1
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.245 | INFO     | manager.bot:login_openai:231 - 正在登录第 1 个 OpenAI 账号
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.245 | INFO     | manager.bot:__login_openai_apikey:381 - 尝试使用 api_key 登录中...
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.245 | INFO     | manager.bot:__check_proxy:295 - [代理测试] 正在检查代理配置:http://172.17.0.1:32935
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.780 | SUCCESS  | manager.bot:__check_proxy:303 - [代理测试] 连接成功!
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.781 | INFO     | manager.bot:__login_openai_apikey:385 - 当前检查的 API Key 为:sk-gJA3B******LOxV
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.781 | WARNING  | manager.bot:__login_openai_apikey:388 - 在查询 API 额度时遇到问题,请自行确认额度。
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.781 | SUCCESS  | manager.bot:login_openai:245 - 登录成功!
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.781 | SUCCESS  | manager.bot:login_openai:264 - 成功登录 1/1 个 OpenAI 账号!
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.781 | INFO     | manager.bot:login:124 - AI 类型:chatgpt-web - 可用账号: 0 个
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.781 | INFO     | manager.bot:login:124 - AI 类型:openai-api - 可用账号: 1 个
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.781 | INFO     | manager.bot:login:124 - AI 类型:poe-web - 可用账号: 0 个
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.782 | INFO     | manager.bot:login:124 - AI 类型:bing-cookie - 可用账号: 1 个
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.782 | INFO     | manager.bot:login:124 - AI 类型:bard-cookie - 可用账号: 0 个
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.782 | INFO     | manager.bot:login:124 - AI 类型:yiyan-cookie - 可用账号: 0 个
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.782 | INFO     | manager.bot:login:124 - AI 类型:chatglm-api - 可用账号: 0 个
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.782 | INFO     | __main__:<module>:37 - 检测到 mirai 配置,将启动 mirai 模式……
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:48.995 | INFO     | launart.manager:launch:331 - Launching 5 components as async task...
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.042 | INFO     | graia.ariadne.service:base_telemetry:108 - 
    chatgpt-qq-chatgpt-1  |     _         _           _
    chatgpt-qq-chatgpt-1  |    / \   _ __(_) __ _  __| |_ __   ___
    chatgpt-qq-chatgpt-1  |   / _ \ | '__| |/ _` |/ _` | '_ \ / _ \
    chatgpt-qq-chatgpt-1  |  / ___ \| |  | | (_| | (_| | | | |  __/
    chatgpt-qq-chatgpt-1  | /_/   \_\_|  |_|\__,_|\__,_|_| |_|\___|
    chatgpt-qq-chatgpt-1  | 
    chatgpt-qq-chatgpt-1  | graiax-silkcoder: 0.3.6
    chatgpt-qq-chatgpt-1  | graia-amnesia: 0.7.1
    chatgpt-qq-chatgpt-1  | graia-ariadne: 0.11.3
    chatgpt-qq-chatgpt-1  | graia-broadcast: 0.19.2
    chatgpt-qq-chatgpt-1  | launart: 0.6.3
    chatgpt-qq-chatgpt-1  | statv: 0.3.2
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.043 | INFO     | launart.manager:_launchable_task_done_callback:68 - [elizabeth.connection.1208624998.websocket_server_connection] completed.
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.043 | INFO     | graia.amnesia.builtins.aiohttp:launch:513 - starting server on 0.0.0.0:8554
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.043 | SUCCESS  | launart.manager:launch:384 - Layer #1:[http.server/aiohttp, http.client/aiohttp, cache.client/memcache] preparation completed.
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.044 | INFO     | platforms.ariadne_bot:start_background:192 - 尝试从 Mirai 服务中读取机器人 QQ 的 session key……
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.044 | INFO     | platforms.ariadne_bot:start_background:194 - [提示] 当前为反向 ws 模式,请确保你的 mirai api http 设置了正确的 reverse-ws adapter 配置
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.044 | INFO     | platforms.ariadne_bot:start_background:195 - [提示] 配置不正确会导致 Mirai 端出现错误提示。
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.044 | SUCCESS  | launart.manager:launch:384 - Layer #3:[elizabeth.service] preparation completed.
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:49.044 | INFO     | launart.manager:launch:389 - All components prepared, start blocking phase.
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:08:52.909 | SUCCESS  | graia.ariadne.connection.ws:_:64 - Successfully got session key
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:04.787 | INFO     | graia.ariadne.model:log:82 - 1208624998: [RECV][EMvdy(635828932)] -> test
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:05.043 | DEBUG    | middlewares.concurrentlock:handle_request:40 - [Concurrent] 排队中,前面还有 0 个人!
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:05.043 | DEBUG    | middlewares.concurrentlock:handle_request:42 - [Concurrent] 排到了!
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:05.043 | DEBUG    | middlewares.timeout:create_timeout_task:55 - [Timeout] 开始计时……
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:07.706 | DEBUG    | adapter.chatgpt.api:ask:88 - [ChatGPT-API] 响应:This is a test response from the AI language model. Is there anything specific you would like me to test?
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:07.707 | DEBUG    | adapter.chatgpt.api:ask:89 - 使用 token 数:40
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:07.708 | DEBUG    | middlewares.timeout:handle_respond:46 - [Timeout] 取消计时……
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:07.980 | INFO     | graia.ariadne.model:log:82 - 1208624998: [SEND][EMvdy(635828932)] <- This is a test response from the AI language model. Is there anything specific you would like me to test?
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:08.039 | DEBUG    | middlewares.timeout:create_timeout_task:55 - [Timeout] 开始计时……
    chatgpt-qq-chatgpt-1  | 2023-04-14 09:09:20.807 | INFO     | graia.ariadne.model:log:82 - 1208624998: [RECV][网络巨人(1029598308)] -> test
  2. mirai
    
    chatgpt-qq-mirai-1  |   09:08:48 [INFO] iTX Technologies Mirai Console Loader version 2.1.2-61c8bd8
    chatgpt-qq-mirai-1  |   09:08:48 [INFO] Runtime: OpenJDK 64-Bit Server VM 17.0.6 (arch: 64)
    chatgpt-qq-mirai-1  |   09:08:48 [INFO] https://github.com/iTXTech/mirai-console-loader
    chatgpt-qq-mirai-1  |   09:08:48 [INFO] This program is licensed under GNU AGPL v3
    chatgpt-qq-mirai-1  |   09:08:49 [INFO] Mirai Console Loader Announcement:
    chatgpt-qq-mirai-1  | Mirai Console Loader 公告栏
    chatgpt-qq-mirai-1  | 
    chatgpt-qq-mirai-1  | 如果在图片上传的时候遇到问题请与我们联系 (需要提供图片文件源本)
    chatgpt-qq-mirai-1  | `- 如 Unsupported image type for ExternalResource *
    chatgpt-qq-mirai-1  | `  considering use gif/png/bmp/jpg format.
    chatgpt-qq-mirai-1  | `- Tracker: https://github.com/mamoe/mirai/issues/new/choose
    chatgpt-qq-mirai-1  | 
    chatgpt-qq-mirai-1  | 常用资源整合
    chatgpt-qq-mirai-1  | `- https://mirai.mamoe.net/topic/653
    chatgpt-qq-mirai-1  |  
    chatgpt-qq-mirai-1  | MCL 已推出 2.1.0,更好的支持 Mirai 2.11 的插件系统,建议更新。
    chatgpt-qq-mirai-1  | 
    chatgpt-qq-mirai-1  |   09:08:49 [INFO] Verifying "net.mamoe:mirai-console" v2.14.0
    chatgpt-qq-mirai-1  |   09:08:50 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.14.0
    chatgpt-qq-mirai-1  |   09:08:50 [INFO] Verifying "net.mamoe:mirai-core-all" v2.14.0
    chatgpt-qq-mirai-1  |   09:08:50 [INFO] Verifying "org.itxtech:mcl-addon" v2.1.1
    chatgpt-qq-mirai-1  |   09:08:50 [INFO] Verifying "net.mamoe:mirai-api-http" v2.9.1
    chatgpt-qq-mirai-1  |   09:08:50 [INFO] Verifying "xyz.cssxsh.mirai:mirai-device-generator" v1.1.3
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:51 I/main: Starting mirai-console...
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:51 I/main: 
    chatgpt-qq-mirai-1  | 
    chatgpt-qq-mirai-1  | ==================================[ Mirai consosle 2.14.0 ]===================================
    chatgpt-qq-mirai-1  |  __       __ __                   __  ______                                      __
    chatgpt-qq-mirai-1  | |  \     /  \  \                 |  \/      \                                    |  \
    chatgpt-qq-mirai-1  | | ▓▓\   /  ▓▓\▓▓ ______   ______  \▓▓  ▓▓▓▓▓▓\ ______  _______   _______  ______ | ▓▓ ______
    chatgpt-qq-mirai-1  | | ▓▓▓\ /  ▓▓▓  \/      \ |      \|  \ ▓▓   \▓▓/      \|       \ /       \/      \| ▓▓/      \
    chatgpt-qq-mirai-1  | | ▓▓▓▓\  ▓▓▓▓ ▓▓  ▓▓▓▓▓▓\ \▓▓▓▓▓▓\ ▓▓ ▓▓     |  ▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\  ▓▓▓▓▓▓▓  ▓▓▓▓▓▓\ ▓▓  ▓▓▓▓▓▓\
    chatgpt-qq-mirai-1  | | ▓▓\▓▓ ▓▓ ▓▓ ▓▓ ▓▓   \▓▓/      ▓▓ ▓▓ ▓▓   __| ▓▓  | ▓▓ ▓▓  | ▓▓\▓▓    \| ▓▓  | ▓▓ ▓▓ ▓▓    ▓▓
    chatgpt-qq-mirai-1  | | ▓▓ \▓▓▓| ▓▓ ▓▓ ▓▓     |  ▓▓▓▓▓▓▓ ▓▓ ▓▓__/  \ ▓▓__/ ▓▓ ▓▓  | ▓▓_\▓▓▓▓▓▓\ ▓▓__/ ▓▓ ▓▓ ▓▓▓▓▓▓▓▓
    chatgpt-qq-mirai-1  | | ▓▓  \▓ | ▓▓ ▓▓ ▓▓      \▓▓    ▓▓ ▓▓\▓▓    ▓▓\▓▓    ▓▓ ▓▓  | ▓▓       ▓▓\▓▓    ▓▓ ▓▓\▓▓     \
    chatgpt-qq-mirai-1  |  \▓▓      \▓▓\▓▓\▓▓       \▓▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓  \▓▓▓▓▓▓ \▓▓   \▓▓\▓▓▓▓▓▓▓  \▓▓▓▓▓▓ \▓▓ \▓▓▓▓▓▓▓
    chatgpt-qq-mirai-1  | 
    chatgpt-qq-mirai-1  | 
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:51 I/main: Backend: version 2.14.0, built on 2023-02-06 06:25:21.
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:51 I/main: Frontend Terminal: version 2.14.0, provided by Mamoe Technologies
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:51 I/main: Welcome to visit https://mirai.mamoe.net/
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 W/fix-protocol-version: Mirai版本低于预期,将升级协议版本
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/plugin: Successfully loaded plugin fix-protocol-version v1.3.0
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/plugin: Successfully loaded plugin mirai-api-http v2.9.1
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/plugin: Successfully loaded plugin mirai-device-generator v1.1.3
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/plugin: Successfully loaded plugin MCL Addon v2.1.1
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/fix-protocol-version: 当前各协议版本日期: 
    chatgpt-qq-mirai-1  | ANDROID_PHONE   8.9.33.10335   2023-01-13T08:51:38Z
    chatgpt-qq-mirai-1  | ANDROID_PAD   8.9.33.10335   2023-01-13T08:51:38Z
    chatgpt-qq-mirai-1  | ANDROID_WATCH   2.0.5   2019-06-03T12:25:31Z
    chatgpt-qq-mirai-1  | IPAD   8.9.33.614   2021-12-31T03:36:26Z
    chatgpt-qq-mirai-1  | MACOS   5.8.9   2020-07-27T07:50:08Z
    chatgpt-qq-mirai-1  | 
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/Mirai HTTP API: ********************************************************
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/reverse-ws adapter: >>> [reverse-ws adapter] is running
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/Mirai HTTP API: Http api server is running out of verify mode
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/Mirai HTTP API: adaptors: [reverse-ws]
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/Mirai HTTP API: ********************************************************
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/MCL Addon: iTXTech MCL Version: 2.1.2-61c8bd8
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/main: 4 plugin(s) enabled.
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:52 I/main: Auto-login 1208624998, protocol: MACOS, heartbeatStrategy: STAT_HB
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:53 I/Bot.1208624998: Loaded account secrets from local cache.
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:53 I/Bot.1208624998: Saved account secrets to local cache for fast login.
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:53 I/Bot.1208624998: Login successful.
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:53 V/Bot.1208624998: Event: BotOnlineEvent(bot=Bot(1208624998))
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:53 I/Bot.1208624998: Bot login successful.
    chatgpt-qq-mirai-1  | 2023-04-14 09:08:53 I/main: mirai-console started successfully.
    chatgpt-qq-mirai-1  | > 2023-04-14 09:08:54 W/console: Closing input service...
    chatgpt-qq-mirai-1  | 2023-04-14 09:09:04 V/Bot.1208624998: EMvdy(635828932) -> test
    chatgpt-qq-mirai-1  | 2023-04-14 09:09:07 V/Bot.1208624998: Friend(635828932) <- [mirai:quote:[mirai:source:ids=[7688], internalIds=[-1125451490], from friend 635828932 to 1208624998 at 1681463344], content=test]This is a test response from the AI language model. Is there anything specific you would like me to test?
    chatgpt-qq-mirai-1  | 2023-04-14 09:09:20 V/Bot.1208624998: [网络巨人(Stranger 1029598308) -> test

## config.cfg

[mirai]

qq=xxxx

manager_qq=xxxx

此处保持默认设置,无需修改

reverse_ws_port = 8554

[openai]

[[openai.accounts]]

api_key = "sk-xxxxx" proxy="http://172.17.0.1:32935"

[bing] [[bing.accounts]] cookie_content = '[{"domain":".bing.com","expirationDate":1712991135.807113,"hostOnly":false,"httpOnly":false,"name":"SnrOvr","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"X=rebateson"},{"domain":".bing.com","expirationDate":1715928573.508725,"hostOnly":false,"httpOnly":false,"name":"SRCHUSR","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"DOB=20230321&T=1681368558000"},{"domain":"www.bing.com","expirationDate":1681370377,"hostOnly":true,"httpOnly":false,"name":"ai_session","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"shbfHODICVf7U3bxUYOrI3|1681368577569|1681368577569"},{"domain":".bing.com","expirationDate":1681385716.871516,"hostOnly":false,"httpOnly":true,"name":"SUID","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"A"},{"domain":".bing.com","expirationDate":1715928736.526974,"hostOnly":false,"httpOnly":false,"name":"SRCHHPGUSR","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"BRW=XW&BRH=T&CW=1948&CH=1296&SCW=1933&SCH=3670&SRCHLANG=zh-Hans&PV=10.0.0&HV=1681368737&PRVCW=1948&PRVCH=1296&DPR=1.0&UTC=480&DM=0&EXLTT=31&BZA=0&cdxts=0"},{"domain":".bing.com","expirationDate":1715927719.793623,"hostOnly":false,"httpOnly":false,"name":"ANON","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"A=ACF4CB2272736D30F55C75F9FFFFFFFF&E=1ba9&W=1"},{"domain":".bing.com","expirationDate":1681455141,"hostOnly":false,"httpOnly":false,"name":"_clsk","path":"/","sameSite":null,"secure":false,"session":false,"storeId":null,"value":"qdyjyc|1681368741773|3|1|z.clarity.ms/collect"},{"domain":"www.bing.com","expirationDate":1712904577.467174,"hostOnly":true,"httpOnly":false,"name":"MicrosoftApplicationsTelemetryDeviceId","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"454a3ed4-900e-430c-bc81-bfda5f45b0a8"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"_SS","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"SID=3EBC0794E456635613971565E515627E&R=87&RB=87&GB=0&RG=0&RP=87"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"ipv6","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"hit=1681372176498&t=6"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"dsc","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"order=News"},{"domain":".bing.com","expirationDate":1682577319.793601,"hostOnly":false,"httpOnly":false,"name":"_U","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"16QGmcfIWDmVNltGR1NlCN18lpqISRhi7ieBWu7k3TyNINswFgkDliZ0esKnAhGh38bPGdvmplzOSsSLi43SJbFtzMc2CCIhIuqaoVgNwLtsKF2j8phBD2ejw_hYFwV0vFA1QQ4KMJ0P6vzfML_91Ny_bFQrYVg7YuA6U22Jrl5xJZzDvJv8-IYmy6ltrp_zNnSQb9lSi6aPtOaU1Uu5g5A"},{"domain":".bing.com","expirationDate":1713927226.385185,"hostOnly":false,"httpOnly":false,"name":"SRCHD","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"AF=NOFORM"},{"domain":".bing.com","expirationDate":1713063227.385169,"hostOnly":false,"httpOnly":true,"name":"_EDGE_V","path":"/","sameSite":null,"secure":true,"session":false,"storeId":null,"value":"1"},{"domain":".bing.com","expirationDate":1684753436.102876,"hostOnly":false,"httpOnly":false,"name":"NAP","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"V=1.9&E=1b4f&C=IEinCZMR0MekpzEPmNEDzwcK-x2lpx2TAfwX0YXsZGsiCH9Xj820ig&W=1"},{"domain":".bing.com","expirationDate":1712991135.807073,"hostOnly":false,"httpOnly":false,"name":"_RwBf","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"r=1&mta=0&rc=87&rb=87&gb=0&rg=0&pc=87&mtu=0&rbb=0.0&g=0&cid=&clo=0&v=13&l=2023-04-12T07:00:00.0000000Z&lft=0001-01-01T00:00:00.0000000&aof=0&o=0&p=bingcopilotwaitlist&c=MY00IA&t=5664&s=2023-03-21T02:50:07.7526977+00:00&ts=2023-04-13T06:52:17.4771040+00:00&rwred=0&wls=2&lka=0&lkt=0&TH=&e=vzOZrfLmGcLzzP0QHcIKS8EeVWiv8nKJkSPjCWHDh02mQVg854bin6SpYUy94aOGT_mRjg1zr6B_61O58F_Chg&A="},{"domain":".bing.com","expirationDate":1715928576.345085,"hostOnly":false,"httpOnly":false,"name":"_UR","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"QS=0&TQS=0"},{"domain":".bing.com","hostOnly":false,"httpOnly":true,"name":"_EDGE_S","path":"/","sameSite":null,"secure":false,"session":true,"storeId":null,"value":"SID=3EBC0794E456635613971565E515627E"},{"domain":"www.bing.com","expirationDate":1715064739.798751,"hostOnly":true,"httpOnly":true,"name":"MUIDB","path":"/","sameSite":null,"secure":false,"session":false,"storeId":null,"value":"29841C6E95B16A9309420C3494F26B9C"},{"domain":".bing.com","expirationDate":1715928579.846223,"hostOnly":false,"httpOnly":true,"name":"USRLOC","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"HS=1&ELOC=LAT=30.74632453918457|LON=103.9202651977539|N=%E9%83%AB%E9%83%BD%E5%8C%BA%EF%BC%8C%E5%9B%9B%E5%B7%9D%E7%9C%81|ELT=2|&CLOC=LAT=30.74632370772214|LON=103.92026754976057|A=733.4464586120832|TS=230412153525|SRC=W"},{"domain":".bing.com","expirationDate":1712904573,"hostOnly":false,"httpOnly":false,"name":"_clck","path":"/","sameSite":null,"secure":false,"session":false,"storeId":null,"value":"hho7px|1|faq|0"},{"domain":".bing.com","expirationDate":1715928576.549818,"hostOnly":false,"httpOnly":false,"name":"_HPVN","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"CS=eyJQbiI6eyJDbiI6NCwiU3QiOjAsIlFzIjowLCJQcm9kIjoiUCJ9LCJTYyI6eyJDbiI6NCwiU3QiOjAsIlFzIjowLCJQcm9kIjoiSCJ9LCJReiI6eyJDbiI6NCwiU3QiOjAsIlFzIjowLCJQcm9kIjoiVCJ9LCJBcCI6dHJ1ZSwiTXV0ZSI6dHJ1ZSwiTGFkIjoiMjAyMy0wNC0xM1QwMDowMDowMFoiLCJJb3RkIjowLCJHd2IiOjAsIkRmdCI6bnVsbCwiTXZzIjowLCJGbHQiOjAsIkltcCI6MTV9"},{"domain":".bing.com","expirationDate":1715858974.918162,"hostOnly":false,"httpOnly":false,"name":"ABDEF","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"V=13&ABDV=11&MRNB=1681298974917&MRB=0"},{"domain":".bing.com","expirationDate":1714991359.102256,"hostOnly":false,"httpOnly":false,"name":"MUID","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"29841C6E95B16A9309420C3494F26B9C"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"SNRHOP","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"I=&TS="},{"domain":".bing.com","expirationDate":1713927226.385193,"hostOnly":false,"httpOnly":false,"name":"SRCHUID","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"V=2&GUID=AFA6F9B7322A4BCBB77225FE8AF4707E&dmnchg=1"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"WLS","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"C=9c3e9c48ad130ae9&N=%e8%b6%8a"}]' proxy="http://172.17.0.1:32935"

[text_to_image]

文字转图片

是否强制开启,设置后所有的消息强制以图片发送,减小风控概率

always = false

字体大小

font_size = 30

图片宽度

width = 700

字体

font_path = "fonts/sarasa-mono-sc-regular.ttf"

[备用模式]起始点 X

offset_x = 50

[备用模式]起始点 Y

offset_y = 50

[trigger]

切换模型的命令

switch_model = "切换模型 (.+)"

允许普通用户切换的模型

allowed_models = ["gpt-3.5-turbo", "gpt-3.5-turbo-0301", "text-davinci-002-render-sha", "text-davinci-002-render-paid"]

允许普通用户切换AI

allow_switching_ai = true

ignore_regex = ['.[\u4e00-\u9fa5].',]

重置会话的命令

reset_command = [ "开启新的会话",]

回滚会话的命令

rollback_command = [ "回滚会话",]

prefix_ai = { "chatgpt-api" = ["gpt"], "bing-c" = ["bing"] }

[response] default_ai = "chatgpt-api" mode = "mixed" buffer_delay = 0 quote = true max_queue_size = 4 queue_full = "抱歉 回复的人很多 建议等一会再发送信息" queued_notice_size = 3 queued_notice = "消息已收到 当前还有{queue_size}条消息要回复,请您稍等" timeout = 60.0 timeout_format = "我还在思考中,请再等一下~" max_timeout = 600 cancel_wait_too_long = "抱歉 过去了10分钟 我还是没能想出这个问题的最终答案 您可以尝试换个问法"

lss233 commented 1 year ago

要先加好友。从日志来看机器人并没有加你好友。

Emvdy commented 1 year ago

要先加好友。从日志来看机器人并没有加你好友。

感谢,已解决