changed message time
parent
9250e3eb4a
commit
a9ec0a6bee
2
bot.rb
2
bot.rb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue