Sha256: 1d6e9483ff57e6d349ed2a4e20a2237cdae4c471b281973176c3197cc3ddc8e3

Contents?: true

Size: 365 Bytes

Versions: 1

Compression:

Stored size: 365 Bytes

Contents

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

        def call
          unless message.reaction_by == message.robot.name
            case message.reaction
            when 'bookmark'
              message.reply(message.permalink)
            end
          end
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruboty-slack_reaction_added-0.6.0 lib/ruboty/slack_reaction_added/actions/permalink.rb