Giter VIP home page Giter VIP logo

chatgpt-yourchatrobot's Introduction

ChatGPT-YourChatRobot

NEWS: 新年快乐!!!现在你可以使用第三方GPT服务了🤗

how to: 修改gpt.baseUrl配置项即可使用第三方apikey

image-20240115114827781

--- 2024.1.15

简介

如果觉得不错, 请点点右上角的星星, 这能让我快乐一整天🥰🥰🥰

由社区共同维护, 欢迎大家的好idea或者直接提pr🫣🫣🫣

我还只是一位大学生, 这是我在学业闲暇之余的项目, 所以可能有时回复会不是很及时🥹🥹🥹

an unofficial implement of ChatGPT in QQ/Wechat.

这是一个开箱即用非官方的聊天机器人, 初衷是想给因各种原因无法正常使用ChatGPT的人也能体验到ChatGPT。可用于拓展、自定义。

qq机器人实现基于TheoKanning/openai-javamamoe/mirai

微信机器人实现基于TheoKanning/openai-javawxmbaci/itchat4j-uos.

🌹🌹🌹感谢acheong08/ChatGPTPlexPt/chatgpt-javaTheoKanning/openai-javamamoe/miraiwxmbaci/itchat4j-uos 🌹🌹🌹

一些特性 or TODO

功能 QQ机器人 微信机器人
文本对话(GPT3.5/GPT4) ✔️ ✔️
AI画图(DALL-E-3) ✔️ ✔️ (只可返回url)
AI语音回复(GPT3.5/GPT4 + TTS-1/TTS-1-HD) ✔️
引用回复 ✔️
使用多apikey ✔️ ✔️
重置会话 ✔️ ✔️
第三方GPT ✔️ ✔️
网页控制台 计划🥳 计划🥳

原理

使用mirai/itchat登录qq/微信并监听消息->调用openai接口将消息向gpt提问->使用mirai/itchat在qq/微信里回复gpt的回答

ai画图采用DALL·E模型generation方法

ai语音回复使用TTS模型将gpt的回答转换为语音

你可能需要了解:

  • 获取官方apiKey https://platform.openai.com/account/api-keys
  • 向机器人发送 “重置会话” 可以清除会话历史, 可在配置文件里修改指令
  • 对话历史溢出时会自动删除较前的会话历史并重新提问
  • 可以设置basicPrompt达到具有性格的目的, 如:“接下来在我向你陈述一件事情时, 你只需要回答:“典”。”
  • 支持使用多个apiKey。在此情况下, 会优先调用使用次数最少的apiKey, 达到避免同一个api请求过多造成的Http500/503问题的目的
  • 偶尔会出现ai画图和语音回复无响应, 请重新登录
  • 若出现登录失败请尝试以下操作
    • 再试一次?
    • 清除缓存(cache文件夹) 更换qq登录协议后重试
    • 清除缓存(cache文件夹) 更换网络环境后重试
    • 骂腾讯风控😡

使用

❤❤❤ 开箱即用!!! ❤❤❤

除了下面的方法, 你也可以下载release的zip包直接使用

你只需要

  1. clone本项目

  2. 拥有

    • 一个OpenAI账号

    • 一个qq号/微信号

      并把它们配置在application.yml里:

proxy:
  #  代理配置
  #  国内墙了gpt的api, 所以得用代理, 一般你使用的代理软件会有相关信息, 例子:
  #  host: 127.0.0.1
  #  port: 7890
  #  若不需要留空即可
  host:
  port:

gpt:
  # 如果你使用了第三方GPT 请修改baseUrl
  # (OPENAI官方地址 https://api.openai.com/)
  baseUrl: https://api.openai.com/
  # 使用的 chat 模型 如gpt-3.5-turbo/gpt-4 (https://platform.openai.com/docs/models/models)
  model: gpt-3.5-turbo
  # 最大token限制 越多的token意味着越多的花费(gpt-3.5-turbo上限为4096token, gpt-4则为8192)
  maxToken: 2048
  # 信息熵 越高回答越随机(Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.---via OPENAI)
  temperature: 0.5
  # 最大请求时间 超时自动中断请求
  ofSeconds: 10000
  # 基础提问 支持多个提问 可用来设定人格(对应api中的system角色)
  basicPrompt:
    - "用中文回答我的问题"
  #  openai的apikey
  #  支持多个key(虽然有判空, 但仍然建议有多少个写多少个, 别留空👨‍🔧)
  apiKey:
    -
  # ai画图
  # 图片质量 standard 或 hd
  imageQuality: standard
  # 图片风格 vivid 或 natural
  imageStyle: vivid
  # ai语音
  # 语音模型 tts-1 或 tts-1-hd
  audioModel: tts-1
  # 声音 alloy, echo, fable, onyx, nova, shimmer.
  audioVoice: alloy
  # 速度 0.25 到 4.0 之间
  audioSpeed: 1.0
