多个bot在同一个群时got装饰器的matcher获取的bot不符合预期 #528
Answered
by
yanyongyu
jerry-harm
asked this question in
问答
-
|
我试图用一个nonebot服务器控制两个bot在同一个群里实现不同的功能,但是当触发其中一个bot时如果用了got方法,matcher有概率使用另一个bot进行消息发送,不知道这个是否是可以控制的 |
Beta Was this translation helpful? Give feedback.
Answered by
yanyongyu
Oct 25, 2024
Replies: 1 comment
-
|
由于两个bot在同一个群,一个事件会收到两次。你可以通过permission updater来自定义会话流程中的下一次响应条件,检查event中的self_id。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jerry-harm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
由于两个bot在同一个群,一个事件会收到两次。你可以通过permission updater来自定义会话流程中的下一次响应条件,检查event中的self_id。