Class: Hipbot::Callbacks::RoomMessage
- Defined in:
- lib/hipbot/callbacks/room_message.rb
Instance Method Summary collapse
-
#initialize(room_id, user_name, message_body, topic) ⇒ RoomMessage
constructor
A new instance of RoomMessage.
Constructor Details
#initialize(room_id, user_name, message_body, topic) ⇒ 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, , topic with_room(id: room_id) do |room| update_topic(room, topic) with_user(name: user_name) do |user| return if (user, ) Hipbot.react(user, room, ) end end end |