Class: Ruboty::Hubot::Robot

Inherits:
Object
  • Object
show all
Includes:
Mem, Singleton
Defined in:
lib/ruboty/hubot/robot.rb

Instance Method Summary collapse

Instance Method Details

#receive_all(text) ⇒ Object



10
11
12
13
14
# File 'lib/ruboty/hubot/robot.rb', line 10

def receive_all(text)
  if res_text = robot_context.call("ruboty.receiveAll", text)
    yield res_text if block_given?
  end
end

#receive_mention(text) ⇒ Object



16
17
18
19
20
# File 'lib/ruboty/hubot/robot.rb', line 16

def receive_mention(text)
  if res_text = robot_context.call("ruboty.receiveMention", text)
    yield res_text if block_given?
  end
end