Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Twit = require('twit')
- var T = new Twit({
- consumer_key: 'aaa',
- consumer_secret: 'bbb',
- access_token: 'ccc',
- access_token_secret: 'ddd',
- timeout_ms: 60*1000,
- strictSSL: true,
- })
- var frases = [
- "Pues ir for free al dreambeach igual renta",
- "Participo",
- "Technazo",
- "Carpazo",
- "yeeeeaaa",
- "woooo",
- "",
- "dreambiiiiii!!!",
- "dreambeachhhh o ke!!",
- "eeeeooooooo",
- "holaaaa",
- "de vuelta al dreambeach",
- "a ganar",
- "quiero ganarrrr!",
- "quiero ganarrrr!!!1!!!",
- "quiero ganaaaaaarr",
- "quiero ganaaaar",
- "quiero ganarr",
- "quiero ganaaarrrr!",
- "quiero ganarrrrrrrrr!!!1!!!",
- "quiero ganaaaaaarrr!",
- "quiero ganaaaar!!!",
- "quiero ganarr!",
- "quiero ganarrr!!!!!!!",
- "partisipo",
- "participooooo",
- "participooo",
- "participio jaja",
- "paritizippo",
- "participao",
- "boris brejcha <3",
- "steve aoki <3",
- "aaaaa",
- "quiero ganarrrr",
- "las cosas claras y el techno oscuro",
- "teknito duro",
- "papapapa",
- "sorteazo",
- "a ganar",
- "π΅π΅",
- "π΅π΅π΅",
- "π΅",
- "π",
- "πππ",
- "ππππ",
- "πππππππππ",
- "ππππ",
- "π",
- "π€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌ",
- "π€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌ",
- "π€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌ",
- "π€πΌπ€πΌπ€πΌπ€πΌπ€πΌπ€πΌ",
- "π€πΌπ€πΌπ€πΌπ€πΌπ€πΌ",
- "π€πΌπ€πΌπ€πΌ",
- "π€πΌ",
- "yeeesss",
- "Vamos villaricoss!!!!!!",
- "Va a ser la hostia",
- "Quiero gozarmela de nuevo en el Dreambeach",
- "Ojala volver al dreambeach",
- "Participo en el sorteo",
- ""
- ];
- var tiempo = 60000;
- bucle();
- function getFrase(){
- var hashtag = "#GoVillaricos";
- var n = Math.floor((Math.random() * frases.length));
- var fr = frases[n];
- var p = Math.floor((Math.random() * 3));
- var times = Math.floor((Math.random() * 5)+1);
- var hashtagf = "";
- for(var i = 0; i<times; i++){ hashtagf+=" "+hashtag; }
- if(p==1 && fr!="") fr=hashtagf+" "+fr; else if(p==0 && fr!="")fr=fr+" "+hashtagf; else if(p==2 && fr!="")fr="#GoVillaricos "+fr+" #GoVillaricos";
- if(fr=="") fr+=hashtagf;
- return fr;
- }
- function bucle(){
- var tiempo = Math.floor((Math.random() * 8)+1);
- tiempo*=10000;
- console.log("Proximo tweet en: "+(tiempo/1000)+" segundos");
- setTimeout(function() {
- tuitear(getFrase());
- bucle();
- }, tiempo);
- }
- function tuitear(fr){
- T.post('statuses/update', { status: fr }, function(err, data, response) {
- console.log("Se ha tuiteado:"+ fr+"\n");
- })
- }
Add Comment
Please, Sign In to add comment