Sha256: 753cffb888f0e7871d198e4188fe8ff42818c4a292191f795abb668a84eafd05

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

module Ruboty
  module SlackReactionAdded
    module Actions
      class Thumbup < Ruboty::Actions::Base

        def call
          # Ruboty.logger.info message.reaction
          # Ruboty.logger.info message.reaction_by
          unless message.reaction_by == Ruboty::Robot.name
            case message.reaction
            when '+1'
              message.add_reaction('thumbsup')
            end
          end
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruboty-slack_reaction_added-0.5.0 lib/ruboty/slack_reaction_added/actions/thumbup.rb
ruboty-slack_reaction_added-0.4.0 lib/ruboty/slack_reaction_added/actions/thumbup.rb
ruboty-slack_reaction_added-0.3.0 lib/ruboty/slack_reaction_added/actions/thumbup.rb
ruboty-slack_reaction_added-0.2.0 lib/ruboty/slack_reaction_added/actions/thumbup.rb
ruboty-slack_reaction_added-0.1.0 lib/ruboty/slack_reaction_added/actions/thumbup.rb