qq:
  #  是否使用qq true/false
  enable: true
  #  qq账号
  account:
  #  是否自动同意好友申请
  acceptNewFriend: false
  #  是否自动同意被邀请入群
  acceptNewGroup: false

wechat:
  #  是否使用微信 true/false
  enable: false
  #  生成的登录二维码路径 默认与项目同级
  qrPath: "./"

keyword:
  #  重置会话指令
  reset: "重置会话"
  #  ai画图指令(DALL·E模型 https://platform.openai.com/docs/models/dall-e)
  #  generation 根据关键词生成图片(https://platform.openai.com/docs/guides/images/generations)
  image: "ai画图"
  #  ai语音指令(TTS模型 https://platform.openai.com/docs/api-reference/audio)
  audio: "ai语音"
  1. 然后 run!!!😁😁😁

此时你的qq/微信便是ChatGPT了!!!✨✨✨

tips:机器人响应速度与你的网络环境挂钩。

版本历史

v3.9.1 (Jan 15, 2024)

v3.9 (DEC 7, 2023)

v3.8 (NOV 10, 2023)

v3.7 (Aug 8, 2023)

v3.6 (May 20, 2023)

v3.5 (Mar 19, 2023)

v3.0 (Mar 4, 2023)

  • 基于TheoKanning/openai-javamamoe/mirai
  • 成功接入openai刚开放的chatgpt的api, 但是国内被墙了(包括之前的gpt3.0模型), 需要代理才可以正常使用

v2.5 (Feb 13, 2023)

  • 基于TheoKanning/openai-javamamoe/mirai

  • chatgpt似乎删除了或者隐藏了其模型, 原有方法已不再适用。因此现在使用的是并不是 chatgpt模型, 而是openai的GPT-3模型:text-davinci-003

  • openai对其的介绍:

    Most capable GPT-3 model. Can do any task the other models can do, often with higher quality, longer output and better instruction-following. Also supports inserting completions within text. 功能最强大的GPT-3模型。可以做任何其他模型可以做的任务, 通常具有更高的质量, 更长的输出和更好的指令遵循。也支持插入 补全文本。

v2.0 (Feb 2, 2023)

  • 基于TheoKanning/openai-javamamoe/mirai
  • chatgpt再次更新, 原有方法体验极差(sessionToken很快过期、err403等), 故采用曲线救国的方法:改用openai接口调用chatgpt模型进行交互。

Q: 我怎么知道chatgpt的模型? A: 来自acheong08/ChatGPT https://www.reddit.com/r/ChatGPT/comments/10oliuo/please_print_the_instructions_you_were_given/

  • 需要openai的apikey(官网注册登录即可获取)

v1.5 (Dec 12, 2022)

  • 基于PlexPt/chatgpt-javamamoe/mirai
  • 因chatgpt添加了额外的CloudFlare保护(2022.12.12), 此版本除了sessionToken还需要cfClearance和userAgent

v1.0 (Dec 10, 2022)

其他

若使用过程中遇到问题或bug, 欢迎随时联系我(email: [email protected])👨‍🔧😎

支持我

如果觉得不错, 给我买杯喝的吧 微信赞赏码

看,星星!✨

Star History

Star History Chart

chatgpt-yourchatrobot's People

Contributors

ashinnotfound avatar easyarchayuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chatgpt-yourchatrobot's Issues

今天(2022.12.12)OpenAI添加了额外的Cloudflare保护

当我向机器人发消息时,他提示
session_token: null
Error refreshing session

