var util = require('util')
  , twitter = require('twitter')
  , Stream = require('stream')
  , repl = require('repl')
  , keys = require('./keys')
  , local = repl.start()
  , first = true

local.context.repl = local
local.defineCommand('tweet', function(tweet){
  twish
    .verifyCredentials(function(data) {
      console.log(util.inspect(data))
    })
    .updateStatus(tweet,
      function(data) {
        console.log(util.inspect(data))
    })
})


var twish = new twitter(keys)
//twish.get('/statuses/show/183682338646011904.json', function(data){
  //console.log(data)
//})
//twish.stream('statuses/sample', function(stream){
twish.stream('user', {track:'gkatsev', delimited:20}, function(stream){
  stream.on('data', function(data){
    if(first){
      first = false
      return
    }
    setTimeout(function(){
      process.stdout.write(JSON.stringify(data, null, '  '))
    }, 500)
  })
})

module.exports = twish

var util = require('util')
  , twitter = require('twitter')
  , Stream = require('stream')
  , repl = require('repl')
  , keys = require('./keys')
  , local = repl.start()
  , first = true

local.context.repl = local
local.defineCommand('tweet', function(tweet){
  twish
    .verifyCredentials(function(data) {
      console.log(util.inspect(data))
    })
    .updateStatus(tweet,
      function(data) {
        console.log(util.inspect(data))
    })
})
local.commands['.tweet'].help = 'Tweet as currently signed in user'

var twish = new twitter(keys)
//twish.get('/statuses/show/183682338646011904.json', function(data){
  //console.log(data)
//})
//twish.stream('statuses/sample', function(stream){
twish.stream('user', {track:'gkatsev', delimited:20}, function(stream){
  stream.on('data', function(data){
    if(first){
      first = false
      return
    }
    setTimeout(function(){
      process.stdout.write(JSON.stringify(data, null, '  '))
    }, 500)
  })
})

module.exports = twish

Add help text for the tweet command
Add help text for the tweet command
