lib/chatterbot/bot.rb
def run!
      before_run

      HANDLER_CALLS.each { |c|
        if (h = @handlers[c])
          send(c, *(h.opts)) do |obj|
            h.call(obj)
          end
        end
      }

      after_run
    end
def run!
      before_run

      HANDLER_CALLS.each { |c|
        if (h = @handlers[c])
          send(c, *(h.opts)) do |obj|
            h.call(obj)
          end
        end
      }

      after_run
    end
def run! before_run HANDLER_CALLS . each { | c | if ( h = @handlers [ c ] ) send ( c , ( h . opts ) ) do | obj | h . call ( obj ) end end } after_run end
run the bot with the REST API
run the bot with the REST API