Class: Lita::Handlers::Clever

Inherits:
Handler
  • Object
show all
Defined in:
lib/lita/handlers/clever.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_config(handler_config) ⇒ Object



11
12
# File 'lib/lita/handlers/clever.rb', line 11

def self.default_config(handler_config)
end

Instance Method Details

#clever(response) ⇒ Object



14
15
16
17
# File 'lib/lita/handlers/clever.rb', line 14

def clever(response)
  bot = CleverBot.new
  response.reply bot.think response.matches[0][0]
end