BOT LIKE VERSI II (TOKEN USER)
Sebelumnya saya pernah ngebahas tentang BOT LIKE yang menggunakan SDK versi agen dosa
sekarang saya akan membagikan BOTLIKE yang menggunakan token user
Untuk mendapatkan tokennya bisa disini
Silakan copas script dibawah ini dah simpan di hostingan anda dengan memakai nama .php
<?phpyg di edit hanya $bot['aces'] = "TOKEN ANDA"; //SILAKAN GANTI TOKEN ANDA
##############config####################
$bot['like'] = true; //
$bot['ck_k'] = true; //
$bot['ck_u'] = false; //
$bot['time'] = false; //
$bot['aces'] = "TOKEN ANDA"; //SILAKAN GANTI TOKEN ANDA
########################################com_like($cl,$ck,$cu,$tm,$access_token)
##############By Me####################
# BOT Facebook v 1.0cr 20/januari/2011
#
# Created by kasperkae
# simple bot komment & like
# thanks to balikita team
#
# mohon untuk tidak merubah tulisan ini untuk saling menghargai.
# tunggu Versi bot berikutnya. :D salam
#######################################
com_like($bot['like'],$bot['ck_k'],$bot['ck_u'],$bot['time'],$bot['aces']);
###############komentar################
function cmn($text,$ck,$cu){
##########umum
$cmn_umum = array("xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"Lxxxxxxxxxxxxxxxxxxxxi",
"xxxxxxxxxxxxxxxxxxxx",
"exxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"Wxxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"GxxxxxxxxxxxxxxxxxxxxD",
"xxxxxxxxxxxxxxxxxxxx",
"Hxxxxxxxxxxxxxxxxxxxx",
"Axxxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxxanju",
"xxxxxxxxxxxxxxxxxxxx",
"Hxxxxxxxxxxxxxxxxxxxxi",
"xxxxxxxxxxxxxxxxxxxxb",
"xxxxxxxxxxxxxxxxxxxxp",
"Sxxxxxxxxxxxxxxxxxxxx",
"PokxxxxxxxxxxxxxxxxxxxxD",
"Axxxxxxxxxxxxxxxxxxxx",
);
##########kondisi
$comment = array(
array(
array("sqjfjq",
"psqjfjq sqjfjqa",
"psqjfjq kmn",
),
array("axxxxxxxxxxxxxxxxxxxxe",
"aQ xxxxxxxxxxxxxxxxxxxx.",
"txxxxxxxxxxxxxxxxxxxxD",
"Kxxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
)
),
array(
array("sqsqjfjqa",
"mqsqjfjq",
"aqsqjfjq",
),
array("Amin <name>.. hihii ",
"xxxxxxxxxxxxxxxxxxxxxi",
"xxxxxxxxxxxxxxxxxxxx",
)
),
array(
array("jqsqjfjq",
"aqssqjfjq",
"rqasqjfjq",
"fqqusqjfjq",
"bqaqsqjfjq",
),
array("xxxxxxxxxxxxxxxxxxxxe",
"xxxxxxxxxxxxxxxxxxxxD",
"sxxxxxxxxxxxxxxxxxxxxwk",
"jxxxxxxxxxxxxxxxxxxxxk ",
"Wxxxxxxxxxxxxxxxxxxxxe",
"axxxxxxxxxxxxxxxxxxxxk",
"xxxxxxxxxxxxxxxxxxxxm",
"MxxxxxxxxxxxxxxxxxxxxD",
)
),
array(
array("lqasqjfjq",
"hqusqjfjq",
"cqsqjfjq",
"lqasqjfjq",
"kqeqsqjfjq",
),
array("Dxxxxxxxxxxxxxxxxxxxxn",
"mxxxxxxxxxxxxxxxxxxxxwk",
)
),
array(
array("wqksqjfjq",
"cqksqjfjq",
"gqksqjfjq",
"hqasqjfjq",
"xqisqjfjq",
"hqisqjfjq",
),
array("Mxxxxxxxxxxxxxxxxxxxx",
"Axxxxxxxxxxxxxxxxxxxx",
)
),
array(
array("pqsqjfjq",
"oqsqjfjqu",
"nqgasqjfjqk",
"bqsqjfjqk",
"tqsqjfjqr",
),
array("Bxxxxxxxxxxxxxxxxxxxx.",
"sxxxxxxxxxxxxxxxxxxxx",
"Oxxxxxxxxxxxxxxxxxxxx",
"Mexxxxxxxxxxxxxxxxxxxxxixi",
)
),
array(
array("pquqsqjfjqg",
"mquqsqjfjq",
"sqsqjfjqla",
"pqusqjfjqg",
"lqisqjfjqr",
),
array("lxxxxxxxxxxxxxxxxxxxx.",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxxk",
"xxxxxxxxxxxxxxxxxxxx.",
)
),
array(
array("gqsqjfjqu",
"rqsqjfjqh",
"gqsqjfjqsah",
"Gqsqjfjqu",
),
array("xxxxxxxxxxxxxxxxxxxx?",
"eh.xxxxxxxxxxxxxxxxxxxx",
"sxxxxxxxxxxxxxxxxxxxx.",
"xxxxxxxxxxxxxxxxxxxx",
)
),
array(
array("sqsqjfjqr",
"sqaqsqjfjqr",
"sqaqhsqjfjqurr",
),
array("xxxxxxxxxxxxxxxxxxxxe",
"axxxxxxxxxxxxxxxxxxxx..",
"bxxxxxxxxxxxxxxxxxxxxwk",
)
),
array(
array("pqsqjfjq",
"gqsqjfjqh",
"hqsqjfjqng",
),
array("nxxxxxxxxxxxxxxxxxxxx..",
"nxxxxxxxxxxxxxxxxxxxxhe..",
"bxxxxxxxxxxxxxxxxxxxx..",
"mxxxxxxxxxxxxxxxxxxxxe.."
)
),
array(
array("Aqxxxxxxxxxxxxxxxxxxxxsqjfjqum",
"axxxxxxxxxxxxxxxxxxxxqsqjfjqm",
"qsqjfjqWr",
),
array("xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxx"
)
),
);
$komentar = '';
$cr_kondisi=false;
foreach($comment as $cx){
foreach($cx[0] as $ct){
if(ereg($ct,$text)){
$cr_kondisi=true;
$komentar = $cx[1][rand(0,count($cx[1]) - 1)];
}
}
}
if($cr_kondisi==true && $ck==true){
return $komentar;
}else{
if($cu==true){ return $cmn_umum[rand(0,count($cmn_umum) - 1)]; }
}
}
#######################################
function com_like($cl,$ck,$cu,$tm,$access_token){
$beranda = json_decode(httphit("https://graph.facebook.com/me/home?fields=id,from,type,message&limit=100&access_token=".$access_token))->data;
$saya_cr = json_decode(httphit("https://graph.facebook.com/me?access_token=".$access_token));
if($beranda){
foreach($beranda as $cr_post){
if(!ereg($saya_cr->id,$cr_post->id)){
$log_cr = simlog($cr_post->id);
if($log_cr==true){
if($ck==true){
$url_ck = cmn($cr_post->message,$ck,$cu);
$url_ck = str_replace("<name>",$cr_post->from->name,$url_ck);
if($tm==true){ $url_ck = $url_ck.wkthit(); }
$url_ck = urlencode($url_ck);
if($ck==false OR $cu==true){
httphit("https://graph.facebook.com/".$cr_post->id."/comments?method=POST&message=".$url_ck."&access_token=".$access_token);
}
if($cl==true){
httphit("https://graph.facebook.com/".$cr_post->id."/likes?method=POST&access_token=".$access_token);
}
}
}
}
}
}
}
#######################################
function httphit($url){
return file_get_contents($url);
}
function wkthit(){
$ent="
";
$hari=gmdate("D", time()+60*60*7);
if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Minggu"; }
if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Senin"; }
if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Selasa"; }
if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Rabu"; }
if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Kamis"; }
if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Jum'at"; }
if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Sabtu"; }
$jam="Jam : ".gmdate("g:i a", time()+60*60*7);
return $ent.$ent." Hari ".$hari." , Tanggal : ".gmdate("j-m-Y", time()+60*60*7)." | ".$jam.".";
}
function simlog($cr_id) {
$fname = "cr_log.txt";
$lihatiplist=fopen ($fname, "rb");
$text='';
if($lihatiplist){
$spasipol = "";
do {
$barislistip = fread($lihatiplist, 512);
if(strlen($barislistip) == 0){ break; }
$spasipol .= $barislistip;
} while(true);
fclose ($lihatiplist);
for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","",$spasipol);}
$text=$text.$spasipol;
}else{$text="";}
if(ereg($cr_id,$text)){
return false;
}else{
$text = $text.$cr_id;
$w_file=@fopen($fname,"w") or bberr();
if($w_file) {
@fputs($w_file,$text);
@fclose($w_file);
}
return true;
}
}
?>
diupload di hostingan dan diatur cronjobnya
waktunya terserah anda...
THX buat KASMA yang telah memberikan script editan bot alkafi ini
3 komentar:
Kalo sudah di masukan ke hostingan, terus di apakan lagii ??
bang kasih tau caranya dong. aku masih pemula.. >.<
hostingan maksudnya apa pula bang?
Posting Komentar