Module: Ruboty::SlackRTM::Message

Defined in:
lib/ruboty/slack_rtm/message.rb

Instance Method Summary collapse

Instance Method Details

#add_reaction(reaction) ⇒ Object



6
7
8
9
10
# File 'lib/ruboty/slack_rtm/message.rb', line 6

def add_reaction(reaction)
  channel_id = @original[:channel]["id"]
  timestamp  = @original[:time].to_f
  robot.add_reaction(reaction, channel_id, timestamp)
end