Class: Hipbot::Callbacks::RoomMessage
- Defined in:
- lib/hipbot/callbacks/room_message.rb
Instance Method Summary collapse
-
#initialize(room_id, user_name_or_mention, message_body) ⇒ RoomMessage
constructor
A new instance of RoomMessage.
Constructor Details
#initialize(room_id, user_name_or_mention, message_body) ⇒ RoomMessage
Returns a new instance of RoomMessage.
4 5 6 7 8 9 10 11 12 |
# File 'lib/hipbot/callbacks/room_message.rb', line 4 def initialize room_id, user_name_or_mention, with_room(id: room_id) do |room| with_user_by_name_or_mention(user_name_or_mention) do |user| return if (user, ) Hipbot.react(user, room, ) end end end |