changed message time

master
s00ner 2021-10-14 08:24:00 -04:00
parent 9250e3eb4a
commit a9ec0a6bee
1 changed files with 1 additions and 1 deletions

2
bot.rb
View File

@ -16,7 +16,7 @@ bot = Discordrb::Bot.new token: token
quotes = File.read("Game Files/blurbsx.txt").split("##")
quotes.delete_at(0) # Remove empty first item
scheduler = Rufus::Scheduler.new
start_time = Rufus::Scheduler.parse('08:00') # what time of day the message should send
start_time = Rufus::Scheduler.parse('12:30') # what time of day the message should send
# start tomorrow if start_time has passed
start_time += Rufus::Scheduler.parse('1d') if start_time < Time.now