Tutor BOT Comment Facebook Google Drive

 
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View Mode
Views:

1017


Replies:3

Tutor BOT Comment Facebook Google Drive

hai hai hai Huhu ketemu lagi ama siganteng diaz Maho Maho Maho gw mau share nih bot komeng fb :/ ane nemu di gogle :v terus ane utak atik dikit lah Marah Marah Ngantuk
sekarang masi jam 23.00 mau nonton bola ntar yasudah daripada nganggur lihat tipi bosen gw langsung buka komp dan menuju kampoeng Maho Maho ehh kenapa gua curhat eaa?? -__-
Ana boleh nemu nih script bot di google, silahkan di cobain....
pasangnya di google drive, tapi saya juga masih bingung cara masangnya, mungkin paman lebih mengerti dari saya..... silahkan di coba........... Sedih Sedih comot comot eaak :v pemasangan cari gogle h3h3h3
Spoiler :
PHP Code: (Select All)
var robot={
  
token:"CAAB2eG006e4BACJyuoeLeGn....."// Token Elo Lah By : Diaz - Kampoeng.co.id
  
uid:"100000421903894",  // Id Fb Elo Lah ( fb me ) -> https://www.facebook.com/mtkpaling
  
limitCariStatus:1,
  
limitBalesKomen:20,
  
mesgs:{
    
biasas:[
      
"Waduh status :ngaran: jos banget :)",
      
"Kenapa yak kalo :ngaran: buat status selalu bikin aku terkagum kagum :D",
      
"Like dan komen meluncur :) ke status :ngaran:",
      
"Status :ngaran: greget banget (y)"
    
],
    
errors:[
      
"diaz gak ngerti :/ kakak :ngaran: ngomong apa?",
      
"Maaf diaz gak ngerti kk :ngaran:",
      
":ngaran: Gue gak ngerti woy",
      
"Ngomong apa sih kaka :ngaran: nih"
    
]
  },
  
signMes:"Robot by Diaz- Kampoeng.co.id",
  
antiKata:/Follow This List|Hadir dalam status sobat|ekle|durum/i,
  
antiOrang:[
    {
id:"100006768970526",name:"Steven abang-sate"}
  ],
  
  
signature:false// Menambahkan Signature pada Komentar
  
pakejam:false// Menambahkan Jam pada Komentar
  
likeKomeng:false// Like komentar
  
likePos:false// Like Status
};

