Class: Ruboty::SlackReactionAdded::Actions::Permalink

Inherits:
Actions::Base
  • Object
show all
Defined in:
lib/ruboty/slack_reaction_added/actions/permalink.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
# File 'lib/ruboty/slack_reaction_added/actions/permalink.rb', line 7

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