Class: Rodbot::Plugins::WordOfTheDay::Schedule
- Inherits:
-
Object
- Object
- Rodbot::Plugins::WordOfTheDay::Schedule
- Defined in:
- lib/rodbot/plugins/word_of_the_day/schedule.rb
Instance Method Summary collapse
-
#initialize ⇒ Schedule
constructor
A new instance of Schedule.
Constructor Details
#initialize ⇒ Schedule
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 |