mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06: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
@ -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…
Reference in New Issue
Block a user