Sha256: bbca1add720bb3262f2b27ce36ad30d283644cea38655d92bf388322af3dfc3f

Contents?: true

Size: 284 Bytes

Versions: 3

Compression:

Stored size: 284 Bytes

Contents

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

        def call
          case message.reaction
          when 'bookmark'
            message.reply(message.permalink)
          end
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruboty-slack_reaction_added-0.5.0 lib/ruboty/slack_reaction_added/actions/permalink.rb
ruboty-slack_reaction_added-0.4.0 lib/ruboty/slack_reaction_added/actions/permalink.rb
ruboty-slack_reaction_added-0.3.0 lib/ruboty/slack_reaction_added/actions/permalink.rb