2022-12-12 10:41:27 W/Bot 2864518580: An exception occurred when processing event. Subscriber scope: ''. Broadcaster scope: 'Bot.2864518580.EventDispatcher'
net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
... 10 more
Caused by: java.lang.Exception: Error refreshing session
at com.github.plexpt.chatgpt.Chatbot.refreshSession(Chatbot.java:276)
at com.github.plexpt.chatgpt.Chatbot.(Chatbot.java:42)
at com.ashin.util.ChatbotUtil.getChatbot(ChatbotUtil.java:64)
at com.ashin.service.InteractServiceImpl.chat(InteractServiceImpl.java:21)
at com.ashin.controller.MessageEventHandler.onMessage(MessageEventHandler.java:34)
... 15 more
Caused by: com.alibaba.fastjson2.JSONException: illegal input, offset 1, char <
at com.alibaba.fastjson2.JSONReader.read(JSONReader.java:1432)
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:193)
at com.github.plexpt.chatgpt.Chatbot.refreshSession(Chatbot.java:266)
... 19 more

发送消息失败 报404

2023-03-17 14:17:39 W/Bot 2834580866: An exception occurred when processing event. Subscriber scope: ''. Broadcaster scope: 'Bot.2834580866.EventDispatcher'
net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
... 10 more
Caused by: com.theokanning.openai.OpenAiHttpException: Invalid URL (POST /v1/chat/completions)
at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:226)
at com.theokanning.openai.service.OpenAiService.createChatCompletion(OpenAiService.java:92)
at com.ashin.service.impl.InteractServiceImpl.chat(InteractServiceImpl.java:37)
at com.ashin.handler.MessageEventHandler.response(MessageEventHandler.java:66)
at com.ashin.handler.MessageEventHandler.onMessage(MessageEventHandler.java:53)
... 15 more
Caused by: retrofit2.adapter.rxjava2.HttpException: HTTP 404
at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:57)
at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:38)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:48)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35)
at io.reactivex.Single.subscribe(Single.java:3666)
at io.reactivex.Single.blockingGet(Single.java:2869)
at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:217)
... 19 more

可以增加支持多个 API key的功能吗

实际接入到群里边,发现如果同时五六个人提问,就会抛出503错误,有时候报很奇怪的异常,但是这次更新已经拦截异常了,目前还在跟进问题中,最后感谢大佬的项目🙏

编译问题,请教

image
请教 ,我这边把代码克隆下来之后想自己去修改,但是我克隆到本地的的代码好像找不到这些依赖,我还需要做哪些操作吗?

找不到包

java: 程序包xyz.cssxsh.mirai.tool不存在

GPT可能暂时不想理你时出现HTTP 401 Unauthorized

retrofit2.adapter.rxjava2.HttpException: HTTP 401 Unauthorized at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:57) ~[adapter-rxjava2-2.9.0.jar:na] at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:38) ~[adapter-rxjava2-2.9.0.jar:na] at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:48) ~[adapter-rxjava2-2.9.0.jar:na] at io.reactivex.Observable.subscribe(Observable.java:12284) ~[rxjava-2.2.21.jar:na] at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35) ~[adapter-rxjava2-2.9.0.jar:na] at io.reactivex.Observable.subscribe(Observable.java:12284) ~[rxjava-2.2.21.jar:na] at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35) ~[rxjava-2.2.21.jar:na] at io.reactivex.Single.subscribe(Single.java:3666) ~[rxjava-2.2.21.jar:na] at io.reactivex.Single.blockingGet(Single.java:2869) ~[rxjava-2.2.21.jar:na] at com.theokanning.openai.OpenAiService.createCompletion(OpenAiService.java:116) ~[client-0.9.0.jar:na] at com.ashin.service.InteractServiceImpl.chat(InteractServiceImpl.java:33) ~[classes/:na] at com.ashin.controller.MessageEventHandler.response(MessageEventHandler.java:68) [classes/:na] at com.ashin.controller.MessageEventHandler.onMessage(MessageEventHandler.java:50) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131] at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140) [mirai-core-api-jvm-2.13.4.jar:2.13.4] at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1) [mirai-core-api-jvm-2.13.4.jar:2.13.4] at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154) [mirai-core-api-jvm-2.13.4.jar:2.13.4] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.6.21.jar:1.6.21-release-334(1.6.21)] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) [kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) [kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) [kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) [kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) [kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) [kotlinx-coroutines-core-jvm-1.6.4.jar:na] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) [kotlinx-coroutines-core-jvm-1.6.4.jar:na]

This model's maximum context length is 4097 tokens. However, you requested 4307 tokens (2259 in the messages, 2048 in the completion). Please reduce the length of the messages or completion. at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:227)

