Class: Hipbot::Callbacks::PrivateMessage
- Defined in:
- lib/hipbot/callbacks/private_message.rb
Instance Method Summary collapse
-
#initialize(user_id, message_body) ⇒ PrivateMessage
constructor
A new instance of PrivateMessage.
Constructor Details
#initialize(user_id, message_body) ⇒ PrivateMessage
Returns a new instance of PrivateMessage.
4 5 6 7 8 9 |
# File 'lib/hipbot/callbacks/private_message.rb', line 4 def initialize user_id, with_user(id: user_id) do |user| return if (user, ) Hipbot.react(user, nil, ) end end |