var 
aing={
  
emots:["\udbb8\udd90","\udbb8\udd91","\udbb8\udd92","\udbb8\udd93","\udbb8\udd94","\udbb8\uddb7","\udbb8\uddb8","\udbb8\uddbb","\udbb8\uddbc","\udbb8\uddbd","\udbb8\uddbe","\udbb8\uddbf","\udbb8\uddc0","\udbb8\uddc1","\udbb8\uddc2","\udbb8\uddc3","\udbb8\uddc4","\udbb8\uddc5","\udbb8\uddc6","\udbb8\uddc7","\udbb8\uddc8","\udbb8\uddc9","\udbb8\uddca","\udbb8\uddcb","\udbb8\uddcc","\udbb8\uddcd","\udbb8\uddce","\udbb8\uddcf","\udbb8\uddd0","\udbb8\uddd1","\udbb8\uddd2","\udbb8\uddd3","\udbb8\uddd4","\udbb8\uddd5","\udbb8\uddd6","\udbb8\uddd7","\udbb8\uddd8","\udbb8\uddd9","\udbb8\udddb","\udbb8\udc3c","\udbb8\udc3d","\udbb8\udc3e","\udbb8\udc3f","\udbb8\udc40","\udbb8\udc41","\udbb8\udc42","\udbb8\udc43","\udbb8\udc45","\udbb8\udc46","\udbb8\udc47","\udbb8\udc48","\udbb8\udc49","\udbb8\udc51","\udbb8\udc52","\udbb8\udc53","\udbb8\udf20","\udbb8\udf21","\udbb8\udf22","\udbb8\udf23","\udbb8\udf24","\udbb8\udf25","\udbb8\udf26","\udbb8\udf27","\udbb8\udf28","\udbb8\udf29","\udbb8\udf2a","\udbb8\udf2b","\udbb8\udf2c","\udbb8\udf2d","\udbb8\udf2e","\udbb8\udf2f","\udbb8\udf30","\udbb8\udf32","\udbb8\udf33","\udbb8\udf34","\udbb8\udf36","\udbb8\udf38","\udbb8\udf39","\udbb8\udf3a","\udbb8\udf3b","\udbb8\udf3c","\udbb8\udf3d","\udbb8\udf3e","\udbb8\udf3f","\udbb8\udf40","\udbb8\udf41","\udbb8\udf42","\udbb8\udf43","\udbb8\udf44","\udbb8\udf45","\udbb8\udf46","\udbb8\udf47","\udbb8\udf48","\udbb8\udf49","\udbb8\udf4a","\udbb8\udf4b","\udbb8\udf4c","\udbb8\udf4d","\udbb8\udf4f","\udbb8\udf50","\udbb8\udf57","\udbb8\udf58","\udbb8\udf59","\udbb8\udf5b","\udbb9\udcf2","\udbb9\udcf4","\udbb9\udcf6","\udbb9\udfdc","\udbba\udc13","\udbba\udc14","\udbba\udc1a","\udbba\udc1c","\udbba\udc1d","\udbba\udc1e","\udbba\udc23","\udbba\udc27","\udbba\udc28","\udbba\udc29","\udbba\udd60","\udbba\udd81","\udbba\udd82","\udbba\udd83","\udbba\udf0c","\udbba\udf0d","\udbba\udf0e","\udbba\udf10","\udbba\udf11","\udbba\udf12","\udbba\udf13","\udbba\udf14","\udbba\udf15","\udbba\udf16","\udbba\udf17","\udbba\udf57","\udbba\udf59","\udbba\udf5b","\udbba\udf5d","\udbba\udf5e","\udbba\udf60","\udbba\udf69","\udbba\udf93","\udbba\udf94","\udbba\udf95","\udbba\udf96","\udbba\udf97","\udbba\udf98","\udbba\udf99","\udbba\udf9a","\udbba\udf9b","\udbba\udf9c","\udbba\udf9d","\udbba\udf9e","\udbba\udf9f","\udbba\udfa0","\udbba\udfa1"],
  
getEmot:function(a){if(a==null){return aing.emots[Math.floor(Math.random()*aing.emots.length)]}else if(a<aing.emots.length){return aing.emots[a]}else{var b=Math.round(a/aing.emots.length),c=(a-(aing.emots.length*b));if(c<0){c=(c*-1)}return aing.emots[c]}},
  
aduk:function(a){var b=a.length,c,d;while(0!==b){d=Math.floor(Math.random()*b);b-=1;c=a[b];a[b]=a[d];a[d]=c}return a},
  
acak:function(a){return a[Math.floor(Math.random()*a.length)]},
  
getApi:function(huh){var a=UrlFetchApp.fetch(huh,{muteHttpExceptions:true,method:"get"}),b=Utilities.jsonParse(a.getContentText());return b},
  
setApi:function(huh,pl){var a=UrlFetchApp.fetch(huh,{muteHttpExceptions:true,method:"post",payload:pl}),b=Utilities.jsonParse(a.getContentText());return b},
  
jamBaraTeh:function(a){
    var 
f={"01":"January","02":"February","03":"March","04":"April","05":"May","06":"June","07":"July","08":"August","09":"September","10":"October","11":"November","12":"December"},dword=["Minggu","Senen","Selasa","Rabu","Kamis","Jum'at","Sabtu"],d=new Date(),e=d.toUTCString(),g=dword[d.getDay()],detn=d.getDate(),monthn=d.getMonth()+1,fyearn=d.getFullYear(),hourn=d.getHours(),mntn=d.getMinutes(),scndn=d.getSeconds(),tzn=d.getTimezoneOffset();
    if(
monthn<10){monthn="0"+monthn}if(hourn>12){var h="PM";if(hourn<15){h="siang"}else if(hourn<18){h="sore"}else if(hourn<20){h="magrib"}else{h="malem"}}else{var h="AM";if(hourn<4){h="dini hari"}else if(hourn<6){h="subuh"}else if(hourn<10){h="pagi"}else{h="siang"}}
    var 
i=g+", "+detn+" "+f[monthn]+" "+fyearn+" jam ";if(hourn<10){i+="0"}i+=hourn+":";if(mntn<10){i+="0"}i+=mntn+" "+h;tzn=Math.round(tzn/-60);if(tzn>0){if(tzn<10){tzn="+0"+tzn+"00"}else{tzn="+"+tzn+"00"}}else{tzn=(tzn*tzn);if(tzn<10){tzn="-0"+tzn+"00"}else{tzn="-"+tzn+"00"}}var j=Date.parse(e),isoformn=fyearn+"-"+monthn+"-";if(detn<10){isoformn+="0"}isoformn+=detn+"T";if(hourn<10){isoformn+="0"}isoformn+=hourn+":";if(mntn<10){isoformn+="0"}isoformn+=mntn+":";if(scndn<10){isoformn+="0"}isoformn+=scndn+tzn;if(a==null||a==""){var k=i,q=j,p=i,isoform=isoformn}else{var l=a;if(l.split("T")[1]&&l.split("T")[0].split("-")[2]){var m="0000";if(l.split("+")[1]){m=l.split("+")[1]}else if(l.split(".")[1]){m=l.split(".")[1]}if(m=="000Z"){m="0000"}
    var 
n=l.split("T")[0].split("-")[2]+" "+f[l.split("T")[0].split("-")[1]]+" "+l.split("T")[0].split("-")[0]+" "+l.split("T")[1].split("+")[0].split(".")[0]+" GMT+"+m;var b=new Date(n),c=b.toUTCString();var o=dword[b.getDay()],det=b.getDate(),month=b.getMonth()+1,fyear=b.getFullYear(),hour=b.getHours(),mnt=b.getMinutes(),scnd=b.getSeconds(),tz=b.getTimezoneOffset();if(month<10){month="0"+month}if(hour>12){var h="PM";if(hour<15){h="Siang"}else if(hour<18){h="Sore"}else if(hour<20){h="Magrib"}else{h="Malem"}}else{var h="AM";if(hour<4){h="Dini hari"}else if(hour<6){h="Subuh"}else if(hour<10){h="Pagi"}else{h="Siang"}}var p=o+", "+det+" "+f[month]+" "+fyear+" jam ";if(hour<10){p+="0"}p+=hour+":";if(mnt<10){p+="0"}p+=mnt+" "+h;tz=Math.round(tz/-60);if(tz>0){if(tz<10){tz="+0"+tz+"00"}else{tz="+"+tz+"00"}}else{tz=(tz*tz);if(tz<10){tz="-0"+tz+"00"}else{tz="-"+tz+"00"}}
    var 
q=Date.parse(c),isoform=fyear+"-"+month+"-";if(det<10){isoform+="0"}isoform+=det+"T";if(hour<10){isoform+="0"}isoform+=hour+":";if(mnt<10){isoform+="0"}isoform+=mnt+":";if(scnd<10){isoform+="0"}isoform+=scnd+tz;var r=j-q,iraha=Math.round(r/1000),k=p;if(iraha<0){}else if(iraha<1){k="Karak ge crot bieu"}else if(iraha<60){k="Nembe "+iraha+" detik bieu"}else if(iraha<3600){k="Nembe "+Math.round(r/60000)+" menit bieu"}else if(iraha<86400){k=Math.round(r/3600000)+" jam tadi"}else if(iraha<604800){var s=Math.round(r/86400000);if(s==1){var x="baru se"}else{var x="Udah "+s+" "}k=x+"hari kemaren"}else if(iraha<2630000){var t=Math.round(r/604800000);if(t==1){var y="baru se"}else{var y="Udah "+t+" "}k=y+"minggu kemaren"}else if(iraha<31560000){var u=Math.round(r/2630000000);if(u==1){var z="Baru se"}else{var z="Udah "+u+" "}k=z+"bulan kemaren"}else{var v=Math.round(r/31560000000);if(v==1){var A="Baru se"}else{var A="Udah "+v+" "}k=A+"tahun kebelakang"}}else{var k=a,q=a,p=a,isoform=a}}
    var 
w={tag:k,ms:q,word:p,iso:isoform};return w;
  },
  
delbwtdkmn:function(a){if(!aing.db){aing.db=ScriptDb.getMyDb()}var searchOnDb=aing.db.query(a);while(searchOnDb.hasNext()){var fromDb=searchOnDb.next();aing.db.remove(fromDb)}},
  
dftrStatusYgUdahDiKomen:function(ret){if(ret==null){ret=[]}if(!aing.db){aing.db=ScriptDb.getMyDb()}var a=aing.db.query({type:"komeng"});var d=1;while(a.hasNext()){var b=a.next();if(b.komeng){ret.push(b.komeng)}else{aing.db.remove(b);d++}}var c="";if(d>1){c="removed "+(d-1)+" unknown data"}return ret},
  
dftrStatusBuatDiKomen:function(ret){if(ret==null){ret=[]}if(!aing.db){aing.db=ScriptDb.getMyDb()}var a=aing.db.query({type:"bwtkmn"});var d=1;while(a.hasNext()){var b=a.next();if(b.bwtkmn){ret.push(b.bwtkmn)}else{aing.db.remove(b);d++}}var c="";if(d>1){c="removed "+(d-1)+" unknown data"}return ret},
  
dftrKomenYgUdahDiBls:function(ret){if(ret==null){ret=[]}if(!aing.db){aing.db=ScriptDb.getMyDb()}var a=aing.db.query({type:"komengygidah"});var d=1;while(a.hasNext()){var b=a.next();if(b.komengygidah){ret.push(b.komengygidah)}else{aing.db.remove(b);d++}}var c="";if(d>1){c="removed "+(d-1)+" unknown data"}return ret},
  
koMeng:function(pesen,aydi){
    var 
a=aing.setApi("https://graph.facebook.com/"+aydi+"/comments",{message:pesen,access_token:robot.token});
    return 
a;
  },
  
jiLat:function(aydi){
    var 
a=aing.setApi("https://graph.facebook.com/"+aydi+"/likes",{access_token:robot.token});
    return 
a;
  },
  
cariJawaban:function(dwiganteng){
    var 
url='http://www.simsimi.com/func/reqN?lc=id&ft=0.0&req='+dwiganteng;
    var 
headers={
      
Cookie"Isi SimSimi Cookie :p" // Cari sendiri yak
    
}
    var 
options={"method":"get","headers":headers};
    var 
result=UrlFetchApp.fetch(url,options),state=result.getContentText(),ret=JSON.parse(state);
    if(
ret.result==404){
      var 
pesen=aing.acak(robot.mesgs.errors);
    }else if(
ret&&ret.sentence_resp){
      
pesen=ret.sentence_resp.replace(/simsimi|simi|.simi|sim/gi," Diaz");
    }
    return 
pesen;
  }
};

