wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.55k stars 229 forks source link

监听信息较多导致机器人部分操作无法执行 #345

Open Hyfred opened 1 year ago

Hyfred commented 1 year ago

之前的测试号用的一个没加什么群的测试号。代码里面写的关键字回复、拉群全都正常。因为好友上限的限制,换了一个大号。大号加的群较多,控制面板上一直在刷监听到的聊天信息。导致有些关键字没能触发机器人的行为。或者只触发了一半。也没报错。不知道大家有没有遇到这个问题。

等信息较少时发关键字一般能触发。有时候就需要发多次才能触发一次。这种情况也不是机器人掉线了。但是定位不到原因在哪。或者有没有办法不监听群信息,可以控制变量试一下效果。

wj-Mcat commented 1 year ago

Yes, I have meet this problem month ago. This issue is from the active status when connecting with the docker gateway, you can use the following solution:

here is my best practice:https://github.com/wechaty/python-wechaty-template