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

刚刚发现信息回复好迟钝 #71

Closed
wordgao opened this issue Dec 5, 2022 · 6 comments
Closed

刚刚发现信息回复好迟钝 #71

wordgao opened this issue Dec 5, 2022 · 6 comments

Comments

@wordgao
Copy link

wordgao commented Dec 5, 2022

刚刚发现信息回复好迟钝,答复的信息要等半天才反应过来。

@fumiama
Copy link
Collaborator

fumiama commented Dec 5, 2022

新版本默认有1s的全局延时以防风控,你可以通过更改config的Latency参数做出调整。

ZeroBot/bot.go

Lines 57 to 59 in 5d40c00

if op.Latency == 0 {
op.Latency = time.Second
}

@fumiama fumiama closed this as completed Dec 5, 2022
@wordgao
Copy link
Author

wordgao commented Dec 6, 2022

感觉不是有1s的延迟,这个延迟时间是不是信息多少,就会累计多少。发现信息N多的时候,以及连续发送关键字的时候,信息都并不是延时1s,发现这个时间好像会累加。。

@wordgao
Copy link
Author

wordgao commented Dec 6, 2022

刚刚关注延时答复的事件达到了10分钟+

@wordgao
Copy link
Author

wordgao commented Dec 6, 2022

信息多的状态下,延时的事件可能会累加,信息少的情况下,基本上是正常的。

@fumiama
Copy link
Collaborator

fumiama commented Dec 6, 2022

是啊,因为我们要模拟人的行为。人是不可能同时看所有消息,并且对每一条消息均延迟1s回复的。这样一来消息仅仅是延迟了1s触发,也就是说1s后回复时仍是同时回复所有消息。人在看消息时,同时只能看一条消息,并对一条消息回复。如果想减小这个时间,你只需要调小Latency

@wordgao
Copy link
Author

wordgao commented Dec 6, 2022

好吧,我在关注一下吧。

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