function 
robotSiliwangi(){
  var 
ngapain=ScriptProperties.getProperty("ngapainsekarang");
  
Logger.log(ngapain);
  if(
ngapain==null||ngapain==""||ngapain=="komenStatus"){
    
komenStatus();
    
ScriptProperties.setProperty("ngapainsekarang","balesKomen");
  }else if(
ngapain=="balesKomen"){
    
replyKomeng();
    
ScriptProperties.setProperty("ngapainsekarang","komenStatus");
  }
}

function 
komenStatus(){
  if(!
aing.db){aing.db=ScriptDb.getMyDb()}
  var 
ret=aing.dftrStatusYgUdahDiKomen();
  
Logger.log("Collecting status from home feed");
  var 
a=aing.getApi("https://graph.facebook.com/me/home?limit="+robot.limitCariStatus+"&access_token="+robot.token);
  if(
a&&a.data){
    
Logger.log("Found "+a.data.length+" status");
    for(var 
x in a.data){var adx=a.data[x];if(adx.type=="status"){var lanjut="ya";
      
aing.db.save({type:"komeng",komeng:{id:adx.id,name:adx.from.name}});
      for(var 
y in ret){if(ret[y].id==adx.id){lanjut="gak";break}}
      for(var 
h in robot.antiOrang){if(robot.antiOrang[h].id==adx.from.id){lanjut="gak"}}
      if(
adx.message.match(robot.antiKata)){lanjut="gak"}
      if(
adx.from.id==robot.uid){lanjut="gak"}
      if(
lanjut=="ya"){
        var 
ngaranNuPosting=adx.from.name.split(" ")[0];
        var 
pesen=aing.acak(robot.mesgs.biasas);
        
pesen=pesen.replace(/:ngaran:/gi,ngaranNuPosting).replace(/:ngaranposter:/gi,ngaranNuPosting);
        var 
pesen="("+ngaranNuPosting+" : "+adx.message+") => "+pesen;
        if(
robot.pakejam==true){pesen+="\n\n"+aing.getEmot()+" "+aing.jamBaraTeh().word+" "+aing.getEmot()}
        if(
robot.signature==true){pesen+="\n\n"+robot.signMes}
        if(
robot.likePos==true){
          
Logger.log("Liking status from "+ngaranNuPosting+" ["+adx.id+"]");
          
aing.jiLat(adx.id);
        }
        
Logger.log("Commenting status from "+ngaranNuPosting+" ["+adx.id+"]")
        var 
go=aing.koMeng(pesen,adx.id);
        if(
go&&go.id){
          
Logger.log("Success ["+go.id+"]")
          
aing.db.save({type:"bwtkmn",bwtkmn:{id:adx.id,name:adx.from.name}})
        }
      }
    }}
  }
}
function 
replyKomeng(){
  if(!
aing.db){aing.db=ScriptDb.getMyDb()}
  var 
buatDikomen=aing.dftrStatusBuatDiKomen(),ret=aing.dftrKomenYgUdahDiBls();
  for(var 
g in buatDikomen){var ljt="yes";var pesens=[];
    if(
buatDikomen[g].hitung==robot.limitBalesKomen||buatDikomen[g].hitung>robot.limitBalesKomen){aing.delbwtdkmn({type:"bwtkmn",bwtkmn:{id:buatDikomen[g].id}});ljt="no";break}
      if(
ljt=="yes"){Logger.log("Collecting comments from status by: "+buatDikomen[g].name+" ["+buatDikomen[g].id+"]");var a=aing.getApi("https://graph.facebook.com/"+buatDikomen[g].id+"/comments?method=get&limit=500&access_token="+robot.token);if(a&&a.data){
      
Logger.log("Found "+a.data.length+" comments");
      for(var 
x in a.data){var adx=a.data[x];if(adx.from&&adx.message){var lanjut="ya";var ngaranNuPosting=adx.from.name.split(" ")[0];
        
aing.db.save({type:"komengygidah",komengygidah:{pesen:adx.message,id:adx.id}});
        for(var 
y in ret){if(ret[y].id==adx.id){lanjut="gak";break}}
        for(var 
h in robot.antiOrang){if(robot.antiOrang[h].id==adx.from.id){lanjut="gak"}}
        if(
adx.message.match(robot.antiKata)){lanjut="gak"}
        if(
adx.from.id==robot.uid){lanjut="gak"}
        if(
lanjut=="ya"){
          var 
j=aing.cariJawaban(adx.message);
          
j=j.replace(/:ngaran:/gi,ngaranNuPosting).replace(/:ngaranposter:/gi,buatDikomen[g].name);
          
pesens.push("("+ngaranNuPosting+" : "+adx.message+") => "+j)
          if(
robot.likeKomeng==true){
            
Logger.log("Liking comment from "+ngaranNuPosting+" ["+adx.id+"]");
            
aing.jiLat(adx.id);
          }
          var 
crAkn=aing.db.query({bwtkmn:{id:buatDikomen[g].id}});
          while(
crAkn.hasNext()){
          var 
crAknnx=crAkn.next();
          if(
crAknnx.bwtkmn.hitung){crAknnx.bwtkmn.hitung++}else{crAknnx.bwtkmn.hitung=1}
            
aing.db.save(crAknnx);
          }
        }
      }}
    }}
    if(
pesens.length!=0){
      
pesens=pesens.join("\n\n");
      if(
robot.pakejam==true){pesens+="\n\n"+aing.getEmot()+" "+aing.jamBaraTeh().word+" "+aing.getEmot()}
      if(
robot.signature==true){pesens+="\n\n"+robot.signMes}
      
Logger.log("Replying comments from status by "+ngaranNuPosting+" ["+adx.id+"]")
      var 
ko=aing.koMeng(pesens,buatDikomen[g].id);
      if(
ko&&ko.id){
        
Logger.log("Success ["+ko.id+"]");
      }
    }   
  }


Ngga Nolak CEEEEEEEEENDDDDDDDDOOOOOOL:ohhno: :ohhno: :ohhno: :ohhno:
Salam Ganteng Ngupil Ngupil Ngupil DIAZ Ngupil Ngupil

SUMBER : GOOGLE

RT: Tutor BOT Comment Facebook Google Drive

coba ahh Ngupil wkwkwkwkwkwk

Thumb Up RT: Tutor BOT Comment Facebook Google Drive

Kapan-kapan dicoba paman Ilfeel Genit

RT: Tutor BOT Comment Facebook Google Drive

ini bot komen yg bisa balesin komen2 lainnya itu bukan paman?
gila itu bot, bikin geregetan aja Pusing
kampoeng