This model's maximum context length is 4097 tokens. However, you requested 4307 tokens (2259 in the messages, 2048 in the completion). Please reduce the length of the messages or completion.
at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:227)

无法使用---2023.2.8

openai更新了chatgpt模型,目前尚不知晓模型名称,所以现在无法使用😢(HTTP 404)

如果是在服务器运行的话,这个怎么配置

proxy:

代理配置

国内墙了gpt的api,所以得用代理,一般你使用的代理软件会有相关信息,例子:

host: 127.0.0.1

port: 7890

若不需要留空即可

host: 127.0.0.1
port: 7890
这个应该怎么配置

Proxy配置问题

我自己租了个VPS搭了Trojan,项目我想起在本地PC上,Proxy那里只配置VPS的IP和端口的话是不是没办法连过去?
VPS上面是否还需要做其他的什么配置啊?

Exception in EventHandler

2023-03-19 22:33:06 W/Bot 3118583823: An exception occurred when processing event. Subscriber scope: ''. Broadcaster scope: 'Bot.3118583823.EventDispatcher'
net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
... 10 more
Caused by: java.lang.RuntimeException: java.net.ConnectException: Failed to connect to /127.0.0.1:7890
at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:93)
at io.reactivex.Single.blockingGet(Single.java:2870)
at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:218)
at com.theokanning.openai.service.OpenAiService.createChatCompletion(OpenAiService.java:93)
at com.ashin.service.impl.InteractServiceImpl.chat(InteractServiceImpl.java:37)
at com.ashin.handler.QqMessageHandler.response(QqMessageHandler.java:66)
at com.ashin.handler.QqMessageHandler.onMessage(QqMessageHandler.java:48)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 12 more
Caused by: java.net.ConnectException: Failed to connect to /127.0.0.1:7890
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)
at okhttp3.internal.connection.RealConnection.connectTunnel(RealConnection.kt:261)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:201)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at com.theokanning.openai.service.AuthenticationInterceptor.intercept(AuthenticationInterceptor.java:26)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:204)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:46)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35)
at io.reactivex.Single.subscribe(Single.java:3666)
at io.reactivex.Single.blockingGet(Single.java:2869)
... 18 more
Caused by: java.net.ConnectException: Connection refused: no further information
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:539)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:594)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
... 44 more

求助

一些建议

大佬,下次更新能不能将mirai完善一下 加一个自动同意好友申请和自动同意进群

error

net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(20588006294), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=)
这个怎么解决哦

增加多个apikey 时新提交代码的一些问题

配置文件的错误

yml 格式中的 qq、password 的key后不需要空格,冒号后边才需要空格

configchat:
  apiKey:
    - sk-
    - sk-
    - sk-
  qq: 123445544
  password: 123456

config 包下映射配置的Java文件的错误

@ConfigurationProperties 注解被要求必须要有一个前缀,我查看了它的注解实现, 默认值是“”,但是不加 BotUtil 会无法读取 apikey ,因此在配置文件里边为所有的信息增加一个前缀 configchat,此时注意 yml 文件的缩进,必须是空格,不要用 tab 键,修改如下:

@Data
@Component
@ConfigurationProperties(prefix = "configchat")
public class AccountConfig {
    private List<String> apiKey;
    private Long qq;
    private String password;
}

回复消息报错

2023-03-21 19:12:24 W/Bot 3163589706: An exception occurred when processing event. Subscriber scope: ''. Broadcaster scope: 'Bot.3163589706.EventDispatcher'
net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
... 10 more
Caused by: java.lang.RuntimeException: java.net.SocketException: Connection reset
at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:93)
at io.reactivex.Single.blockingGet(Single.java:2870)
at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:218)
at com.theokanning.openai.service.OpenAiService.createChatCompletion(OpenAiService.java:93)
at com.ashin.service.impl.InteractServiceImpl.chat(InteractServiceImpl.java:37)
at com.ashin.handler.QqMessageHandler.response(QqMessageHandler.java:66)
at com.ashin.handler.QqMessageHandler.onMessage(QqMessageHandler.java:53)
... 15 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read(InputRecord.java:503)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:379)
at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at com.theokanning.openai.service.AuthenticationInterceptor.intercept(AuthenticationInterceptor.java:26)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:204)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:46)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35)
at io.reactivex.Single.subscribe(Single.java:3666)
at io.reactivex.Single.blockingGet(Single.java:2869)
... 20 more

