 #    limitations under the License.
 #
 
-{Adapter} = require 'hubot'
+{Adapter, TextMessage, User} = require 'hubot'
 Symphony = require './symphony'
 {V2Message} = require './message'
 

              @emit 'poll', response.id
            .fail (err) =>
              @robot.emit 'error', new Error("Unable to read datafeed #{response.id}: #{err}")
        @emit 'connected'
        @emit 'poll'
      .fail (err) =>
        @robot.emit 'error', new Error("Unable to create datafeed: #{err}")

    @symphony.createDatafeed()
      .then (response) =>
        @robot.logger.info "Created datafeed: #{response.id}"
        @emit 'connected'
        this.on 'poll', () =>
          @robot.logger.debug "Polling datafeed #{response.id}"
          @symphony.readDatafeed(response.id)
