Facebook
From Kfldkx, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 255
  1. /*
  2.    ___ _________    ____   ___ _____   _       _ ___ _____ _____ __  __
  3.   ( _ )___ /___ \  | __ ) / _ \_   _| | |     | |_ _|_   _| ____|  \/  |
  4.   / _ \ |_ \ __) | |  _ \| | | || |   | |  _  | || |  | | |  _| | |\/| |
  5.  | (_) |__) / __/  | |_) | |_| || |   | | | |_| || |  | | | |___| |  | |
  6.   \___/____/_____| |____/ \___/ |_|   | |  \___/|___| |_| |_____|_|  |_|
  7.                                       |_|                              
  8. */
  9.  
  10. const botconfig = require("./botconfig.json");
  11. const Discord = require("discord.js");
  12. const figlet = require('figlet');
  13. const cowsay = require('cowsay');
  14. const request = require('request');
  15. const validate = require('ytdl-core');
  16. const ascii = require("moment");
  17. const steam = require('steam-provider')
  18. let provider = new steam.SteamProvider();
  19.  
  20. const bot = new Discord.Client({disableEveryone: true});
  21.  
  22. bot.on("ready", async () => {
  23.     console.log(`${bot.user.username} şuan aktif!`);
  24.     bot.user.setActivity('832 | JITEM - 8!komutlar..');
  25.  
  26. });
  27.  
  28. bot.on("message", async message => {
  29.        
  30.         if(message.author.bot) return;
  31.         if(message.channel.type === "dm") return;
  32.          
  33.         let prefix = botconfig.prefix;
  34.         let messageArray = message.content.split(" ");
  35.         let cmd = messageArray[0];
  36.         let args = messageArray.slice(1);
  37.  
  38.         if(cmd === `${prefix}kick`) {
  39.                 let kUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));
  40.                 if(!kUser) return message.channel.send(":warning: Atmak istediğiniz kullanıcıyı etiketlemelisiniz. Örnek: ``8!kick @832 BOT``");
  41.                 let kReason = args.join(" ").slice(22);
  42.                 if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu komutu kullanabilmek için yeterli yetkide değilsiniz.");
  43.                 if(kUser.id == message.author.id) return message.channel.send(":warning: Kendini atamazsın.");
  44.        message.channel.send(":white_check_mark: Etiketlediğiniz kullanıcı başarıyla tekmelendi.");
  45.                 message.guild.member(kUser).kick(kReason);
  46.         }
  47.  
  48.         if(cmd === `${prefix}ban`) {
  49.         let bUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));
  50.                 if(!bUser) return message.channel.send(":warning: Yasaklamak istediğiniz kullanıcıyı etiketlemelisiniz. Örnek: ``8!ban @832 BOT``");
  51.                 let bReason = args.join(" ").slice(22);
  52.                 if(!message.member.hasPermission("MANAGE_MEMBERS")) return message.channel.send(":warning: Bu komutu kullanabilmek için yeterli yetkide değilsiniz.");
  53.                 if(bUser.id == message.author.id) return message.channel.send(":warning: Kendini yasaklayamazsın.");
  54.        message.channel.send(":white_check_mark: Etiketlediğiniz kullanıcı başarıyla yasaklandı.");
  55.                 message.guild.member(bUser).ban(bReason);
  56.         }
  57.  
  58.         if(cmd === `${prefix}sunucubilgisi`){
  59.                 let sicon = message.guild.iconURL;
  60.         let day = message.guild.createdAt.getDate()
  61.         let month = 1 + message.guild.createdAt.getMonth()
  62.         let year = message.guild.createdAt.getFullYear()
  63.                 let serverembed = new Discord.RichEmbed()
  64.                 .setDescription("832 BOT - Sunucu Bilgisi")
  65.                 .setColor("#990000")
  66.                 .setThumbnail(sicon)
  67.                 .addField("Sunucu İsmi", message.guild.name, true)
  68.                 .addField("Kurucusu", message.guild.owner, true)
  69.         .addField('Sunucu Bölgesi', message.guild.region, true)
  70.                 .addField("Kuruluş Tarihi", `${day}.${month}.${year}`, true)
  71.                 .addField("Sunucu ID", "414892273684316161")
  72.         .addField("Toplam Rol", message.guild.roles.size)
  73.                 .addField("Toplam Kullanıcı", message.guild.memberCount)
  74.         .addField('Toplam Kanal', message.guild.channels.size)
  75.         .setFooter(`${message.author.username} tarafından istendi.`);
  76.                 message.channel.send(serverembed);
  77.         }
  78.  
  79.         if(cmd === `${prefix}jitembilgisi`){        
  80.         let sicon = message.guild.iconURL;
  81.                 let jitemembed = new Discord.RichEmbed()
  82.                 .setDescription("JITEM - Klanı Hakkında")
  83.                 .setColor("#990000")
  84.         .setThumbnail(sicon)
  85.                 .addField("Kurucumuz", "Yesil", true)
  86.                 .addField("Bulunduğumuz Sunucular", "Yok", true)
  87.                 .addField("Toplam Üye Sayısı", "21", true)
  88.                 .addField("Toplam Genel Başkan", "1", true)
  89.                 .addField("Toplam Baş Vekil", "1")
  90.                 .addField("Toplam Genel Başkan Vekili", "2")
  91.                 .addField("Toplam Vekil Sekreteri", "2")
  92.                 .addField("Toplam Sözcü", "2")
  93.                 .addField("Kuruluş Yılı", "2015")
  94.         .addField("WebSite", "``'Yakında'``")
  95.         .addField("Forum", "``'Yakında'``")
  96.         .addField(`PawnoTurk Konumuz`, `https://www.pawnoturk.com/forum/topluluklar/tekrardan-yukselen-bir-ses-'jitem-!'/)`)
  97.         .setFooter(`${message.author.username} tarafından istendi.`);
  98.                 message.channel.send(jitemembed);
  99.         }
  100.  
  101.  
  102.         if(cmd === `${prefix}botbilgisi`){
  103.  
  104.                 let bicon = bot.user.displayAvatarURL;
  105.                 let botembed = new Discord.RichEmbed()
  106.                 .setDescription("832 BOT - BOT Bilgisi")
  107.                 .setColor("#990000")
  108.                 .setThumbnail(bicon)
  109.                 .addField("Bot İsmi", bot.user.username, true)
  110.                 .addField("Sahip", "JITEM#0001", true)
  111.                 .addField("Bot Amacı", "832 Bot JITEM klanı tarafından tasarlanmıştır. Tüm discord sunucuları içerisinde kullanıma açıktır.", true)
  112.                 .addField("Prefix", "'8!'", true)
  113.                 .addField("Yapım Tarihi", "29/01/2019 - 00:45", true)
  114.         .setFooter(`${message.author.username} tarafından istendi.`);
  115.                 message.channel.send(botembed);
  116.         }
  117.  
  118.         if(cmd === `${prefix}komutlar`){
  119.  
  120.                 message.channel.send('```832 BOT | Komutlar\n\n» Yönetici Komutları:     8!yönetici\n» Eğlence Komutları:     8!eğlence\n» Genel Bot Komutları:     8!genel```');
  121.        
  122.         }
  123.  
  124.         if(cmd === `${prefix}genel`){
  125.  
  126.                 message.channel.send('```832 BOT | Genel\n\n» 8!botbilgisi: (832 Bot bilgilerini gösterir.)\n» 8!sunucubilgisi: (Sunucu bilgilerini gösterir.)\n» 8!jitembilgisi: (JITEM genel klan bilgilerini gösterir.)\n» 8!avatar: (Etiketlediğiniz kullanıcının avatarınızı gösterir.)\n» 8!yardım: (Bot hakkında size özel mesaj yoluyla yardım mesajı gönderir.)\n» 8!yazdır: (Yazdırmak istediğiniz mesajı yazarsınız, bot yazdığınız mesajı kendi adına yazar.)\n» 8!steamoyun: (Yazdığınız oyun hakkında ortaya bilgiler döker.)\n» 8!topsunucu: (Botun bulunduğu en fazla kullanıcı bulunan sunucuları ortaya döker.)\n» 8!ping: (BOT ve API pingini gösterir.)\n» 8!google: (Yazdığınız metni google linki olarak hazırlar.)\n» 8!youtube: (Yazdığınız metni youtube linki olarak hazırlar.)```');
  127.  
  128.         }
  129.  
  130.         if(cmd === `${prefix}eğlence`){
  131.  
  132.                 message.channel.send("```832 BOT | Eğlence\n\n» 8!öp: (Etiketlediğiniz kullanıcıyı öper.)\n» 8!yumrukat: (Etiketlediğiniz kullanıcıya yumruk atar.)\n» 8!bangif: (Admin ban gifi gönderir.)\n» 8!kaçcm: (Malafatın kaç santimetre olduğunu gösterir.)\n» 8!espri: (Çeşit çeşit espri gönderir.)\n» 8!yemekye: (Yemek yeme gif'i gönderir.)\n» 8!caps: (Çeşit çeşit caps gönderir.)\n» 8!köpek: (Çeşit çeşit köpek gif'i gönderir.)\n» 8!kedi: (Çeşit çeşit kedi gif'i gönderir.)\n» 8!lotto: (Şanslı olduğunuz lotto numarasını gösterir.)\n» 8!şanslıgün: (Şanslı olduğunuz günü gösterir.)\n» 8!ascii: (Şekilli yazı yazar.)\n» 8!yazıtura: (Yazı tura atar.)\n» 8!say2: (Yazdığınız mesajı silaha yazdırır.)\n» 8!cowsay: (Yazdığınız mesajı ineğe yazdırır.)```");
  133.         }
  134.  
  135.         if(cmd === `${prefix}yönetici`){
  136.  
  137.                 message.channel.send("```832 BOT | Yönetici\n\n» 8!duyuru: (Sunucu içinde duyuru yapar.)\n» 8!clear: (Yazdığınız sayı kadar mesaj siler.)\n» 8!ban: (Etiketlediğiniz kullanıcıyı sunucudan yasaklar.)\n» 8!kick: (Etiketlediğiniz kullanıcı sunucudan atar.)```");
  138.         }
  139.  
  140.         if(cmd === `${prefix}google`) {
  141.                 let googlepng = "https://www.festisite.com/static/partylogo/img/logos/google.png"
  142.                 let google = args.slice(0).join('+');
  143.  
  144.         let link = `https://www.google.com/search?q=` + google;
  145.         if(!link) return message.channel.send(":warning: Link bulunamadı. Linksiz arama yapılamaz.")
  146.         if(!args[0]) return message.channel.send(":warning: Aradığın cümleyi girmelisin. Örnek: ``8!google Discord``")      
  147.                 let googleembed = new Discord.RichEmbed()
  148.  
  149.                 .setColor("#990000")
  150.         .setDescription("832 BOT - Google Aratma")
  151.                 .setThumbnail(googlepng)
  152.                 .addField("Aranan Cümle", `**${args.slice(0).join(' ')}**`)
  153.                 .addField('Sonuç', `**${link}**`)
  154.                 .setFooter(`${message.author.username} tarafından istendi.`);
  155.                 message.channel.send(googleembed);
  156.         }
  157.  
  158.         if(cmd === `${prefix}youtube`) {
  159.                 let youtubepng = "https://www.un-igrac.org/sites/default/files/YouTube%20logo.png"
  160.                 let youtube = args.slice(0).join('+');
  161.  
  162.         let link = `https://www.youtube.com/results?search_query=` + youtube;
  163.         if(!link) return message.channel.send(":warning: Link bulunamadı. Linksiz arama yapılamaz.")
  164.         if(!args[0]) return message.channel.send(":warning: Aradığın cümleyi girmelisin. Örnek: ``8!youtube Discord``")      
  165.                 let embed = new Discord.RichEmbed()
  166.  
  167.                 .setColor("#990000")
  168.         .setDescription("832 BOT - Youtube Aratma")
  169.                 .setThumbnail(youtubepng)
  170.                 .addField("Aranan Cümle", `**${args.slice(0).join(' ')}**`)
  171.                 .addField('Sonuç', `**${link}**`)
  172.                 .setFooter(`${message.author.username} tarafından istendi.`);
  173.                 message.channel.send(embed);
  174.         }
  175.  
  176.         if(cmd === `${prefix}avatar`) {
  177.                 let user;
  178.  
  179.                 if (message.mentions.users.first()) {
  180.                   user = message.mentions.users.first();
  181.                 } else {
  182.                         user = message.author;
  183.                 }
  184.      
  185.                 const member = message.guild.member(user);
  186.                 let avatar = user.displayAvatarURL;
  187.         let avatarembed = new Discord.RichEmbed()
  188.         .setColor("#990000")
  189.         .setImage(avatar)
  190.                 .setFooter(`${message.author.username} tarafından istendi.`);
  191.         message.channel.send(avatarembed);
  192.     }
  193.  
  194.   if(cmd === `${prefix}clear`) {
  195.       if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu komutu kullanabilmek için yeterli yetkiniz yok.");
  196.               if(!args[0]) return message.channel.send(":warning: Silmek istediğiniz mesaj sayısını girin. Örnek: ``!clear 10``");
  197.                         message.channel.bulkDelete(args[0]).then(() => {
  198.                         message.channel.send(`:white_check_mark: ${args[0]} mesaj silindi.`).then(msg => msg.delete(2000));
  199.                 });
  200.   }
  201.    
  202.   if(cmd === `${prefix}temizle`) {
  203.       if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu komutu kullanabilmek için yeterli yetkide değilsiniz.");
  204.               if(!args[0]) return message.channel.send(":warning: Silmek istediğiniz mesaj sayısını girin. Örnek: ``!clear 10``");
  205.                         message.channel.bulkDelete(args[0]).then(() => {
  206.                         message.channel.send(`:white_check_mark: ${args[0]} mesaj silindi.`).then(msg => msg.delete(2000));
  207.                 });
  208.   }
  209.  
  210.   if(cmd === `${prefix}botstatus`) {
  211.     let args = message.content.split(" ").slice(1);
  212.     let stat
  213.   }
  214.  
  215.   if(cmd === `${prefix}yardım`) {
  216.            if (message.channel.type !== 'dm') {
  217.     const ozelmesajkontrol = new Discord.RichEmbed()
  218.     .setColor('#990000')
  219.     .setDescription(':white_check_mark: Özel mesajlarını kontrol et.')
  220.         .setFooter(`${message.author.username} tarafından istendi.`)
  221.     message.channel.sendEmbed(ozelmesajkontrol) }
  222.         const pingozel = new Discord.RichEmbed()
  223.     .setColor('#990000')
  224.         .setDescription('832 bot, JITEM klanı tarafından tasarlanmıştır.\nKomutlar hakkında bilgi sahibi olmak istiyorsan ``8!komutlar`` yazman yeterlidir.\n\nSaygılarımızla, JITEM.')
  225.     .setFooter(`${message.author.username} tarafından istendi.`)
  226.         return message.author.sendEmbed(pingozel)
  227.        
  228. }
  229.  
  230.   if(cmd === `${prefix}ping`) {
  231.     let botping = new Date() - message.createdAt;
  232.      let embed = new Discord.RichEmbed()
  233.      .setColor('#990000')
  234.      .addField(':fire: Bot PING', Math.floor(bot.ping), true)
  235.      .addField(':fire: API PING', Math.floor(botping), true)
  236.      .setFooter(`${message.author.username} tarafından istendi.`);
  237.     message.channel.send(embed);
  238.   }
  239.  
  240. if(cmd === `${prefix}yazdır`) {
  241.         let mesaj = args.slice(0).join(' ');
  242.         if (mesaj.length < 1) return message.channel.send(':warning: Ne yazmamı istersin? Örnek: ``8!yazdır Selam``');
  243.     message.delete();
  244.     const embed = new Discord.RichEmbed()
  245.     .setColor('#990000')
  246.     .setDescription(`${mesaj}`)
  247.         .setFooter(`${message.author.username} tarafından istendi.`);
  248.     return message.channel.sendEmbed(embed);
  249. }
  250.  
  251.   if(cmd === `${prefix}say2`) {
  252.      let mesaj = args.slice(0).join(' ');
  253.     if(mesaj.length < 1) return message.channel.send(':warning: Ne yazmamı istersin? Örnek: ``8!say2 tatata``');
  254.     message.delete();
  255.     message.channel.send(`(╯°□°)--︻╦╤─ - - - **${mesaj}**`);
  256.   }
  257.  
  258.   if(cmd === `${prefix}duyuru`) {
  259.          let mesaj = args.slice(0).join(' ');
  260.          let sicon = message.guild.iconURL;
  261.           if (!message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(':warning: Bu komut için gerekli yetkiye sahip değilsin.');
  262.                 if (mesaj.length < 1) return message.channel.send(':warning: Duyurulacak cümleyi yazın.');
  263.                 message.delete();
  264.                 const embed = new Discord.RichEmbed()
  265.                 .setThumbnail(sicon)
  266.                 .setColor('#990000')
  267.                 .setDescription(`${mesaj}`)
  268.                 .setFooter(`${message.author.username} tarafından istendi.`);
  269.                 return message.channel.send(embed);
  270. }
  271.  
  272.  if(cmd === `${prefix}steamoyun`) {
  273.         let game = args[0]
  274.     let steampng = "https://upload.wikimedia.org/wikipedia/commons/c/c1/Steam_Logo.png"
  275.     if (!game) return message.channel.send(':warning: Aradığınız oyunun ismini yazınız. Örnek: `8!oyunsteam CS:GO`')
  276.     provider.search(game).then(result => {
  277.     provider.detail(result[0].id, "turkey", "tr").then(results => {
  278.     console.log(results)
  279.     const embed = new Discord.RichEmbed()
  280.     .setThumbnail(steampng)
  281.         .setColor("#990000")
  282.     .setTitle(result[0].name)
  283.     .addField(`Oyunun ID'sı`, result[0].id, true)
  284.     .addField('Oyun Türü', results.genres, true)
  285.     .addField('Oyun Fiyatı', `Fiyat **${results.priceData.initialPrice}** TL`, true)
  286.     .addField('Sistemleri', results.otherData.platforms, true)
  287.     .addField('Oyun Geliştiricileri', results.otherData.developer, true)
  288.         .addField('Oyun Yayımcıları', results.otherData.publisher, true)
  289.     .setColor("#990000")
  290.     message.channel.send(embed).catch(e => {
  291.                  message.channel.send(':warning: Aradığınız oyun bulunamadı.')
  292.     })
  293. })
  294. })
  295.   }
  296.  
  297.         if(cmd === `${prefix}topsunucu`) {
  298.                 if (bot.guilds.size < 5) return message.channel.send(':warning: Bu komutu kullanabilmek için botun **en az 5** sunucuda bulunması gerekmektedir.')
  299.                
  300.                 const top = bot.guilds.sort((a,b)=>a.memberCount-b.memberCount).array().reverse()
  301.                 const embed = new Discord.RichEmbed()
  302.                 .setColor("#990000")
  303.                 .setTitle("832 - Top Sunucu")
  304.                 .addField(`1-) **${top[0].name}**`, `» ${top[0].memberCount} Kullanıcı bulunmaktadır.`)
  305.                 .addField(`2-) **${top[1].name}**`, `» ${top[1].memberCount} Kullanıcı bulunmaktadır.`)
  306.                 .addField(`3-) **${top[2].name}**`, `» ${top[2].memberCount} Kullanıcı bulunmaktadır.`)
  307.                 .addField(`4-) **${top[3].name}**`, `» ${top[3].memberCount} Kullanıcı bulunmaktadır.`)
  308.                 .addField(`5-) **${top[4].name}**`, `» ${top[4].memberCount} Kullanıcı bulunmaktadır.`)
  309.                 .setFooter(`${message.author.username} tarafından istendi.`);
  310.                 message.channel.send(embed);
  311.         }
  312.  
  313.        
  314.        
  315.         /* ============================================================================================================================== */
  316.   if(cmd === `${prefix}bangif`) {
  317.           const embed = new Discord.RichEmbed()
  318.           .setColor('#990000')
  319.           .setImage(`https://images-ext-1.discordapp.net/external/171uiKxRgITAipvhLwQWRN0gDHVsry0MC9oYnff9Vnw/http/i.imgur.com/O3DHIA5.gif`)
  320.           return message.channel.send(embed);
  321.   }
  322.  
  323.   if(cmd === `${prefix}kaçcm`) {
  324.           let sonuc = ["0 Santimetre - YOK\n```Ɛ>```","1 Santimetre - Bamya\n```Ɛ->```","2 Santimetre - Bamya\n```Ɛ-->```","3 Santimetre - Bamya\n```Ɛ--->```","4 Santimetre - Bamya\n```Ɛ---->```","5 Santimetre - Bamya\n```Ɛ----->```","6 Santimetre - Bamya\n```Ɛ------>```","7 Santimetre - Bamya\n```Ɛ------->```","8 Santimetre - Bamya\n```Ɛ-------->```","9 Santimetre - Gelişiyor\n```Ɛ--------->```","10 Santimetre - Normal\n```Ɛ---------->```","11 Santimetre - Normal\n```Ɛ----------->```","12 Santimetre - Normal\n```Ɛ------------>```","13 Santimetre - Normal\n```Ɛ------------->```", "14 Santimetre - Normal\n```Ɛ-------------->```", "15 Santimetre - Uzun Çomak\n```Ɛ--------------->```", "16 Santimetre - Uzun Çomak\n```Ɛ---------------->```", "17 Santimetre - Soba Borusu\n```Ɛ----------------->```\n", "18 Santimetre - Soba Borusu\n```Ɛ------------------>", "19 Santimetre - Çam Ağacı\n```Ɛ------------------->```", "20 Santimetre - Çam Ağacı\n```Ɛ-------------------->```", "100 Santimetre - Meteor Yağmuru\n```Ɛ∞>```"];
  325.           let result = Math.floor((Math.random() * sonuc.length));
  326.          
  327.           let kacembed = new Discord.RichEmbed()
  328.           .setColor("#990000")
  329.           .addField(`:middle_finger: Sayın ${message.author.username} malafatınızın boyu`, sonuc[result])
  330.           .setFooter(`${message.author.username} tarafından istendi.`);
  331.           message.channel.send(kacembed);
  332.   }
  333.  
  334.   if(cmd === `${prefix}espri`) {
  335.           let espri = ["Ben Yedigün içiyorum sen Onbeşgün iç.", "Sinemada on dakika ara dedi, aradım aradım açmadı.", "Yeni yapılmış resimlere ne denir? - Nevresim", "Bir romanı 7 kız yazarsa nolur? - Seven kızın romanı", "-Acıkan var mı ya? - Yok bizde tatlı kan var", "Asker adın ne? - -Emre-DERSİNİZ komutanım", "Bizim CD sürücümüz ehliyeti nerden almış acaba ?", "Ben hikaye yazarım. - Ebru Destan", "Geçen ‘fil’e çorap aldım, zürafaya almadım."];
  336.           let result = Math.floor((Math.random() * espri.length));
  337.          
  338.           let espriembed = new Discord.RichEmbed()
  339.           .setDescription(espri[result])
  340.           .setColor("#990000")
  341.           .setFooter(`${message.author.username} tarafından istendi.`);
  342.           message.channel.send(espriembed);
  343.   }
  344.  
  345.   if(cmd === `${prefix}yemekye`) {
  346.           let yemek = ['https://i.gifer.com/Sarp.gif', 'https://gifimage.net/wp-content/uploads/2017/11/eat-gif.gif', 'https://media0.giphy.com/media/7pBsbcj1vZXmo/200w_s.gif', 'https://www.parhlo.com/wp-content/uploads/2016/01/16_things_that_happen_in_every_girls_hostel_8.gif', 'https://i.gifer.com/y4a.gif', 'https://i.gifer.com/1RL.gif'];
  347.           let result = Math.floor((Math.random() * yemek.length));
  348.           let yemekembed = new Discord.RichEmbed()
  349.           .setColor("#990000")
  350.           .setImage(yemek[result])
  351.           message.channel.send(yemekembed);
  352.   }
  353.  
  354.   if(cmd === `${prefix}caps`) {
  355.           let caps = ['http://i.capsspot.com/s/25/3/1162910.jpg', 'https://foto.haberler.com/galeri/2015/03/16/ygs-2015-caps-leri-costurdu_52781_b.jpg', 'http://i.hurimg.com/i/hurriyet/75/750x422/55ea20a9f018fbb8f86cea2f.jpg', 'https://i.ytimg.com/vi/IOZNZN2YOgQ/maxresdefault.jpg', 'https://i.ytimg.com/vi/8xnbNstbtq0/hqdefault.jpg', 'http://i.capsspot.com/s/29/5/1137249.png', 'http://c12.incisozluk.com.tr/res/incisozluk//11500/6/563006_o9013.png', 'https://pbs.twimg.com/media/CHRyC2rUsAAuGJR.jpg'];
  356.           let result = Math.floor((Math.random() * caps.length));
  357.           let capsembed = new Discord.RichEmbed()
  358.           .setColor("#990000")
  359.           .setImage(caps[result])
  360.           message.channel.send(capsembed);
  361.   }
  362.  
  363.   if(cmd === `${prefix}köpek`) {
  364.           let köpek = ['https://thumbs.gfycat.com/CarefulGiftedKookaburra-size_restricted.gif', 'https://thumbs.gfycat.com/PreciousCleanIberianemeraldlizard-small.gif', 'https://thumbs.gfycat.com/ActualVapidBongo-small.gif', 'https://thumbs.gfycat.com/GlumEnragedAntarcticfurseal-size_restricted.gif', 'https://thumbs.gfycat.com/BackSimpleBeaver-small.gif', 'https://thumbs.gfycat.com/WarmheartedDetailedHart-small.gif', 'https://thumbs.gfycat.com/DismalWealthyBear-size_restricted.gif', 'https://thumbs.gfycat.com/DeadPoshAngelfish-size_restricted.gif', ''];
  365.           let result = Math.floor((Math.random() * köpek.length));
  366.           let köpekembed = new Discord.RichEmbed()
  367.           .setColor("#990000")
  368.           .setImage(köpek[result])
  369.           message.channel.send(köpekembed);
  370.   }
  371.  
  372.   if(cmd === `${prefix}kedi`) {
  373.           let kedi = ['https://media.giphy.com/media/PcwpnqpwAfRK/giphy.gif', 'https://media.giphy.com/media/26FPCXdkvDbKBbgOI/giphy.gif', 'https://media.giphy.com/media/nNxT5qXR02FOM/giphy.gif', 'https://media.giphy.com/media/fAT2Db0j0Mblu/giphy.gif', 'https://media.giphy.com/media/3o85xoi6nNqJQJ95Qc/giphy.gif', 'https://media.giphy.com/media/ExMGjbktr4phe/giphy.gif', 'https://media2.giphy.com/media/kIkwipWRoqeUE/giphy.gif', 'https://media.giphy.com/media/UmO1IuCwW14k/giphy.gif'];
  374.           let result = Math.floor((Math.random() * kedi.length));
  375.           let kediembed = new Discord.RichEmbed()
  376.           .setColor("#990000")
  377.           .setImage(kedi[result])
  378.           message.channel.send(kediembed);
  379.   }
  380.  
  381.   if(cmd === `${prefix}lotto`) {
  382.           let sayi = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43"];
  383.           let result = Math.floor((Math.random() * sayi.length));
  384.          
  385.           let kediembed = new Discord.RichEmbed()
  386.           .setColor("#990000")
  387.           .setDescription(`:bulb: Lotto numaranız ${sayi[result]} bu sayıya dikkat edin ${message.author.username}.`)
  388.           .setFooter(`${message.author.username} tarafından istendi.`);
  389.           message.channel.send(kediembed);
  390.   }
  391.  
  392.   if(cmd === `${prefix}şanslıgün`) {
  393.           let gün = ["Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar"];
  394.           let result = Math.floor((Math.random() * gün.length));
  395.          
  396.           let günembed = new Discord.RichEmbed()
  397.           .setColor("#990000")
  398.           .setDescription(`:bulb: Sayın ${message.author.username} şanslı gününüz ${gün[result]}.`)
  399.           .setFooter(`${message.author.username} tarafından istendi.`);
  400.           message.channel.send(günembed);
  401.   }
  402.  
  403.   if(cmd === `${prefix}yazıtura`) {
  404.           let yazıtura = ["Yazı", "Tura", "Dik"];
  405.           let result = Math.floor((Math.random() * yazıtura.length));
  406.    
  407.           let yazıturaembed = new Discord.RichEmbed()
  408.           .setColor('#990000')
  409.           .setThumbnail('https://upload.wikimedia.org/wikipedia/commons/6/64/1TL_obverse.png')
  410.           .setDescription(`:bulb: Attığınız para ${yazıtura[result]} çıktı.`)
  411.           .setFooter(`${message.author.username} tarafından istendi.`);
  412.           message.channel.send(yazıturaembed);
  413.   }
  414.  
  415.         if(cmd === `${prefix}ascii`) {
  416.                 if(args.join(' ').length > 70) return message.channel.send(`:warning: Maximum 70 karakter girebilirsin.`)
  417.  
  418.                 if(!args[0]) return message.channel.send(':warning: Ne yazmamı istiyorsun? Örnek: ``8!ascii 832 BOT``');
  419.  
  420.                 figlet(`${args.join(' ')}`, function(err, data) {
  421.                         if (err) {
  422.                                 console.log('HATA');
  423.                                 console.dir(err);
  424.                                 return;
  425.                         }
  426.  
  427.                         message.channel.send(`${data}`, {code: 'AsciiArt'});
  428.                 });
  429.         }
  430.        
  431.         if(cmd === `${prefix}çekiliş`) {
  432.                 let çekilişembed = new Discord.RichEmbed()
  433.                 .setColor('#990000')
  434.                 .setTitle('832 BOT - Çekiliş')
  435.                 .setDescription(`:confetti_ball: Çekilişi kazanan **${message.guild.members.random().displayName}** TEBRİKLER!`)
  436.                 .setFooter(`${message.author.username} tarafından istendi.`);
  437.                 message.channel.send(çekilişembed);
  438.         }
  439.  
  440.         if(cmd === `${prefix}cowsay`) {
  441.             let text = args.join(" ");
  442.             if(!args.join(" ")) return message.channel.send(':warning: Ne yazmamı istersin? Örnek: ``8!cowsay İnek``');
  443.             message.channel.send("```" + cowsay.say({
  444.                 text : text
  445.             }) + "```")
  446.         }
  447.        
  448.         if(cmd === `${prefix}öp`) {
  449.         let mesaj = args.slice(0).join(' ');
  450.         let resim = ["ttps://media.giphy.com/media/AdyM4dgWi9XNu/giphy.gif", "https://howtokissgifs.com/wp-content/uploads/2015/03/kiss-gif-5.gif", "https://media.giphy.com/media/YLduinEW3YuVG/giphy.gif", "https://media3.giphy.com/media/3osxYpWPiQ5UPHsyas/giphy.gif"];
  451.         let result = Math.floor((Math.random() * resim.length));
  452.         if (mesaj.length < 1) return message.channel.send(':warning: Öpeceğin kişiyi etiketlemelisin. Örnek ``8!öp @832 BOT``');
  453.         const embed = new Discord.RichEmbed()
  454.         .setAuthor('')
  455.         .setColor("#990000")
  456.         .setDescription(`${message.author.username},` + mesaj + ' isimli kullanıcıyı öptü.')
  457.         .setImage(`${resim[result]}`)
  458.         .setFooter(`${message.author.username} tarafından istendi.`);
  459.         message.channel.sendEmbed(embed);
  460.         }
  461.        
  462.         if(cmd === `${prefix}yumrukat`) {
  463.         let mesaj = args.slice(0).join(' ');
  464.         let resim = ["https://media1.tenor.com/images/4586b72e5e36fec52202b9c42d8b8dd6/tenor.gif", "https://media.giphy.com/media/ZZsSZ0R9pnzeo/giphy.gif", "http://media.giphy.com/media/LI8IW6561s9pu/giphy.gif", "https://media.giphy.com/media/fO1c8eUlcx2bS/giphy.gif"];
  465.         let result = Math.floor((Math.random() * resim.length));
  466.         if (mesaj.length < 1) return message.channel.send(':warning: Yumruk atacağın kişiyi etiketlemelisin. Örnek ``8!yumrukat @832 BOT``');
  467.         const embed = new Discord.RichEmbed()
  468.         .setAuthor('')
  469.         .setColor("#990000")
  470.         .setDescription(`${message.author.username},` + mesaj + ' isimli kullanıcıya yumruk attı.')
  471.         .setImage(`${resim[result]}`)
  472.         .setFooter(`${message.author.username} tarafından istendi.`);
  473.         message.channel.sendEmbed(embed);
  474.         }
  475.        
  476.         if(cmd === `${prefix}parmakat`) {
  477.         let mesaj = args.slice(0).join(' ');
  478.         let resim = ["https://media1.tenor.com/images/097f4acb5c07a6977bfa264a9c431f67/tenor.gif", "https://media1.tenor.com/images/11b78ee75c7fef4fac5bb8c81a30a0ab/tenor.gif", "https://media.giphy.com/media/fAIG78K04OaI/giphy.gif", "https://galeri7.uludagsozluk.com/257/popoya-saplak_369345.gif"];
  479.         let result = Math.floor((Math.random() * resim.length));
  480.         if (mesaj.length < 1) return message.channel.send(':warning: Parmak atacağın kişiyi etiketlemelisin. Örnek ``8!parmakat @832 BOT``');
  481.         const embed = new Discord.RichEmbed()
  482.         .setAuthor('')
  483.         .setColor("#990000")
  484.         .setDescription(`${message.author.username},` + mesaj + ' isimli kullanıcıya parmak attı.')
  485.         .setImage(`${resim[result]}`)
  486.         .setFooter(`${message.author.username} tarafından istendi.`);
  487.         message.channel.sendEmbed(embed);
  488.         }
  489.  
  490. });
  491.    
  492.  bot.login('NTI1OTM5NDczODcyMzIyNTYy.DzD-FQ.zk5uz43LlJPXJciGAU_-Rt9q088');
  493. //bot.login('NTQwMjM4MDg5OTc3NzI0OTUw.DzT2sg.OHhAgmTIR0amcEYNkj95Ng1-Wx8');