Created
December 24, 2013 18:44
-
-
Save kurtroberts/8116680 to your computer and use it in GitHub Desktop.
Get yourself banned from twitter in about 3 seconds. Cleaning out more old code that I will never need. This one was from the RP3 -> RG3 conversion.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var twitter = require('ntwitter'); | |
var twit = new twitter({ | |
consumer_key: '', | |
consumer_secret: '', | |
access_token_key: '', | |
access_token_secret: '' | |
}); | |
twit.stream('statuses/filter', {'track': 'rgiii'}, function(stream) { | |
stream.on('data', function (data) { | |
twit.updateStatus('Hey @' + data.user.screen_name + " You're a Skin's fan, check it out: @RP3Agency pays tribute to new QB w/Name Change to RG3 Agency http://t.co/EVej9olF" , function (err, data) { | |
console.log(err); | |
}); | |
console.log('Tweet in response to: ' + data.user.screen_name + ": " + data.text); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment