Module: Hipbot::Matchable

Included in:
Bot
Defined in:
lib/hipbot/matchable.rb

Instance Method Summary collapse

Instance Method Details

#react(sender, room, body) ⇒ Object



3
4
5
6
7
# File 'lib/hipbot/matchable.rb', line 3

def react sender, room, body
  message = Message.new(body, room, sender)
  matches = message_matches(message)
  Match.invoke_all(matches)
end

#reactionsObject



9
10
11
# File 'lib/hipbot/matchable.rb', line 9

def reactions
  reaction_sets.flatten
end