Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[建议] 检查所有扩展API,使其符合 Onebot 通信规范 #522

Open
MrXiaoM opened this issue Feb 7, 2025 · 0 comments
Open

[建议] 检查所有扩展API,使其符合 Onebot 通信规范 #522

MrXiaoM opened this issue Feb 7, 2025 · 0 comments

Comments

@MrXiaoM
Copy link

MrXiaoM commented Feb 7, 2025

https://github.com/botuniverse/onebot-11/blob/master/communication/ws.md

客户端向 OneBot 发送 JSON 之后,OneBot 会往回发送一个调用结果... 例如,HTTP 返回 404 的情况,对应到 WebSocket 的回复,是:

{
    "status": "failed",
    "retcode": 1404,
    "data": null,
    "echo": "123"
}

MrXiaoM/Overflow#118
MrXiaoM/Overflow#125

在技术上,我可以做相关的兼容,但我不愿意因为你一个人不遵守规范而增加无用的工作。请自查 Gensokyo 的所有扩展 API,检查其是否符合 Onebot 规范。

省流:你就不能把返回数据按 Onebot 规范放 data 里吗,平铺到根标签就不说了,还漏 status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant