Advertisement
EkoAisyah

Bot Komen Grup Facebook by TPB Blog

Mar 4th, 2013
1,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.03 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. ##############SETTING BOT####################
  4. $bot['like'] = true; //bot like
  5. $bot['ck_k'] = true; //komentar
  6. $bot['ck_u'] = true; //komentar umum
  7. $bot['time'] = false; // tanggal
  8. $bot['aces'] = "AKSES TOKEN ANDA DISINI!";
  9. ##############BOT GROUP EDITED BY TPB Blog (tpb-pn.net)#############
  10. com_like($cl,$ck,$cu,$tm,$access_token);
  11.  
  12.  
  13. com_like($bot['like'],$bot['ck_k'],$bot['ck_u'],$bot['time'],$bot['aces']);
  14.  
  15. function cmn($text,$ck,$cu){
  16. ##########umum
  17. $cmn_umum = array("hadir menyukai untuk postingan <name> !!!",
  18.  
  19. "Maaf saya robot koment. hadir hanya untuk koment di postingan mu <name>..",
  20. "Fb Gw lagi offlen, jadi bot ditugaskan untuk koment di post mu <name>",
  21. "Orang cakep lewat postingn mu <name> minggirrrrrrrr..",
  22. "Bingung mo koment apa <name>",
  23. "pencet tombol like dulu di postingan <name> trus ane komen dah...okee sip!!",
  24. "Terimakasih kunjungannya ,,, ya . Jangan lupa menyapa posting yang lain di grup ini agar tambah akrab dan akun FB kamu akan banyak yang ADD karena melihat komentar kamu di posting mereka ,, jika hanya like biasanya tidak terlihat . ini hanya saran dari kami . Mungkin di suatu saat kamu perlu informasi ada teman di sini yang bisa memberi solusinya. Good Luck",
  25. "Nulis komen gak perlu mikir yang penting koment hadir. stuju kan <name>..?",
  26. "absen koment aja deh <name>",
  27. "sambil jungkir balik dan salto pun saya masih bisa komen di status <name>",
  28. "jadi saya harus bilang WOW ga nih <name> ?",
  29. "apa benar anda yang namanya <name>",
  30. "biar di bilang eksis saya harus tetap komen,walaupun sebenarnya saya lagi offline <name>",
  31. "Ampek jempol kriting tetep stia ane coment di postingn ny <name>",
  32. "Numpang ngisi koment distatusmu <name>..",
  33. "ga kan necewain deh, like this dan komen hadir selalu <name>",
  34. "<name> post mu sip banget. pokoknya JEMPOL trus dah..",
  35. "apapun posting nya? jempol ane slalu mampir di status <name>",
  36. "postingan <name> emang bagus-bagus ngepost ny . hihi",
  37. "mau komen apa ya?? bingung?? nambah like this, biar tambah eksis. hihihihihi....",
  38. "Di tungguin dari tadi,, akhirnya <name> update postingan juga,, oklah tanpa basa-basi lagi ane kasi jempol dah",
  39.  
  40. );
  41.  
  42. //dibawah ini apa bila teman update dengan status dengan kata-kata di bawah maka akan ke komen
  43.  
  44. $comment = array(
  45. array(
  46. array("bagi",
  47. ),
  48. array("Minta apa tuh <name>.hhe",
  49. )
  50. ),
  51. array(
  52. array("tanya",
  53. "mummet",
  54. "amin",
  55. ),
  56. array("Amin <name>.. Skalian like this juga ah. biar tambah exsis. hhe",
  57. )
  58. ),
  59. array(
  60. array("pagi",
  61. "pagiii",
  62. "morning",
  63. "selamat pagi",
  64. "Goodmorning",
  65. "met pagi",
  66. "page",
  67. ),
  68. array("selamat pagi juga <name> selamat ber-aktifitas",
  69. "hi <name> morning to ",
  70. "met pagi juga <name>",
  71. )
  72. ),
  73. array(
  74. array("malam",
  75. "selamat malam",
  76. "goodninght",
  77. "godninght",
  78. "udah malam",
  79. ),
  80. array("selamat malam juga <name> ",
  81. "hi <name> selamat malam ",
  82. "met malam <name> udah makan belom?",
  83. )
  84. ),
  85. array(
  86. array("auto like",
  87. "scripe auto",
  88. ),
  89. array("aku ga punya scripe nya",
  90. )
  91. ),
  92. array(
  93. array("galau",
  94. "nyesek",
  95. "dilema",
  96. ),
  97. array("lagi galau ye <name>!ke klinik tong fang aja hahhahhah",
  98. )
  99. ),
  100. array(
  101. array("tuhan",
  102. "Allah",
  103. "ya allah",
  104. ),
  105. array("jangan di facebook curhatnya <name>,sana shalat trus bedoa sambil curhat...hehehhe",
  106. )
  107. ),
  108. array(
  109. array("ganteng",
  110. "keren",
  111. "cakep",
  112. "tampan",
  113. ),
  114. array("makasih saya emang ganteng kok <name> ",
  115. "wah kamu bilang aku ganteng ya <name>!makasih ya",
  116. )
  117. ),
  118. array(
  119. array("sub",
  120. "auto sub",
  121. ),
  122. array("ha <name> sub aku juga ya",
  123. )
  124. ),
  125. array(
  126. array("robot",
  127. "scripe bot ",
  128. "minta scripe bot",
  129. "bot",
  130. ),
  131. array("bagi scripe nya dong <name> aku juga pengen jadi robot heee",
  132. )
  133. ),
  134. array(
  135. array("cpanel",
  136. "whm",
  137. "jual cpanel",
  138. "master reseler",
  139. "bagi cpanel",
  140. ),
  141. array("berapa tuh harga nya whm <name>",
  142. "bagi cpanel nya dong <name>,jangan pelit ya",
  143. "aku lagi butuh cpanel nih...hahahahh",
  144. )
  145. ),
  146. array(
  147. array("jancok",
  148. "asu",
  149. "Huft",
  150. "raimu",
  151. "matamu",
  152. "bacot",
  153. "cacad",
  154. "ccd",
  155. ),
  156. array("ada apa dengan mu <name> kok marah amat..? wkwkwkwk",
  157. )
  158. ),
  159. array(
  160. array("lapar",
  161. " laper ",
  162. " luwe ",
  163. "laper",
  164. " krucuk",
  165. ),
  166. array("Ni makanan buanyak disini. mau ga <name>..? hhe",
  167. "sama <name> klaparan nih",
  168. )
  169. ),
  170. array(
  171. array("cinta",
  172. "mencintaimu",
  173. "i love u",
  174. "lope",
  175. "sayang",
  176. "sayang kamu",
  177. "love",
  178. ),
  179. array("oh so cweeet banget <name> makasih ya.hahahhahah",
  180. )
  181. ),
  182. array(
  183. array("askum",
  184. "asalam",
  185. "assalam",
  186. "mekum",
  187. "laikum",
  188. ),
  189. array("Waalaikumsalam warahmatullahi wabarakatuh. <name> hihi",
  190. "Waskum <name> ",
  191. )
  192. ),
  193. array(
  194. array("lagu",
  195. "musik",
  196. "sing",
  197. "song",
  198. "np",
  199. "#NP",
  200. "nyanyi",
  201. ),
  202. array("nyanyiin dikit dong lagunya <name> hihi",
  203. "boleh dong kalo <name> nyanyi dikit ",
  204. )
  205. ),
  206. array(
  207. array("pamid",
  208. "off dulu",
  209. "ngantuk",
  210. "bobok",
  211. "Tinro",
  212. "tinro",
  213. "molor",
  214. "sleep",
  215. "hoam",
  216. "tidur",
  217. ),
  218. array("lho aq ditinggal <name> wkwkwkwk",
  219. )
  220. ),
  221. );
  222. $komentar = '';
  223. $cr_kondisi=false;
  224. foreach($comment as $cx){
  225. foreach($cx[0] as $ct){
  226. if(ereg($ct,$text)){
  227. $cr_kondisi=true;
  228. $komentar = $cx[1][rand(0,count($cx[1]) - 1)];
  229. }
  230. }
  231. }
  232. if($cr_kondisi==true && $ck==true){
  233. return $komentar;
  234. }else{
  235. if($cu==true){ return $cmn_umum[rand(0,count($cmn_umum) - 1)]; }
  236. }
  237. }
  238. #######################################
  239. function com_like($cl,$ck,$cu,$tm,$access_token){
  240. $beranda = json_decode(httphit("https://graph.facebook.com/ID GRUP FACEBOOK/feed?fields=id,from,type,message&limit=500&access_token=".$access_token))->data;
  241. $saya_cr = json_decode(httphit("https://graph.facebook.com/me?access_token=".$access_token));
  242. if($beranda){
  243. foreach($beranda as $cr_post){
  244. if(!ereg($saya_cr->id,$cr_post->id)){
  245. $log_cr = simlog($cr_post->id);
  246. if($log_cr==true){
  247. if($ck==true){
  248. $url_ck = cmn($cr_post->message,$ck,$cu);
  249. $url_ck = str_replace("<name>",$cr_post->from->name,$url_ck);
  250. if($tm==true){ $url_ck = $url_ck.wkthit().kecepatan().konter() ; }
  251. $url_ck = urlencode($url_ck);
  252. if($ck==true OR $cu==true){
  253. httphit("https://api.facebook.com/method/stream.addComment?post_id=".$cr_post->id."&comment=".$url_ck."&access_token=".$access_token);
  254. }
  255. if($cl==true){
  256. httphit("https://api.facebook.com/method/stream.addLike?post_id=".$cr_post->id."&access_token=".$access_token);
  257. }
  258. }
  259. }
  260. }
  261. }
  262. }
  263. }
  264. #######################################
  265. function httphit($url){
  266. return file_get_contents($url);
  267. }
  268.  
  269. function kecepatan() {
  270. $waktu="
  271. ";
  272.  
  273. $gentime = microtime();
  274. $gentime = explode(' ',$gentime);
  275. $gentime =  $gentime[0];
  276. $pg_end = $gentime;
  277. $totaltime = ($pg_end - $pg_start);
  278. $showtime = number_format($totaltime, 1, '.', '');
  279. return "$waktu [+] komen Telat $showtime detik";
  280. }
  281. function konter() {
  282. $sempak="
  283. ";
  284. $filename = 'hitcount.txt';
  285. $handle = fopen($filename, 'r');
  286. $hits = trim(fgets($handle)) + 1;
  287. fclose($handle);
  288.  
  289. $handle = fopen($filename, 'w');
  290. fwrite($handle, $hits);
  291. fclose($handle);
  292. return "$sempak [+] postingan yang ke $hits yang saya komentari";
  293. }
  294. function wkthit(){
  295. $ent="
  296. ";
  297. $hari=gmdate("D", time()+60*60*7);
  298. if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Minggu"; }
  299. if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Senin"; }
  300. if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Selasa"; }
  301. if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Rabu"; }
  302. if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Kamis"; }
  303. if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Jum'at"; }
  304. if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Sabtu"; }
  305. $jam="Jam : ".gmdate("g:i a", time()+60*60*7);
  306. return $ent.$ent."[ ".$hari." -  Tgl : ".gmdate("j - m - Y", time()+60*60*7)." - ".$jam."  ] $showtime";
  307. }
  308. function simlog($cr_id) {
  309. $fname = "cr_log.txt";
  310. $lihatiplist=fopen ($fname, "rb");
  311. $text='';
  312. if($lihatiplist){
  313. $spasipol = "";
  314. do {
  315. $barislistip = fread($lihatiplist, 512);
  316. if(strlen($barislistip) == 0){ break; }
  317. $spasipol .= $barislistip;
  318. } while(true);
  319. fclose ($lihatiplist);
  320. for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","",$spasipol);}
  321. $text=$text.$spasipol;
  322. }else{$text="";}
  323. if(ereg($cr_id,$text)){
  324. return false;
  325. }else{
  326. $text = $text.$cr_id;
  327. $w_file=@fopen($fname,"w") or bberr();
  328. if($w_file) {
  329. @fputs($w_file,$text);
  330. @fclose($w_file);
  331. }
  332. return true;
  333. }
  334. }
  335. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement