Skip to content

Instantly share code, notes, and snippets.

View mandric's full-sized avatar

Milan Andric mandric

View GitHub Profile
@mandric
mandric / gist:3959916
Created October 26, 2012 16:59 — forked from guyht/gist:1684328
Twitter Bot in NodeJS
/*
* Load external modules and init variables
*/
var twitter = require('ntwitter'),
http = require('http'),
bitly = require('bitly'),
b = new bitly('USER', 'API_KEY'),
tweeted = {},
load_time = Math.round(new Date().getTime() / 1000),
score_threshold = 100;