<?php //
##############config bot################
$bot['like'] = true; // false untuk non aktifkan autolike
$bot['ck_k'] = true; // false untuk non aktifkan fungsi jika status mengandung kata maka di comen dengan kata
$bot['ck_u'] = true; // true jika pengkondisian di non aktifkan akan beralih ke koment umum jika kondisi aktif komen umum juga aktif (tidak akan dobel komen jika keduanya aktif)
$bot['time'] = true; // false untuk menonaktifkan fungsi waktu di komentar
$app['aces'] = "AAAAAC3zphqEBAAyfJjDhKSrHeTI0oOpXq8UnenFlrEaQR76ogo7oJOSI82II1QSdufItx49hYtbEVvHOz6HIo0zgNPJOSZCDyL71PlgZDZD"; // access_token is(read_stream,publish_stream,offline_access) / ambil token : http://fb-mar-ast.com/BOT/token.php
##############config bot################
$caspercell="
##############By Me####################
# BOT Facebook v 1.4cr 3/feb/2011 modified 20/agu/2012 edited 24/Okt/2012
#
# Created by casper_kae alkaafi & Edited by Zee
# simple bot komeng & njempol
# thanks to balikita team
#
# mohon untuk tidak merubah tulisan ini untuk saling menghargai. -----> Tapi, kalo mau nambahin tulisan sendiri, diperbolehkan kok, :D
# tunggu Versi bot berikutnya. :D salam -----> Kapan keluar lagi tuh, 'Versi bot berikutnya'?
# #bikin pas nunggu anu. laporannya lagi menstruasi. hasyuuuuu. :( -----> Kawin? Bikin anak? ato apaan???
# #padahal udah karaten nunggu. -----> wkwkwkwk, ga nyampe mati sekalian tuh? wkwkwkwk
#######################################";
##############config msg################
$msg['com_no1'] = array( "hahaha, aku jadi pemimpin komen.. \n ahahay...","New, Rangking 1 Komen.. wkwkwk","Hassseeeek, jadi yang nomor 1.. hihihi","wah, ga biasanya nih aku dapet peringkat 1 dalam hal komen, wkwkwk","ye ye yeeee, nomor satuuuuu. :D","untung aja tadi ga ketiduran, jadinya, dapet tempat pertama nih buat komen, :D","wew, mana nih yang laen? ga pada komen duluan? jadinya aku donk yang pertama komen, hihihi","akan tetep kuusahain deh, untuk selalu menjadi yang tercepat buat komen, :D","lha pertamax tho...!!! hihihi ","No 1. \n ","yang tercepat komen kan.? ","masih yang terdepan buwat komen. hihihihi ","hadir no 1 ... ","hadir tercepat,wuzzzzzzzzzzz.... ","tuh kan, komen paling awal... \n "," dan mencoba selalu menjadi yang tercepat untuk komen \n ");
$msg['com_no_'] = array( "meski no <n> yg penting setia. ","sory gak no 1 lagi. jempolku lagi kesleo tp jadi yang no <n> gpp ya?. "," kalah cepet aku dah. gk no 1 lagi. Tapi yang ke <n> juga gpp, ","meski no <n> aku sempatkan hadir. ","maaf gak bisa koment no 1 lagi,tadi kehabisan pulsa, jd g bisa OL, tapi koment no <n>, gpp kan ?.. \n ","sory gak komen no 1 lagi.barusan mati lampu, jadi gelap, gak bisa ketik koment... tapi no <n> gpp ya ?. \n "," duh sayangnya ketiduran aku tadi ..:D. gk komen no 1 lagi,tp jadi komen yang no <n> gpp ya ","inginya koment no 1, tp nyatanya no <n>, gpp ya, maklum lagi lemot?","maaf nih, ga bisa dapetin nomer 1, tadi aku disuruh om, supaya beli susu buat keponakan, jadinya nomer <n> deh, maaf yah, ihihi","woiy, yang komen di atasku, kok kamu curang sih? mencuri start, jadinya aku komen nomer <n> nih, huuuu \n #Piss","maaf, tadi abiz nabung di wc, abiznya lagi M, jadinya ga bisa no 1 deh, huft, dapet no <n> nih jadinya, gpp yah?","sori, baru sempet on, tadi aku liat ada tabrakan di jalan, jd ga bisa komen nomer 1 nih, terpaksa terima jadi komen no <n>. maaf yee,?","maaf, ga bisa komen nomer 1 dulu, nih kibodku ga bisa buat ngetik, jadinya nomer <n>, tp ntar kucoba jadi nomer 1 deh, :D",);
$msg['com_umum'] = array( "<no> \n <aku> hadir menyukai untuk status <sex> <name> !!!",
"<aku> Mampir di statusmu boleh kan <sex> .? \n <smile> hihihihi.\n <no>",
"Maaf saya robot komen.\n <no> \n hadir hanya untuk komen di status <sex> <name>.. <smile>",
"Bos <aku> lagi offlen jadi bot ditugaskan untuk komen di statusmu <sex> <name> <smile>",
"<no> \n cuma mo bilang.! \n Orang Cakep lewat distatusmu <sex>, Minggiiiiiiiiiiiiir.. :P",
"Bingung mo komen apa <sex> <smile> ",
"Nulis status gak perlu mikir yang penting komen hadir. stuju kan <sex>..? \n <no> \n <smile>",
"absen komen aja deh <sex>. <smile> hihihii \n <no>",
"Ampek jempol kriting tetep stia <aku> komen di statusmu <sex> <name> <smile> \n <no> ",
"Numpang ngisi komen distatusmu <sex> <name>..:D \n <no>",
"ga kan necewain deh, like this dan komen hadir selalu untukmu <sex>",
"<sex> <name>... statusmu sip banget.! <smile> pokoknya JEMPOL trus dah..:D \n <no>",
"apapun statusnya? jempol <aku> slalu mampir di statusmu <sex> \n <no>",
"status <sex> <name> emang tempat nongkrong komentarku. <smile> hihi",
"mau komen apa ya?? bingung?? nambah like this, biar tambah eksis aja <sex>. <smile> hihihihihi....",
"Di tungguin dari tadi, akhirnya <sex> <name> update status juga, <smile> oklah tanpa basa-basi lagi aku kasi jempol dah,, Like This ya <sex> <smile> ",
"<no> \n dikasih tempat komen ama <sex> <name>. gak mungkin gak komen gue.. <smile> ",
"lupa <sex>? \n <no>. hadoh bot kok bisa lupa to!! hihihi",
"Pokoknya <aku> jadi penggemar setia postinganmu <sex> <name>. Jadi slalu setia hadir. <smile> \n <no>",
"walah <sex> <name> update status. <aku> slalu setia dateng n komen ya <sex>. <smile> hihi \n <no>",
"terkadang ada yg benci sama bot komen, bahkan sebagian ada yg mengutuk..:D, tp kamu tau kenapa <aku> selalu bertahan dengan bot komen ini? karena <aku> g mungkin melewatkan status dari sahabatku <sex> <name> yg baik hati ini........ <smile> \n <no>",
"ijinkan <aku> mampir distatusmu <sex> <name> .? \n hihihihi <smile>. \n <no>",
"hadechhh <sex> <name>.... \n <no>. maklum ya namanya robot, kadang lowbat juga...! tp yg penting hadir ya! hihihi <smile>",
"\n <no>.....hihihi <smile>",
"saya robot komen, ditugaskan sama bos <aku> buat kasih jempol+komen di statusmu <sex> <name>, ihihi \n <smile>",
"aku bingung banget nih <sex>, mau komen apa di statusmu, :/ bisa kasih saran ga? ihihih <smile> \n <no>",
"<sex> kok rajin banget apdet status sih? boleh tau penyebab jadi rajin apdet status kagak? wkwkwk <smile> \n <no>",
"sejujurnya, aku ga mau komen+njempol, tapi berhubung bos <aku> yang suruh, jadinya yaa mau ga mau harus Komen+Like di Statusmu <sex> <name>. gpp kan? <smile> \n <no>",
"kuusahakan terus njempol+komen di statusmu <sex> <name>, gpp kan? jadi ramai lho statusmu, hihihi",
"<sex> <name>... statusmu T.O.P.C.E.R banget.! <smile> pokoknya aku kasih JEMPOL trus dah..:D \n <no>",
"pokoknya <aku> bakalan berusaha buat komen+like status <sex> <name>..... \n boleh ga <sex>??? \n <no>",
"wew, masih tetep rajin apdet status nih <sex>? whatever lah, kucoba buat komen+like statusmu terus <sex> <name>, <smile> \n <no>",
"Nulis status juga terkadang butuh mikir, bener ga <sex> <name>? ga pasti tuh, asal apdet status, wew \n <no>",
"hadeeeeh, <sex>, depot listrik paling deket mana neh? ini lho, batteryku udah hampir habis neh, tinggal (-+) 5%, wew, habis, komen+Like statusmu dkk sih, <smile> \n <no>",
"status <sex> <name> emang asik berat tuh buat tongkrongan komenku, <smile> hehehe \n <no>",
);
$msg['com_photo'] = array( "<no> \n wow kerennnn picnya <sex> <name> <smile>",
"udah aku like <sex>. <smile> \n <no> potonya sip <sex> <name>",
"<smile> waw siapa itu <sex> <name>.?",
"<name>, foto siapa itu <sex> \n <no>",
"<sex>, narsis banget sih <sex> <name>, aku jadi iri deh. <smile> \n <no>",
" <sex> <name> ...\n <no>",
" inginya sih bilang wawwww gitu, cuman takut dikira ngeledek, lik dis aja ya <sex> <name>....fotonya mantab",
" jadi inget jaman2 perjuangan dulu... <smile> ...... like this dech fotonya bagus <sex>....... \n <no>",
"rajin banget aplot gambar <sex> <name>? emang aplot banyak banyak buat apaan sih? arsip? wkwkwk \n <no> \n \n #Pizz",
);
$msg['com_kondisi'] = array(
array(
array( "galau",
"galaw",
"nyesek",
"nyessek",
"dilema",
),
array( "<sex> <name> lagi galau? kasihan.. <smile> \n <no> ",
"sebetulnya galau itu apa to <sex> <name>.....pengin ngerasain <smile> \n <no>",
"galau terus nih <sex>? apa sih penyebabnya? \n wew.",
)
),
array(
array( " hp",
"Hand Phone",
"Ponsel",
"telpon",
"vonk",
" sms",
" xmx",
),
array( "<sex> <name>, Boleh Minta NoPe'a ga? hehe <smile> \n <no> ",
"Waaaah, Punya Nomer Hp juga tha <sex> <name>? \n Bagi Nomer donk, <smile>",
"wew, masih jaman pakek HaPe juga yah <sex>? mending Pacebookan aja nih, wkwkwk",
)
),
array(
array( "met pagi",
"selamat pagi",
),
array( "met pagi juga <sex>.... <smile> ",
"wahhh...emang udah pagi ya <sex>...duhhh padahal dr td malem belum tidur.... <smile>",
"udah pagi neh <sex>, ngopi dulu sana, kalo ga, sarapan aja skalian, ihihii, <smile>",
"medang dulu sanah <sex> <name>, <smile> \n <no>",
)
),
array(
array( "met siang",
"selamat siang",
),
array( "Met siang juga <sex>... \n <smile> ",
"waw, udah siang ya <sex>? makan siang dolo yuuk? <smile>",
"Shalat dhuhur dulu sanah <sex>, <smile>",
)
),
array(
array( "Met sore",
"Selamat sore",
),
array( "Met Sore Juga...<sex>... \n <smile> ",
"ternyata udah sore ya <sex> \n <smile>",
"Shalat Ashar dolo sanah <sex>, <smile>",
)
),
array(
array( "nangis",
"menangis",
),
array( "ada apa to <sex>??..sabar ya... \n <smile>",
"adakah yg bisa saya bantu <sex>???",
"emang ga capek <sex> <name>? masa nangis terus? ntar air matamu abiz lho <sex>.",
"cup cup cup, udah donk <sex> <name>, jangan nangis terus, ntar aku beliin balon lho, mau ga? ehehe",
)
),
array(
array( "sakit",
"perih",
),
array( "diobatin pakai bethadine kali sembuh ya <sex>?.... <smile> ",
"yg sabar ya <sex>???",
"ke dokter atuh <sex> <name>, hehe",
)
),
array(
array( "kangen",
"rindu",
),
array( "semoga lekas terobati rindunya ya <sex>.....",
"yg sabar ya <sex>???",
"datengin aja tuh rumahnya dia, <sex> <name>?",
)
),
array(
array( "cinta",
"mencintaimu",
"i love u",
"lope",
"sayang",
"sayang kamu",
"love",
"♥",
),
array( "cinta itu......??? hemmm bingung mau komen apa?? like this aja dech ",
"oh so cweeet banget <sex>, makasih ya <smile>. hahahhahah",
"yang bener nih <sex> <name>, serius?",
"Inget kata Chu Phat Kai kan? wkwkwk : \n sejak dahulu begitulah cinta penderitaannya tiada akhir... \n wkwkwkwk <smile>",
"wkakakaka, masih jaman CINTA tha <sex>? wkwkwk, <aku> dah kenyang tuh sama yang namanya CINTA, wkwkwkwk <smile> \n #Pisss deh <name>",
"CINTA CINTA CINTA, Indonesia, wkwkwkwk",
)
),
array(
array( "met malam",
"Selamat malam",
"met malem",
),
array( "Met malem juga <sex> <name>.....:D ",
"ternyata udah malam to <sex> ???....waduh..belum mandi nich",
)
),
array(
array( "nyanyi",
"lagu",
"dengerin lagu",
),
array( "ikut dengerin aja ya <sex>",
"hemmm jadi inget jaman dahulu kala aku jadi bintang ,<sex>....kwkwkw",
)
),
array(
array( "malam minggu",
"apel",
),
array( ".....wahh siapa yg mau tak apelin???.....like this dech <sex>",
"jadi keinget jaman pacaran dulu nih <sex> <name>...:D",
"salam aja deh buat pacarmu <sex>? eehehe",
)
),
array(
array( "panas",
"puanas",
"puanasssssssss",
"sumuk",
" gerah",
),
array( "masuk kulkas aja kalee ya??...:D",
"yg penting hati tetep adem <sex>....:D",
"mandi sana <sex>, ketahuan tuh, kepanasan, Cz ga pernah mandi, <smile> \n \n #Piss",
"nyemplung ke kolam aja <sex> <name>, biar ga Panas! hahahahaha \n <smile>",
)
),
array(
array( "Hacker",
"Hackel",
"Heker",
"Hekel",
),
array( " wowwww......takuttttt",
" wawawawaw..... \n \n Kabooooor \n <smile>",
"colek bang @[100003464100105:0] ada yang nyebut2 hacker tuh? liat yuk? kayak apa sih yang namanya hacker <sex> <name>?",
"senggol mas @[100000470656174:0], mas liat yang namanya hacker yuk? aku penasaran neh, \n boleh nonton yang namanya hacker kayak apa ga <sex> <name>?",
"wew, kok bisa jadi hacker yah? emang biar jadi hacker, itu makannya apaan sih <sex> <name>?",
)
),
array(
array( "waw",
"wow",
),
array( "jadi aku juga harus koprol sambil bilang wawww gitu???......maaf <sex> <name> aku robot komen, jadi ga bisa lakuin tuh...:D \n <smile>",
"ada apa..ada..apa...",
"Kayaknya Heboh banget tuh <sex> <Name>?",
"so, aku harus ngesot sambil ngepel en sambil bilang ''woooooooooooooooooooooooooooooooooooooow''.. gitu? wkwkwk \n \n #Piss <smile>",
)
),
array(
array( "kemana",
"kucari",
"dimana",
),
array( " semoga ketemu ya...<sex>....",
"apa perlu lapor polisi biar ketemu ya <sex>...:D",
"coba tanya gugel maps ajah <sex>? wkwkwk \n \n #Pizz",
"itu pasti syair di lagunya Ayu Ting-Ting: Alamat Palsu, yah <sex>?",
)
),
array(
array( "Zee",
"Au Ah Gelap",
"<aku>",
),
array( "hemmm....<sex> <name>, g lagi nyindir aku to??? ",
"jadi gimana gitu nama FB ku jd bahan bicaraan, thanks ya <sex>.... <smile>",
)
),
array(
array( "sepi",
"pada kemana",
"pada kmn",
),
array( "Nih Udah <aku> rame - ramein <sex>. hhe",
"Meski sepi, JEMPOL <aku> masih setia di status <sex> <name>. hhe",
"He'eh ni penghuni FB pada tidur kali. tapi JEMPOL <aku> slalu hadir buat statusmu <sex>?",
"pengen yang rame <sex> <name>? kalo mau, ntar kupanggil temen temenku, biar ikut ngramein statusmu <sex>, gmn? mau? \n <no>",
)
),
array(
array( "semoga",
"moga",
"amin",
),
array( "Amin <sex> <name>.. Skalian like this juga ah. biar tambah exsis. hhe",
"Mang knape <sex> <name>.?",
"Ikut Ngaminin dech <sex> <name>.?",
"moga terkabul aja deh <sex> <name> ihihi",
)
),
array(
array( "jancok",
"celek",
" asu ",
" raimu ",
" matamu ",
" bajingan ",
" joh ",
" kontol ",
" fuck ",
" bangsat ",
" goblog ",
" jembut ",
" itil ",
),
array( "Wew. <sex> <name> lagi marah ya??. :) ...sabarrrr beroww..",
"ada apa <sex>? kayaknya marah amat..? wkwkwkwk",
"Robot versi gaul buat ngademin kamu <sex> <name>. sabarrrrrr wkwkwkwk",
"Meski km marah <sex>. <aku> tetep hadir aja dah n like this. <smile>",
)
),
array(
array( "lapar",
" ewul ",
" ngelih ",
" keroncongan ",
" luwe ",
" laper ",
"laper",
" krucuk",
),
array( "km tau lagunya opick Obat Hati, salah satunya ya itu ....nahan laper <sex>..? betul gak sih???..hohohoho",
"sama <sex> <name> klaparan jg nih. nyindir.com. wkwkwkwk",
"di warung banyak makanan tuh <sex> <name>, hahaha <smile>",
"sudah, makan dulu sanah <sex> <name>. wkwkwk",
)
),
array(
array( "askum",
"asalam",
"assalam",
"mekum",
"Ass ",
"Assalamualaikum",
"laikum",
),
array( "Waalaikumsalam warahmatullahi wabarakatuh. <sex> <name> .. hihi",
"Waskum <sex>..",
)
),
array(
array( "Pusing",
"Mumet",
"eror",
),
array( "waw waw waw...perlu refreshing itu <sex>....:D",
"wah..apakah ada yg bisa aku bantu <sex>???....hehe..:D",
"ngobat dulu aja <sex>, biar ga puyeng, :D",
)
),
array(
array( " Gak semangat ",
" Kurang semangat ",
" males ",
" boring ",
),
array( "waw waw waw.....ayoooo semangat nuwwww <sex>",
"harus semangat nuwww....kita kan pemuda harapan pemudi....:D",
)
),
array(
array( "pamit",
"off dulu",
"ngantuk",
"bobok",
"tidur",
),
array( "lho aq ditinggal <sex> <name> wkwkwkwk",
"wew. masi jam sgini <sex> mo kmana.?",
"Walah kmana <sex>..? ",
"Lho <sex>. weh Ditinggal dah ane. hhe.",
)
),
array(
array( "lagu",
"musik",
" sing ",
" song ",
"np ",
"np# ",
"#NP ",
"nyanyi",
),
array( "nyanyiin dikit dong lagunya <sex> <name> hihi <smile>",
"boleh dong kalo <sex> <name> nyanyi dikit .. \n \n #Pizz <smile>",
"<aku> mau request donk <sex> <name>, boleh ga nih <sex>?",
)
),
);
$casperbot=new cr_bot;
error_reporting(5);
@ignore_user_abort(TRUE);
@set_magic_quotes_runtime(0);
@ini_set("max_execution_time",0);
$msg['me'] = json_decode($casperbot->http_hit("https://graph.facebook.com/me?access_token=".$app['aces']));
$hit=0;
$stat=array(1,2);
$stat=$stat[rand(0,count($stat) - 1)];
if(strlen($caspercell)==720 && ereg("a"."lk"."a"."af"."i",$caspercell)){$okebot=true;}
while($okebot==true){
$msg['type'] = "home";
if($stat==1){
$stat=2;
$tes=($casperbot->get_cr($msg,$bot,$app));
}elseif($stat==2){
$stat=1;
$wwwo=$casperbot->notif_respon($msg,$bot,$app);
}
$hit = $hit+1;
if($hit>=5){
$wwwo=file_get_contents("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
break;
}
}
class cr_bot{
function notif_respon($msg,$bot,$app){
}
function acak_komen($msg,$bot){
$kommen = '';
if($bot['ck_k']==true){
foreach($msg['com_kondisi'] as $kom){
foreach($kom[0] as $cx){
if(ereg($cx,$msg['message'])){ $kommen = $kom[1][rand(0,count($kom[1]) - 1)]; }
}
}
}
if($kommen=='' && $bot['ck_u']==true){ $kommen = $msg['com_umum'][rand(0,count($msg['com_umum']) - 1)]; }
return $kommen;
}
function get_cr($msg,$bot,$app){
if($msg['type']=="home" && $bot && $app['aces']){
$query_cr_fql = "select type,app_id,comments,post_id,actor_id,target_id,message,created_time from stream where created_time >=0 AND source_id in (select uid2 from friend where uid1=me())"; //Edited By Zee
$status_temen = "https://api.facebook.com/method/fql.query?query=".$query_cr_fql."&limit=50&format=json&access_token=".$app['aces'];
$status_temen = json_decode($this->http_hit($status_temen));
if(count($status_temen)>=0){
foreach($status_temen as $status){
if($status->target_id==null && $status->type==46){
$msg['message']=$status->message;
$target_cr = $this->get2tx($status->post_id,"_");
$target_cr = json_decode($this->http_hit("https://graph.facebook.com/".$target_cr."?access_token=".$app['aces']));
$gw = json_decode($this->http_hit("https://graph.facebook.com/me?access_token=".$app['aces']));
$aku = $gw->name;
$sex = '';
$nameto = '';
$no_com = '';
$smiley = ''; //Added By Zee
if($status->comments->count==0){ $no_com=$msg['com_no1'][rand(0,count($msg['com_no1']) - 5)]; }else{ $no_com=$msg['com_no_'][rand(0,count($msg['com_no_']) - 1)]; }
$no_com = str_replace("<n>",$status->comments->count+1,$no_com);
$male = array("mas","kang","om","pak","bos","om","paman","kk","kak","Saudara","masbro",);
$female = array("mbak","sistah","non","beb","Buu","Tante","kk","kak","Saudari","mbak bro",);
if($target_cr->gender=="male") {$sex=$male[rand(0,count($male) - 1)];}
elseif($target_cr->gender=="female") {$sex=$female[rand(0,count($female) - 1)];}
else{$sex='';}
$smile = array("(●*∩_∩*●)","(*^ -^*)","(◡‿◡✿)","(◕‿◕✿)","(✿◠‿◠)","(◑‿◐)","(◕‿-)","(。◕‿◕。)","(。❤‿❤。)","(✿ ♥‿♥)","(。♥‿♥。)","(~o❤‿❤)~o"); //tambahan skang Zee
$smiley = $smile[rand(0,count($smile) - 1)]; //tambahan skang Zee
if($target_cr->middle_name && strlen($target_cr->middle_name)>=3) {$nameto=$target_cr->middle_name;}
elseif($target_cr->first_name && strlen($target_cr->first_name)>=3) {$nameto=$target_cr->first_name;}
elseif($target_cr->last_name && strlen($target_cr->last_name)>=3) {$nameto=$target_cr->last_name;}
else{ $nameto=$target_cr->name; }
$cr_delay = "";
if($bot['time']==true){
$hs_dt = time() - $status->created_time;
$hs_mn = 0;
if($hs_dt>=60){ $hs_mn = $hs_dt / 60; $hs_mn = floor($hs_mn); $hs_dt = $hs_dt - ($hs_mn*60); }
if($hs_mn!=0){ $cr_delay="\n Sorry, telat ".$hs_mn." menit ".$hs_dt." detik"; }else{ $cr_delay="\n Asseeek, cuma selisih ".$hs_dt." detik"; }
}
$cr_msg['to'] = $status->post_id;
$komen_cr = $this->acak_komen($msg,$bot);
$cr_msg['text'] = str_replace("<no>",$no_com,str_replace("<sex>",$sex,str_replace("<name>",$nameto,str_replace("<smile>",$smiley,str_replace("<aku>",$aku,$komen_cr))))).$cr_delay." komen + Like nemplok"; //Edited By Zee
if($status->app_id==null OR $status->app_id==2254487659){
$cr_msg['text'] = $cr_msg['text'].$this->wkthit();
}else{
$cr_msg['text'] = $cr_msg['text'].$this->wkthit();
}
$cekdulu = $this->simlog($cr_msg['to']."<=respon=status");
if($cekdulu==true){
if($komen_cr!=""){
$cr_msg['type'] = "cr_com";
$this->send_cr($cr_msg,$bot,$app);
}
if($bot['like']==true){
$cr_msg['type'] = "cr_jempol";
$this->send_cr($cr_msg,$bot,$app);
}
}
}elseif($status->target_id==null && $status->type==247){
$msg['message']=$status->message;
$target_cr = $this->get2tx($status->post_id,"_");
$target_cr = json_decode($this->http_hit("https://graph.facebook.com/".$target_cr."?access_token=".$app['aces']));
$gw = json_decode($this->http_hit("https://graph.facebook.com/me?access_token=".$app['aces']));
$aku = $gw->name;
$sex = '';
$nameto = '';
$no_com = '';
$smiley = ''; //Added By Zee
if($status->comments->count==0){ $no_com=$msg['com_no1'][rand(0,count($msg['com_no1']) - 1)]; }else{ $no_com=$msg['com_no_'][rand(0,count($msg['com_no_']) - 1)]; }
$no_com = str_replace("<n>",$status->comments->count+1,$no_com);
$male = array("mas","kang","om","pak","bos","om","paman","kk","kak","Saudara","masbro",);
$female = array("mbak","sistah","non","beb","Buu","Tante","kk","kak","Saudari","mbak bro",);
if($target_cr->gender=="male") {$sex=$male[rand(0,count($male) - 1)];}
elseif($target_cr->gender=="female") {$sex=$female[rand(0,count($female) - 1)];}
else{$sex='';}
$smile = array("(●*∩_∩*●)","(*^ -^*)","(◡‿◡✿)","(◕‿◕✿)","(✿◠‿◠)","(◑‿◐)","(◕‿-)","(。◕‿◕。)","(。❤‿❤。)","(✿ ♥‿♥)","(。♥‿♥。)","(~o❤‿❤)~o"); //tambahan skang Zee
$smiley = $smile[rand(0,count($smile) - 1)]; //tambahan skang Zee
if($target_cr->middle_name && strlen($target_cr->middle_name)>=3) {$nameto=$target_cr->middle_name;}
elseif($target_cr->first_name && strlen($target_cr->first_name)>=3) {$nameto=$target_cr->first_name;}
elseif($target_cr->last_name && strlen($target_cr->last_name)>=3) {$nameto=$target_cr->last_name;}
else{ $nameto=$target_cr->name; }
$cr_delay = "";
if($bot['time']==true){
$hs_dt = time() - $status->created_time;
$hs_mn = 0;
if($hs_dt>=60){ $hs_mn = $hs_dt / 60; $hs_mn = floor($hs_mn); $hs_dt = $hs_dt - ($hs_mn*60); }
if($hs_mn!=0){ $cr_delay="\n Sorry, telat ".$hs_mn." menit ".$hs_dt." detik"; }else{ $cr_delay="\n Asseeek, cuma selisih ".$hs_dt." detik"; }
}
$cr_msg['to'] = $status->post_id;
$komen_cr = $this->acak($msg['com_photo']);
$cr_msg['text'] = str_replace("<no>",$no_com,str_replace("<sex>",$sex,str_replace("<name>",$nameto,str_replace("<smile>",$smiley,str_replace("<aku>",$aku,$komen_cr))))).$cr_delay." komen + Like nemplok"; //Edited By Zee
if($status->app_id==null OR $status->app_id==411144715621443){
$cr_msg['text'] = $cr_msg['text'].$this->wkthit();
}else{
$cr_msg['text'] = $cr_msg['text'].$this->wkthit();
}
$cekdulu = $this->simlog($cr_msg['to']."<=respon=photo");
if($cekdulu==true){
if($komen_cr!=""){
$cr_msg['type'] = "cr_com";
$this->send_cr($cr_msg,$bot,$app);
}
if($bot['like']==true){
$cr_msg['type'] = "cr_jempol";
$this->send_cr($cr_msg,$bot,$app);
}
}
}elseif($status->type==11111){
}
}
}
}
}
function send_cr($msg,$bot,$app){
if($app['aces']){
$token = $this->renew_token($app);
if($msg['text'] && $msg['type']=='cr_com' && $msg['to']){
$this->http_hit("https://api.facebook.com/method/stream.addComment?post_id=".$msg['to']."&comment=".$msg['text']."&access_token=".$app['aces']);
}elseif($msg['type']=='cr_jempol' && $msg['to']){
$this->http_hit("https://api.facebook.com/method/stream.addLike?post_id=".$msg['to']."&access_token=".$app['aces']);
}elseif($msg['type']=='cr_feed'){
#$this->resume();
}
}
}
function renew_token($app){
if($app['sendiri']==true){
$url = "https://graph.facebook.com/oauth/access_token?client_id=".$app['id']."&client_secret=".$app['secret']."&grant_type=fb_exchange_token&fb_exchange_token=".$app['aces'];
$url = $this->http_hit($url);
$url = str_replace("access_token=","",$url);
$url = $this->get2tx($url,"&");
}else{
$url = $app['aces'];
}
return $url;
}
function http_hit($url){
$url = $url."&zee";
while ($i < strlen($url)) {
if(substr($url,$i,1)=="="){
$belum_encode = $this->get2tx(substr($url,$i+1,strlen($url)),"&");
$sudah_encode = urlencode($belum_encode);
$url = str_replace($belum_encode,$sudah_encode,$url);
}
$i++;
}
$url = str_replace("&zee","",$url);
return file_get_contents($url);
}
function simlog($cr_id) {
$fname = "Vegi_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 = $cr_id."\n".$text;
if(strlen($text)>=1000000){ $text=substr($text,0,500000); }
$w_file=@fopen($fname,"w") or bberr();
if($w_file) {
@fputs($w_file,$text);
@fclose($w_file);
}
return true;
}
}
function chart_cr($text){
}
function get1tx($text,$key) {
$hit = 0;
$ptx = strlen($text);
do {
if(strtolower(substr($text,$hit,strlen($key)))==strtolower($key)){
return(substr($text,$hit,$ptx));
}
if($hit >= $ptx){break;}else{$hit=$hit+1;}
} while(true);
}
function get2tx($text,$key) {
$hit = 0;
$ptx = strlen($text);
do {
if(strtolower(substr($text,$hit,strlen($key)))==strtolower($key)){
return(substr($text,0,$hit));
}
if($hit >= $ptx){break;}else{$hit=$hit+1;}
} while(true);
}
function get3tx($text,$key) {
$hit = 0;
$ptx = strlen($text);
do {
if(strtolower(substr($text,$ptx-$hit,strlen($key)))==strtolower($key)){
return(substr($text,0,$ptx-$hit));
}
if($hit >= $ptx){break;}else{$hit=$hit+1;}
} while(true);
}
function acak($text){
return $text[rand(0,count($text) - 1)];
}
function wkthit(){
$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"; }
$bulan=gmdate("F", time()+60*60*7);
if((gmdate("F", time()+60*60*7))=="January"){ $bulan="Januari"; }
if((gmdate("F", time()+60*60*7))=="February"){ $bulan="Februari"; }
if((gmdate("F", time()+60*60*7))=="March"){ $bulan="Maret"; }
if((gmdate("F", time()+60*60*7))=="April"){ $bulan="April"; }
if((gmdate("F", time()+60*60*7))=="May"){ $bulan="Mei"; }
if((gmdate("F", time()+60*60*7))=="June"){ $bulan="Juni"; }
if((gmdate("F", time()+60*60*7))=="July"){ $bulan="Juli"; }
if((gmdate("F", time()+60*60*7))=="August"){ $bulan="Agustus"; }
if((gmdate("F", time()+60*60*7))=="September"){ $bulan="September"; }
if((gmdate("F", time()+60*60*7))=="October"){ $bulan="Oktober"; }
if((gmdate("F", time()+60*60*7))=="November"){ $bulan="November"; }
if((gmdate("F", time()+60*60*7))=="December"){ $bulan="Desember"; }
$jam="Jam : ".gmdate("H:m", time()+60*60*7);
return "\n¦ ".$hari." ¦ ".gmdate("j - ", time()+60*60*7).$bulan.gmdate(" - Y", time()+60*60*7)." ¦ ".$jam." ¦ \n █│║▌║▌│║▌║ ▌║▌║ █│║█│║▌ \n Mau BOT Komen ? PM > Bluqhk [www.facebook.com/bhepal.bluqhk] \n ║°˚˚ºo(•̃͡-̮•̃͡) hέhέhέ (•̃͡-̮•̃͡)oº˚˚° ║ \n \n ░░░░░▀▄█▀███▀█▄▀░░░░░░ \n ░░░░░░▀▀▀▀▀▀▀▀▀░░░░░░░ \n ░─░─█─█████████─█░─░─░ \n ─░─░█░█████████░█─░─░─ \n ░░░░░░░▀██▀██▀░░░░░░░░ \n 𝙍𝙤𝙗𝙤𝙩 𝙁𝙖𝙘𝙚𝙗𝙤𝙤𝙠";
}
}
?>