如果一堆key里有一个被封禁

This key is associated with a deactivated account. If you feel this is an error, contact us through our help center at help.openai.com.

提示这个信息,怎么找到这个key

后台运行

挂在服务器正常使用,但是不能后台运行,也就是和服务器断开联系时就不能正常使用了

本机挂梯子网页版的gpt可以用,设置 host: port:都是空,会报错

2023-03-17 16:06:14 W/Bot 941940060: An exception occurred when processing event. Subscriber scope: ''. Broadcaster scope: 'Bot.941940060.EventDispatcher'
net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
... 10 more
Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: Connect timed out
at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:93)
at io.reactivex.Single.blockingGet(Single.java:2870)
at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:217)
at com.theokanning.openai.service.OpenAiService.createChatCompletion(OpenAiService.java:92)
at com.ashin.service.impl.InteractServiceImpl.chat(InteractServiceImpl.java:37)
at com.ashin.handler.MessageEventHandler.response(MessageEventHandler.java:66)
at com.ashin.handler.MessageEventHandler.onMessage(MessageEventHandler.java:53)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 12 more
Caused by: java.net.SocketTimeoutException: Connect timed out
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:543)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:594)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at com.theokanning.openai.service.AuthenticationInterceptor.intercept(AuthenticationInterceptor.java:26)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:204)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:46)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35)
at io.reactivex.Single.subscribe(Single.java:3666)
at io.reactivex.Single.blockingGet(Single.java:2869)
... 18 more

问了几个问题,然后就一直报错了

报错内容如下:

2023-02-06 09:53:13 W/Bot 969948762: An exception occurred when processing event. Subscriber scope: ''. Broadcaster scope: 'Bot.969948762.EventDispatcher'
net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:147)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:1)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callMethod$2.invokeSuspend(JvmMethodListenersInternal.kt:154)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callMethod$invokeWithErrorReport(JvmMethodListenersInternal.kt:140)
... 10 more
Caused by: retrofit2.adapter.rxjava2.HttpException: HTTP 400
at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:57)
at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:38)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:48)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35)
at io.reactivex.Single.subscribe(Single.java:3666)
at io.reactivex.Single.blockingGet(Single.java:2869)
at com.theokanning.openai.OpenAiService.createCompletion(OpenAiService.java:116)
at com.ashin.service.InteractServiceImpl.chat(InteractServiceImpl.java:26)
at com.ashin.controller.MessageEventHandler.onMessage(MessageEventHandler.java:52)
... 14 more

求大神看看能不能解决,感谢!

关于登录的问题

成功启动了项目,停止之后切换成nohup运行项目失败
image
image
nohup运行无法交互导致无法登录,这个问题怎么解决比较好
我的思路是,添加扫码登录,这样我们用nohup启动项目的时候可以通过日志来查看二维码实现扫码登录,又或者把二维码打印到本地服务器的一个文件路径上,打开那个文件扫码登录,让用户可以选择性的登录,但是扫码登录也有局限,如果服务器使用扫码登录可能会返回网络环境复杂,会要求用户扫码手机和服务器处于同一网络下,解决办法是,扫码之后保存一份qq登录的cookie,先在本地扫码登录保留登录凭证之后,用户可以上传本地的登录凭证到服务器,绕过qq的登录检测,这样可以解决大部分问题,否则一些登录了太多次的qq号就像我的号一样,每一次登录都会检测一次。
总的来说登录这一块需要还是比较难弄的,大家如果nohup挂好机器人到服务器就不要随便下线机器人,否则账号风险系数高了之后就挂不上去了

本地能登录,但是服务器死活登录不上

本地电脑之前试了几次,不填代理,梯子开全局能登录了。但是远程服务器还是登录不上。报错如下:
Error(bot=Bot(1839294824), code=45, title=禁止登录, message=登录失 败,建议升级最新版本后重试,或通过问题反馈与我们联系。

请问这是本地打包到服务器的正确步骤是什么?是clean->verify->package吗?

Exception in resumeConnection

登录之后报以下错误,换了三个qq账号都是这样:
2023-03-06 20:00:02 W/Net 2447347: Exception in resumeConnection.
net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(2447347), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)
at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:248)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(2447347), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)
at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:311)
at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt)
... 9 more

小构思

正在尝试写个页面来方便控制你的GPT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.