Class: Ruboty::Actions::Ragoon::Remind

Inherits:
Base
  • Object
show all
Includes:
Ruboty::Actions::Ragoon
Defined in:
lib/ruboty/actions/ragoon/remind.rb

Instance Method Summary collapse

Methods included from Ruboty::Actions::Ragoon

#private?

Instance Method Details

#callObject



5
6
7
8
9
10
11
# File 'lib/ruboty/actions/ragoon/remind.rb', line 5

def call
  reminder = ::Ruboty::Ragoon::Remind.new(message.robot.brain)
  events = reminder.retrieve
  if events.count > 0
    message.reply(events.render(private: private?, template: 'remind'))
  end
end