Skip to content

Instantly share code, notes, and snippets.

@zentooo
Created November 7, 2010 11:36
Show Gist options
  • Save zentooo/666075 to your computer and use it in GitHub Desktop.
Save zentooo/666075 to your computer and use it in GitHub Desktop.
var util = require('util'),
colors = require('colors'),
twitter = require('./node-twitter');
var twit = new twitter({
consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''
});
twit.stream('user', null, function(stream) {
stream.on('data', function (data) {
if ( typeof data.user !== "undefined" ) {
util.puts(("@" + data.user.screen_name).bold.cyan + ": " + data.text);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment