From 0ffc771d09e480d1f2dac1e84abfc90d28ee795f Mon Sep 17 00:00:00 2001 From: mud mud Date: Sat, 15 Oct 2022 07:16:40 +0000 Subject: [PATCH] add random offset to starting out coin handouts after midnight --- coin.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/coin.rb b/coin.rb index df4cde5..3e34f35 100644 --- a/coin.rb +++ b/coin.rb @@ -98,6 +98,7 @@ loop do # if max coins per day has reached, sleep until midnight if coins_offered_today >= MAX_COINS_PER_DAY sleep(get_seconds_to_midnight(Time.now)) + sleep(get_random_hours(0, 11)) coins_offered_today = 0 end end