Class: Rodbot::Plugins::WordOfTheDay::Schedule

Inherits:
Object
  • Object
show all
Defined in:
lib/rodbot/plugins/word_of_the_day/schedule.rb

Instance Method Summary collapse

Constructor Details

#initializeSchedule

Returns a new instance of Schedule.



11
12
13
# File 'lib/rodbot/plugins/word_of_the_day/schedule.rb', line 11

def initialize
  Clockwork.every(1.day, -> { Rodbot.say "Word of the day: #{message}" }, at: time)
end