GithubHelp home page GithubHelp logo

xwdit / rainybot-core Goto Github PK

View Code? Open in Web Editor NEW
206.0 3.0 25.0 409.7 MB

新手友好,功能强大,简单易上手的跨平台QQ机器人开发框架

Home Page: https://docs.rainybot.dev

License: GNU Affero General Public License v3.0

GDScript 56.10% Clojure 43.90%
godot gdscript godot-engine mirai-api-http qqbot qq qqrobot qq-bot rainybot mirai

rainybot-core's People

Contributors

cloudwindy avatar xwdit 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

rainybot-core's Issues

关于登录失败问题,不知道是没解决还是配置错误

[2023-04-22 20:52:59] 当前各协议版本日期:
[2023-04-22 20:52:59] ********************************************************
[2023-04-22 20:52:59] Autoreload is disabled because the development mode is off.
[2023-04-22 20:52:59] Application started in 0.036 seconds.
[2023-04-22 20:52:59] Responding at http://127.0.0.1:8080
[2023-04-22 20:52:59] >>> [ws adapter] is listening at ws://127.0.0.1:8080
[2023-04-22 20:52:59] Http api server is running out of verify mode
[2023-04-22 20:52:59] adaptors: [ws]
[2023-04-22 20:52:59] ********************************************************
[2023-04-22 20:52:59] 3 plugin(s) enabled.
[2023-04-22 20:52:59] Auto-login 1693610577, protocol: ANDROID_PAD, heartbeatStrategy: STAT_HB
[2023-04-22 20:53:00] Calculating type 2 PoW, it can take some time....
[2023-04-22 20:53:00] Got PoW result, cost: 88 ms
[2023-04-22 20:55:53] net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(1693610577), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)
[2023-04-22 20:55:53] Error(bot=Bot(1693610577), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)
[2023-04-22 20:55:53] mirai-console started successfully.
[2023-04-22 20:55:53] Bot cancelled: Bot closed
[2023-04-22 20:55:53] Mirai后端账号已退出登录/登录失败,请查看上方日志输出来检查原因
[2023-04-22 20:55:53] 解决此问题后,请使用命令 restart 来重新启动Mirai进程,其将在成功启动后自动与RainyBot建立连接...
[2023-04-22 20:55:53] 当前运行的Mirai进程已退出,退出状态为: 2

机器人无法发送动图和图片

Mirai显示无效参数。
日志如下:
[2022-08-27 11:51:29] 获取到Mirai框架的回应: {"syncId":"847514491", "data":{"code":0, "msg":"success", "messageId":17983}}
[2022-08-27 11:53:23] 成功触发关键词:"生成动图"(解析后:"生成动图"),参数为:""!
[2022-08-27 11:53:23] 正在尝试加载场景文件: C:/Users/wushengyao/Downloads/RainyBot-Core-v2.1-stable-win64-full/plugins/scene_example/example_scene.tscn
[2022-08-27 11:53:23] 正在请求异步加载以下路径的资源: C:/Users/wushengyao/Downloads/RainyBot-Core-v2.1-stable-win64-full/plugins/scene_example/example_scene.tscn
[2022-08-27 11:53:23] 资源异步加载请求成功,开始等待以下路径的资源加载完成: C:/Users/wushengyao/Downloads/RainyBot-Core-v2.1-stable-win64-full/plugins/scene_example/example_scene.tscn
[2022-08-27 11:53:23] 成功异步加载以下路径的资源: C:/Users/wushengyao/Downloads/RainyBot-Core-v2.1-stable-win64-full/plugins/scene_example/example_scene.tscn
[2022-08-27 11:53:23] 成功加载场景文件,并准备好对其内容进行图像获取: C:/Users/wushengyao/Downloads/RainyBot-Core-v2.1-stable-win64-full/plugins/scene_example/example_scene.tscn
[2022-08-27 11:53:23] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 成功基于指定场景中的内容生成图像! 大小为:(128, 128), 背景透明状态为:禁用
[2022-08-27 11:53:24] 正在测试Gif图像数据的生成速度,请稍候.....
[2022-08-27 11:53:24] Gif图像数据生成速度测试完毕!相关数据已保存至该Gif图像实例,以便用于预估生成时长!
[2022-08-27 11:53:24] 正在发送指令请求到Mirai框架:{"syncId":1645817383, "command":"sendFriendMessage", "subCommand":"", "content":{"target":2746194326, "messageChain":[{"type":"MiraiCode", "code":"正在生成动态图片,请稍候...(预计生成时长: 2.72秒)"}], "quote":null}}
[2022-08-27 11:53:24] 本次请求的超时时间为: 20秒
[2022-08-27 11:53:24] 正在生成Gif图像数据,请稍候.....
[2022-08-27 11:53:24] 获取到Mirai框架的回应: {"syncId":"1645817383", "data":{"code":0, "msg":"success", "messageId":17984}}
[2022-08-27 11:53:26] Gif图像数据生成完毕,正在返回生成的数据.....(总用时: 2.267秒)
[2022-08-27 11:53:26] 成功将Gif图像数据储存至文件 C:/Users/wushengyao/Downloads/RainyBot-Core-v2.1-stable-win64-full/cache/gif_image_cache_20810818.gif
[2022-08-27 11:53:26] 成功将GifImage图像实例缓存至文件并构造为图像消息: C:/Users/wushengyao/Downloads/RainyBot-Core-v2.1-stable-win64-full/cache/gif_image_cache_20810818.gif
[2022-08-27 11:53:26] 正在发送指令请求到Mirai框架:{"syncId":104422399, "command":"sendFriendMessage", "subCommand":"", "content":{"target":2746194326, "messageChain":[{"type":"Image", "imageId":null, "url":null, "path":"C:/Users/wushengyao/Downloads/RainyBot-Core-v2.1-stable-win64-full/cache/gif_image_cache_20810818.gif", "base64":null, "height":null, "width":null, "size":null, "isEmoji":null, "imageType":null}], "quote":null}}
[2022-08-27 11:53:26] 本次请求的超时时间为: 20秒
[2022-08-27 11:53:26] 获取到Mirai框架的回应: {"syncId":"104422399", "data":{"code":400, "msg":"无效参数"}}

