Sha256: 3ac713d848806e95a9f2f90b1e84290e4164d32d438397938ac29b2869005efe

Contents?: true

Size: 354 Bytes

Versions: 10

Compression:

Stored size: 354 Bytes

Contents

module Ruboty::Actions::Ragoon
  class Remind < ::Ruboty::Actions::Base
    include ::Ruboty::Actions::Ragoon

    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
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruboty-ragoon-1.1.0 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-1.0.0 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-0.8.1 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-0.8.0 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-0.7.0 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-0.6.1 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-0.6.0 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-0.5.2 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-0.5.1 lib/ruboty/actions/ragoon/remind.rb
ruboty-ragoon-0.5.0 lib/ruboty/actions/ragoon/remind.rb