Class: Responders::Default

Inherits:
ApplicationResponder show all
Defined in:
lib/generators/bot/install/templates/default_responder.rb

Instance Attribute Summary

Attributes inherited from Bot::Responder

#analytics, #chat_context, #handler, #message, #responses, #user, #user_context

Instance Method Summary collapse

Methods inherited from Bot::Responder

#can_respond_to_type?, #initialize, respond_to

Constructor Details

This class inherits a constructor from Bot::Responder

Instance Method Details

#can_handle?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/generators/bot/install/templates/default_responder.rb', line 5

def can_handle?
  true
end

#handleObject



9
10
11
# File 'lib/generators/bot/install/templates/default_responder.rb', line 9

def handle
  text_response('Hello!')
end