     tokensecret : process.env.HUBOT_TWITTER_TOKEN_SECRET
    bot = new TwitterStreaming(options)
 
-   bot.tweet self.robot.name, (err, data) ->
+   bot.tweet self.robot.name, (data, err) ->
      reg = new RegExp('@'+self.robot.name,'i')
      console.log "received #{data.text} from #{data.user.screen_name}"
 
      message = data.text.replace reg, self.robot.name
      console.log "hubot command: #{message}"
 
-     self.receive new Robot.TextMessage data.user.screen_name, message
+     self.receive new TextMessage data.user.screen_name, message
      if err
        console.log "received error: #{err}"
 

       data = data.slice(index + 2)
       if json.length > 0
          try
             console.log "json"+json
             callback null, JSON.parse(json)
          catch err
             console.log "error parse"+json
             callback null, data || { }

       @bot.send(user,tweetText)

 reply: (user, strings...) ->
   console.log "Replying"
   strings.forEach (text) =>
       console.log text
       @bot.send(user,text)
 
 command: (command, strings...) ->
    console.log command
    @bot.send command, strings...

 run: ->
   self = @
