class Ruboty::Actions::Ragoon::Remind

Public Instance Methods

call() click to toggle source
# 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