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

onebotv11下 另一个客户端上发送的信息没被记录 #60

Open
jerry-harm opened this issue Oct 25, 2024 · 5 comments
Open

onebotv11下 另一个客户端上发送的信息没被记录 #60

jerry-harm opened this issue Oct 25, 2024 · 5 comments

Comments

@jerry-harm
Copy link

在另一端发送的消息也以message_sent event形式上报了但是没有被记录到数据库

@jerry-harm jerry-harm changed the title 另一个客户端上发送的信息没被记录 QQ适配器下 另一个客户端上发送的信息没被记录 Oct 25, 2024
@jerry-harm jerry-harm changed the title QQ适配器下 另一个客户端上发送的信息没被记录 onebotv11下 另一个客户端上发送的信息没被记录 Oct 25, 2024
@jerry-harm
Copy link
Author

jerry-harm commented Oct 25, 2024

@MeetWq
Copy link
Member

MeetWq commented Oct 25, 2024

不太明白,什么情况下没有调用消息发送api也有message_sent事件?

@jerry-harm
Copy link
Author

jerry-harm commented Oct 25, 2024

不太明白,什么情况下没有调用消息发送api也有message_sent事件?

当我运行bot的同时在另一个设备也登陆正常使用,我在另一个设备上发消息,运行bot的客户端也能接收到这个消息的发送事件,napcat和llonebot事实上也可以接受到这个事件并上报,这个上报也是以message_sent事件

@jerry-harm
Copy link
Author

可以参考一下这个
https://github.com/orgs/nonebot/discussions/399

@jerry-harm
Copy link
Author

jerry-harm commented Oct 31, 2024

这是一段基于event触发的函数用于替代原来的记录函数
https://github.com/nuist-engineer-lion/Helpdesk-Chatbot/blob/main/src/plugins/csts/record.py

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

2 participants