Class: Lita::Handlers::MessageRouter
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::MessageRouter
- Defined in:
- lib/lita/handlers/message_router.rb
Instance Method Summary collapse
Instance Method Details
#match(message) ⇒ Object
20 21 22 23 24 |
# File 'lib/lita/handlers/message_router.rb', line 20 def match() regex = Regexp.new('^(' + config.robot_mention_names.join('|') + ') (.+)') matches = .match(regex) matches[2] if matches end |