Class: Lita::Handlers::OnewheelHttpIrcGateway
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::OnewheelHttpIrcGateway
- Defined in:
- lib/lita/handlers/onewheel_http_irc_gateway.rb
Instance Method Summary collapse
Instance Method Details
#yo(request, response) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/lita/handlers/onewheel_http_irc_gateway.rb', line 8 def yo(request, response) response.body << request.params['text'] robot = request.env['lita.robot'] source = Lita::Source.new(user: nil, room: '#pdxbots') robot.(source, request.params['text'][0..100]) end |