Sha256: dff2b4b6167b18cea7535bb4834989a02224c66df0d1c1b35ea07333f7270457

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

module Ruboty
  module Handlers
    class Ragoon < Base
      on(/grn event(?<date>\Z|\s+.+)/, name: 'schedule', description: 'retrieve schedule from garoon')
      on(/grn notice/, name: 'notification',  description: 'show new notification from garoon')

      def schedule(message)
        ::Ruboty::Actions::Event.new(message).call
      end

      def notification(message)
        ::Ruboty::Actions::Notification.new(message).call
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruboty-ragoon-0.3.1 lib/ruboty/handlers/ragoon.rb
ruboty-ragoon-0.3.0 lib/ruboty/handlers/ragoon.rb