关于登录时需要滑动验证的解决方案

如果您在登录RainyBot时弹出需要进行滑动验证的提示,请遵循以下步骤:
(2023/04/22更新:请先将您的RainyBot更新至v2.2.2或以上版本后,再遵循以下步骤进行操作)

方案一:

方案二:

提示:

若您通过以上方案依旧无法解决验证问题,或出现“服务连接中”等类似提示,可以尝试在RainyBot根目录/config/mirai_adapter.json 中更换Bot协议后(推荐更换为MACOS协议),再次尝试以上验证方案

【功能请求】可选禁用自带的Mirai后端

我在接触本项目之前就已经在使用Mirai,我不想要再运行一个而是希望使用本项目直接通过mirai-api-http连接我现有的Mirai。
故请求可选禁用自带的Mirai后端 >_<

无法发送语音消息VoiceMessage

"code":500, "msg":"para error"

[2022-08-29 22:51:50] 成功触发关键词:"心海语音"(解析后:"心海语音"),参数为:"你好"!
[2022-08-29 22:51:50] 正在尝试发送Http Get请求到: http://api.qingyunke.com/api.php?key=free&appid=0&msg=%E4%BD%A0%E5%A5%BD
[2022-08-29 22:51:52] 成功从 http://api.qingyunke.com/api.php?key=free&appid=0&msg=%E4%BD%A0%E5%A5%BD 获取到Http请求的返回结果!
[2022-08-29 22:51:52] 成功将Http请求结果获取为字典: {"result":0, "content":"哟~ 都好都好"}
[2022-08-29 22:52:02] 正在发送指令请求到Mirai框架:{"syncId":3875979468, "command":"sendFriendMessage", "subCommand":"", "content":{"target":2746194326, "messageChain":[{"type":"Voice", "voiceId":null, "url":null, "path":"C:/Users/wushengyao/Downloads/results/auto_save.silk", "base64":null, "length":-1}], "quote":29031}}
[2022-08-29 22:52:02] 本次请求的超时时间为: 20秒
[2022-08-29 22:52:03] 获取到Mirai框架的回应: {"syncId":"3875979468", "data":{"code":500, "msg":"para error"}}

寻求登录失败的原因

您好,我在登录过程中遇到了以下的问题:

[2023-05-16 19:27:48] net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(3114937426), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)
[2023-05-16 19:27:48] Error(bot=Bot(xx), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)
[2023-05-16 19:27:48] mirai-console started successfully.
[2023-05-16 19:27:48] Bot cancelled: Bot closed
[2023-05-16 19:27:48] Mirai后端账号已退出登录/登录失败,请查看上方日志输出来检查原因
[2023-05-16 19:27:48] 解决此问题后,请使用命令 restart 来重新启动Mirai进程,其将在成功启动后自动与RainyBot建立连接...
[2023-05-16 19:27:48] 当前运行的Mirai进程已退出,退出状态为: 2

其中Bot(xx),xx为QQ号,我在查看日志后似乎并无特别之处,请问我该如何做,或者我该update什么内容以便您能够解答?

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.