fix coin state active

This commit is contained in:
mud mud 2022-10-10 19:47:09 +00:00
parent ed0f5d33e7
commit 339f42234a

View File

@ -64,16 +64,13 @@ end
bot.run(true)
loop do
# activate coin state
coin_state_active = true
# sleep random amount of time between 1 and 4 hours
sleep(get_random_hours(1, 4))
# activate coin state
coin_state_active = true
# send coin GIF
bot.send_file(ENV['BOT_CHANNEL'], File.open('./coin.gif', 'r'))
coins_offered_today += 1
sleep(1)
# if max coins per day has reached, sleep until midnight
if coins_offered_today >= MAX_COINS_PER_DAY