Class: Bot::BotController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/bot/bot_controller.rb

Instance Method Summary collapse

Instance Method Details

#notifyObject



4
5
6
7
8
# File 'app/controllers/bot/bot_controller.rb', line 4

def notify
  @responses = bot_handler.handle(messages).compact
  adapter.send_messages(@responses, bot_username) if @responses.present?
  render json: []
end