Sha256: 29259f714c7c098ee9608c1d0dd881d65673c75f10e9f65ed534629d70aa0abe

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

module Ruboty
  class Message
    module ReactionAddedMessage
      def add_reaction(reaction)
        channel_id = @original[:channel]["id"]
        timestamp  = @original[:ts]
        robot.add_reaction(reaction, channel_id, timestamp)
      end

      def reaction
        @original[:reaction]
      end

      def reaction_by
        @original[:reaction_by]
      end

      def dump_original(key)
        Ruboty.logger.info @original[key]
      end
    end

    prepend ReactionAddedMessage
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruboty-slack_reaction_added-0.1.0 lib/ruboty/slack_reaction_added/extension/message.rb