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:
Guo Xiang Tan 2020-07-13 09:08:31 +08:00
parent 180494185c
commit 753477e684
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -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)