add random offset to starting out coin handouts after midnight

This commit is contained in:
mud mud 2022-10-15 07:16:40 +00:00
parent dceabb23c3
commit 0ffc771d09

View File

@ -98,6 +98,7 @@ loop do
# if max coins per day has reached, sleep until midnight # if max coins per day has reached, sleep until midnight
if coins_offered_today >= MAX_COINS_PER_DAY if coins_offered_today >= MAX_COINS_PER_DAY
sleep(get_seconds_to_midnight(Time.now)) sleep(get_seconds_to_midnight(Time.now))
sleep(get_random_hours(0, 11))
coins_offered_today = 0 coins_offered_today = 0
end end
end end