mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Slightly reduce fake delay of discobot user.
Previously it would sleep for either 2 or 3 seconds instead of sleeping between a range of 2 to 3 seconds. Also, 2 to 3 seconds seems to be excessivly long when I tried out discobot again.
This commit is contained in:
parent
180494185c
commit
753477e684
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ module DiscourseNarrativeBot
|
|||
end
|
||||
|
||||
def fake_delay
|
||||
sleep(rand(2..3)) if Rails.env.production?
|
||||
sleep(rand(1.0..2.0)) if Rails.env.production?
|
||||
end
|
||||
|
||||
def bot_mentioned?(post)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue