module Ruboty::Action::ReactionAddedAction
Public Instance Methods
allow_reaction?()
click to toggle source
# File lib/ruboty/slack_reaction_added/extension/action.rb, line 17 def allow_reaction? !!@options[:allow_reaction] end
call(handler, message, options = {})
click to toggle source
Calls superclass method
# File lib/ruboty/slack_reaction_added/extension/action.rb, line 4 def call(handler, message, options = {}) if message.reaction if allow_reaction? || reaction_only? # Ruboty.logger.info "reaction" super(handler, message, options) end else unless reaction_only? super(handler, message, options) end end end
reaction_only?()
click to toggle source
# File lib/ruboty/slack_reaction_added/extension/action.rb, line 21 def reaction_only? !!@options[:reaction_only] end