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

[Question]关于元事件的返回 #120

Open
LittleNightmare opened this issue Dec 10, 2020 · 4 comments
Open

[Question]关于元事件的返回 #120

LittleNightmare opened this issue Dec 10, 2020 · 4 comments
Labels
question Further information is requested

Comments

@LittleNightmare
Copy link

在onebot标准中,存在元事件,但并没用规定返回的标准。请问该如何返回?

@a08381
Copy link

a08381 commented Dec 29, 2020

根据我看了几个bot的回复功能的话,元事件一般没有回复,可以说是单向的?

@yyuueexxiinngg yyuueexxiinngg added the question Further information is requested label Jan 26, 2021
@yyuueexxiinngg
Copy link
Owner

不太理解您的意思, 是说对插件发送的meta事件进行回复吗?

meta事件仅为单向通知, 对其返回没用作用, 保持默认返回即可

https://github.com/howmanybots/onebot/blob/master/v11/specs/communication/http-post.md#%E5%BF%AB%E9%80%9F%E6%93%8D%E4%BD%9C

返回 HTTP 响应状态码 204,或保持响应正文内容为空

@LittleNightmare
Copy link
Author

LittleNightmare commented Jan 27, 2021

我去问了下,确认是返回的204,但还是这种报错 #113

这个上游提供者,提供的相关代码
(UVFJ@)9IC$}FMA{G{USI

@yyuueexxiinngg
Copy link
Owner

本地测试无法复现, 考虑是否因为网络波动引起的

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

No branches or pull requests

3 participants