add random offset to starting out coin handouts after midnight
This commit is contained in:
parent
dceabb23c3
commit
0ffc771d09
1
coin.rb
1
coin.rb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user