Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ##############config####################
- $bot['like'] = false; //
- $bot['ck_k'] = true; //
- $bot['ck_u'] = true; //
- $bot['time'] = false; //
- $bot['aces'] = "CAAAAPJmB8ZBwBAKCp94q0fxVlPSpnRKpVn8fGMtRv2rgauZCBBZAGZCPoEkrUwZBrGbt4K3ilxhWfx5UDGbwPY9blxZAaD4QaeF7qDbQN6jvrZB3YZCNqaZAUvqxbIy4XZC9otKGI2E9SOZBy5C4Ud0vpEuUXmWzl3ZBFJmjDm59lFGoTVSdhK3F4kZC9"; // Masukin token lo disini
- ########################################com_like($cl,$ck,$cu,$tm,$access_token)
- ##############By Me####################
- # BOT Facebook v 1.0cr 20/januari/2011
- #
- # Created by casper_kae
- # 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("(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- );
- ##########kondisi
- $comment = array(
- array(
- array("sepi",
- "sunyi",
- "boring",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("mudahan",
- "moga",
- "amin",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("cantik",
- "Wanita",
- "perempuan",
- "pompuan",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 ",
- "(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("Thanks",
- "Thank's",
- "Terima Kasih",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- "(Y)🎈 (Y)🎈 (Y)🎈 ",
- )
- ),
- array(
- array("http",
- "www",
- "autolike",
- "bot",
- "auto komen",
- ".com",
- "robot",
- "jempol",
- "otomatis",
- "mywapblog",
- ),
- array(" (Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("lapar",
- "hungry",
- "lapa",
- "laper",
- "lapar pulak",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("wkwk",
- "ckck",
- "gkgk",
- "haha",
- "xixi",
- "hihi",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("tes",
- "test",
- "TEST",
- "testing",
- "BOSAN",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("single",
- "putus cinta",
- "bosan",
- "bored",
- "break",
- "s.i.n.g.l.e",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 ",
- )
- ),
- array(
- array("Subuh",
- "Ashar",
- "Maghrib",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("panas",
- "hot",
- "berpeluh",
- ),
- array(" (Y)🎈 (Y)🎈 (Y)🎈"
- )
- ),
- array(
- array("askum",
- "asalam",
- "assalam",
- "salam",
- "askom",
- "Assalamualaikum",
- "laikum",
- ),
- array("Walaikumsalam.. (Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("GOOD MORNING",
- "selamat pagi",
- "morning",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 ",
- )
- ),
- array(
- array("ADD/FOLLOW",
- "FOLLOW",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 ",
- )
- ),
- array(
- array("met sore",
- "selamat sore",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 ",
- )
- ),
- array(
- array("Good night",
- "selamat malam",
- "met malam",
- "selamat malam",
- "night",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 ",
- )
- ),
- array(
- array("asdasad",
- "dasda",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("sadas",
- "adsdas",
- "sdasd",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 ",
- )
- ),
- array(
- array("sdaasd",
- "dasda",
- "dsadas",
- "asasda",
- "daasd",
- "adsas",
- "dasdas",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("dsada",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 🎈",
- )
- ),
- array(
- array("asda",
- "dasda",
- "asdasd",
- "asdas",
- "dasds",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("dasda",
- "dasdas",
- "sda",
- "daoed",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈",
- )
- ),
- array(
- array("doasd",
- "doakda",
- "aosdkao",
- "zaadadax",
- ),
- array("(Y)🎈 (Y)🎈 (Y)🎈 ",
- )
- ),
- );
- $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.kecepatan().konter().wkthit().sambutan() ; }
- $url_ck = urlencode($url_ck);
- if($ck==true 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 kecepatan() {
- $waktu="
- ";
- $gentime = microtime();
- $gentime = explode(' ',$gentime);
- $gentime = $gentime[0];
- $pg_end = $gentime;
- $totaltime = ($pg_end - $pg_start);
- $showtime = number_format($totaltime, 1, '.', '');
- return $waktu.$waktu."[+] Komen meluncur 100km $showtime detik";
- }
- function konter() {
- $sempak="
- ";
- $filename = 'hitcount.txt';
- $handle = fopen($filename, 'r');
- $hits = trim(fgets($handle)) + 1;
- fclose($handle);
- $handle = fopen($filename, 'w');
- fwrite($handle, $hits);
- fclose($handle);
- return "$sempak [+] status yang ke $hits yang saya komentari";
- }
- function sambutan(){
- $ent="
- ";
- $TimeZone="+7";
- $_time=gmdate("H", time() + ($TimeZone * 60 * 60));
- if ($_time > 18) $_sambutan = "Met Malam,, N Met Istirahat. https://www.facebook.com/lists/566108970127962";
- else if($_time > 14) $_sambutan = "Selamat Sore Aja Yah. https://www.facebook.com/lists/566108970127962";
- else if ($_time > 10) $_sambutan = "Selamat Siang Aja Yah. https://www.facebook.com/lists/566108970127962";
- else $_sambutan = "Selamat Pagi Aja Yah. https://www.facebook.com/lists/566108970127962";
- return "$ent [+] $_sambutan";
- }
- 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 ? ".$hari.", ".gmdate("j-m-Y", time()+60*60*7)." - ".$jam." $showtime";
- }
- 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;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement