Facebook
From Insensitive Curlew, 9 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 91
  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.  
  25.         bot.user.setActivity('832 | JITEM - 8!komutlar');
  26.  
  27. });
  28.  
  29. bot.on("message", async message => {
  30.        
  31.   if(message.author.bot) return;
  32.   if(message.channel.type === "dm") return;
  33.  
  34.   let prefix = botconfig.prefix;
  35.   let messageArray = message.content.split(" ");
  36.   let cmd = messageArray[0];
  37.   let args = messageArray.slice(1);
  38.  
  39.   if(cmd === `${prefix}kick`) {
  40.         let kUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));
  41.     if(!kUser) return message.channel.send(":warning: Atmak istedi─činiz kullan─▒c─▒y─▒ etiketlemelisiniz. ├ľrnek: ``8!kick @832 BOT``");
  42.     let kReason = args.join(" ").slice(22);
  43.     if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu komutu kullanabilmek i├žin yeterli yetkide de─čilsiniz.");
  44.     if(kUser.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu kullan─▒c─▒y─▒ atamam.");
  45.         if(kUser.id == message.author.id) return message.channel.send(":warning: Kendini atamazs─▒n.");
  46.        
  47.     let kickEmbed = new Discord.RichEmbed()
  48.     .setDescription("832 BOT - Kick Bilgi")
  49.     .setColor("#990000")
  50.     .addField("At─▒lan Kullan─▒c─▒", `${kUser}`)
  51.     .addField("Atan Y├Ânetici", `${message.author.username}`)
  52.     .addField("Zaman", message.createdAt)
  53.         .setFooter("832 BOT | JITEM");
  54.     message.guild.member(kUser).kick(kReason);
  55.     message.channel.send(kickEmbed);
  56.  
  57.   }
  58.  
  59.   if(cmd === `${prefix}ban`) {
  60.         let bUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));
  61.     if(!bUser) return message.channel.send(":warning: Yasaklamak istedi─činiz kullan─▒c─▒y─▒ etiketlemelisiniz. ├ľrnek: ``8!ban @832 BOT``");
  62.     let bReason = args.join(" ").slice(22);
  63.     if(!message.member.hasPermission("MANAGE_MEMBERS")) return message.channel.send(":warning: Bu komutu kullanabilmek i├žin yeterli yetkide de─čilsiniz.");
  64.     if(bUser.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu kullan─▒c─▒y─▒ yasaklayamam.");
  65.         if(bUser.id == message.author.id) return message.channel.send(":warning: Kendini yasaklayamazs─▒n.");
  66.  
  67.     let banEmbed = new Discord.RichEmbed()
  68.     .setDescription("832 BOT - Ban Bilgi")
  69.     .setColor("#990000")
  70.      .addField("Yasaklanan Kullan─▒c─▒", `${bUser}`)
  71.     .addField("Yasaklayan Y├Ânetici", `${message.author.username}`)
  72.     .addField("Zaman", message.createdAt)
  73.         .setFooter("832 BOT | JITEM");
  74.     message.guild.member(bUser).ban(bReason);
  75.     message.channel.send(banEmbed);
  76.  
  77.   }
  78.  
  79.   if(cmd === `${prefix}sustur`) {
  80.         let sustur = message.guild.roles.find("name", "Mute");
  81.         let sUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));
  82.     if(!sUser) return message.channel.send(":warning: Susturmak istedi─činiz kullan─▒c─▒y─▒ etiketlemelisiniz. ├ľrnek: ``8!sustur @832 BOT``");
  83.     if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu komutu kullanabilmek i├žin yeterli yetkide de─čilsiniz.");
  84.     if(sUser.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu kullan─▒c─▒y─▒ susturamam.");
  85.         if(sUser.id == message.author.id) return message.channel.send(":warning: Kendini susturamazs─▒n.");
  86.  
  87.     let muteEmbed = new Discord.RichEmbed()
  88.     .setDescription("832 BOT - Mute Bilgi")
  89.     .setColor("#990000")
  90.      .addField("Susturulan Kullan─▒c─▒", `${sUser}`)
  91.     .addField("Susturan Y├Ânetici", `${message.author.username}`)
  92.     .addField("Zaman", message.createdAt)
  93.         .setFooter("832 BOT | JITEM");
  94.           message.guild.member(sUser).addRole(sustur);
  95.           message.channel.send(muteEmbed);
  96.   }
  97.  
  98.   if(cmd === `${prefix}sunucubilgisi`){
  99.     let sicon = message.guild.iconURL;
  100.         let day = message.guild.createdAt.getDate()
  101.         let month = 1 + message.guild.createdAt.getMonth()
  102.         let year = message.guild.createdAt.getFullYear()
  103.     let serverembed = new Discord.RichEmbed()
  104.     .setDescription("JITEM - Sunucu Bilgisi")
  105.     .setColor("#990000")
  106.     .setThumbnail(sicon)
  107.     .addField("Sunucu ─░smi", message.guild.name, true)
  108.     .addField("Kurucusu", message.guild.owner, true)
  109.         .addField('Sunucu B├Âlgesi', message.guild.region, true)
  110.     .addField("Kurulu┼č Tarihi", `${day}.${month}.${year}`, true)
  111.     .addField("Sunucu ID", "414892273684316161", true)
  112.         .addField("Toplam Rol", message.guild.roles.size, true)
  113.     .addField("Toplam Kullan─▒c─▒", message.guild.memberCount, true)
  114.         .addField('Toplam Kanal', message.guild.channels.size, true)
  115.         .setFooter("832 BOT | JITEM");
  116.  
  117.     return message.channel.send(serverembed);
  118.   }
  119.  
  120.   if(cmd === `${prefix}jitembilgisi`){
  121.          
  122.         let sicon = message.guild.iconURL;
  123.     let jitemembed = new Discord.RichEmbed()
  124.     .setDescription("JITEM - Klan─▒ Hakk─▒nda")
  125.     .setColor("#990000")
  126.         .setThumbnail(sicon)
  127.     .addField("Kurucumuz", "Yesil", true)
  128.     .addField("Bulundu─čumuz Sunucular", "Yok", true)
  129.     .addField("Toplam ├ťye Say─▒s─▒", "20", true)
  130.     .addField("Toplam Genel Ba┼čkan", "1", true)
  131.     .addField("Toplam Ba┼č Vekil", "1", true)
  132.     .addField("Toplam Genel Ba┼čkan Vekili", "2", true)
  133.     .addField("Toplam Vekil Sekreteri", "2", true)
  134.     .addField("Toplam S├Âzc├╝", "2", true)
  135.     .addField("Kurulu┼č Y─▒l─▒", "2015", true)
  136.         .addField("WebSite", "``'Yak─▒nda'``", true)
  137.         .addField("Forum", "``'Yak─▒nda'``", true)
  138.         .addField(`PawnoTurk Konumuz`, `https://www.pawnoturk.com/forum/topluluklar/tekrardan-yukselen-bir-ses-'jitem-!'/)`)
  139.         .setFooter("832 BOT | JITEM");
  140.  
  141.     return message.channel.send(jitemembed);
  142.    
  143.   }
  144.  
  145.  
  146.   if(cmd === `${prefix}botbilgisi`){
  147.  
  148.     let bicon = bot.user.displayAvatarURL;
  149.     let botembed = new Discord.RichEmbed()
  150.     .setDescription("832 BOT - Bilgi")
  151.     .setColor("#990000")
  152.     .setThumbnail(bicon)
  153.     .addField("Bot ─░smi", bot.user.username, true)
  154.     .addField("Sahip", "JITEM#0001", true)
  155.     .addField("Bot Amac─▒", "832 Bot JITEM klan─▒ taraf─▒ndan tasarlanm─▒┼čt─▒r. Ve sadece JITEM Discord sunucular─▒ ├╝zerinde kullan─▒ma a├ž─▒kt─▒r. Ba┼čka bir discord sunucusunda kullan─▒lamaz.", true)
  156.     .addField("Prefix", "'8!'", true)
  157.     .addField("Yap─▒m Tarihi", "29/01/2019 - 00:45", true)
  158.         .setFooter("832 BOT | JITEM");
  159.    
  160.  
  161.  
  162.     return message.channel.send(botembed);
  163.   }
  164.  
  165.   if(cmd === `${prefix}komutlar`){
  166.  
  167.     let bicon = bot.user.displayAvatarURL;
  168.     let botembed = new Discord.RichEmbed()
  169.     .setDescription("832 BOT - Komutlar")
  170.     .setColor("#990000")
  171.     .setThumbnail(bicon)
  172.     .addField("┬╗ Y├Ânetici Komutlar─▒", "``8!y├Ânetici``")
  173.         .addField("┬╗ E─člence Komutlar─▒", "``8!e─člence``")
  174.         .addField("┬╗ Genel Bot Komutlar─▒", "``8!genel``")
  175.         .setFooter("832 BOT | JITEM");
  176.    
  177.  
  178.  
  179.     return message.channel.send(botembed);
  180.   }
  181.  
  182.   if(cmd === `${prefix}genel`){
  183.  
  184.     let bicon = bot.user.displayAvatarURL;
  185.     let botembed = new Discord.RichEmbed()
  186.     .setDescription("832 BOT - Genel Komutlar")
  187.     .setColor("#990000")
  188.     .setThumbnail(bicon)
  189.     .addField("┬╗ 8!botbilgisi", "Bot bilgilerini g├Âsterir.", true)
  190.         .addField("┬╗ 8!sunucubilgisi", "Sunucu bilgilerini g├Âsterir.", true)
  191.         .addField("┬╗ 8!jitembilgisi", "JITEM Genel klan bilgilerini g├Âsterir.", true)
  192.         .addField("┬╗ 8!avatar", "Etiketledi─činiz kullan─▒c─▒n─▒n avatar─▒n─▒z─▒ g├Âsterir.", true)
  193.         .addField("┬╗ 8!yard─▒m", "Bot hakk─▒nda size yard─▒m mesajlar─▒ g├Ânderir.", true)
  194.         .addField("┬╗ 8!yazd─▒r", "Botun ad─▒na chata bir ┼čeyler yazars─▒n─▒z.", true)
  195.         .addField("┬╗ 8!steamoyun", "Yazd─▒─č─▒n─▒z oyun hakk─▒nda steam'dan bilgi verileri g├Ânderir.", true)
  196.         .addField("┬╗ 8!topsunucu", "Yazd─▒─č─▒n─▒z oyun hakk─▒nda steam'dan bilgi verileri g├Ânderir.", true)
  197.         .addField("┬╗ 8!google", "Yazd─▒─č─▒n─▒z c├╝mleyi google'da arat─▒r.", true)
  198.         .addField("┬╗ 8!youtube", "Yazd─▒─č─▒n─▒z c├╝mleyi youtube'da arat─▒r.", true)
  199.         .addField("┬╗ 8!ping", "Bot ve API'nin pingini g├Âsterir.", true)
  200.         .setFooter("832 BOT | JITEM");
  201.    
  202.  
  203.  
  204.     return message.channel.send(botembed);
  205.   }
  206.  
  207.    if(cmd === `${prefix}e─člence`){
  208.  
  209.     let bicon = bot.user.displayAvatarURL;
  210.     let botembed = new Discord.RichEmbed()
  211.     .setDescription("832 BOT - E─člence Komutlar─▒")
  212.     .setColor("#990000")
  213.     .setThumbnail(bicon)
  214.     .addField("┬╗ 8!bangif", "Admin ban gif'i g├Ânderir.", true)
  215.         .addField("┬╗ 8!ka├žcm", "Malafat─▒n ka├ž santimetre oldu─čunu g├Âsterir.", true)
  216.         .addField("┬╗ 8!espri", "├çe┼čit ├že┼čit espri g├Ânderir.", true)
  217.         .addField("┬╗ 8!yemekye", "Yemek yeme gif'i g├Ânderir.", true)
  218.         .addField("┬╗ 8!caps", "├çe┼čit ├že┼čit caps g├Ânderir.", true)
  219.         .addField("┬╗ 8!k├Âpek", "├çe┼čit ├že┼čit k├Âpek gif'i g├Ânderir.", true)
  220.         .addField("┬╗ 8!kedi", "├çe┼čit ├že┼čit kedi gif'i g├Ânderir.", true)
  221.         .addField("┬╗ 8!lotto", "┼×ansl─▒ oldu─čunuz lotto numaras─▒n─▒ g├Âsterir.", true)
  222.         .addField("┬╗ 8!┼čansl─▒g├╝n", "┼×ansl─▒ oldu─čunuz g├╝n├╝ g├Âsterir.", true)
  223.         .addField("┬╗ 8!ascii", "┼×ekilli yaz─▒ yazar.", true)
  224.         .addField("┬╗ 8!├žekili┼č", "Sunucu i├žerisinde random ├žekili┼č yapar.")
  225.         .addField("┬╗ 8!yaz─▒tura", "Yaz─▒ tura atar.")
  226.         .addField("┬╗ 8!say2", "Yazd─▒─č─▒n─▒z mesaj─▒ silaha yazd─▒r─▒r.")
  227.         .addField("┬╗ 8!cowsay", "Yazd─▒─č─▒n─▒z mesaj─▒ ine─če yazd─▒r─▒r.")
  228.         .setFooter("832 BOT | JITEM");
  229.    
  230.  
  231.  
  232.     return message.channel.send(botembed);
  233.   }
  234.  
  235.   if(cmd === `${prefix}y├Ânetici`){
  236.  
  237.     let bicon = bot.user.displayAvatarURL;
  238.     let botembed = new Discord.RichEmbed()
  239.     .setDescription("832 BOT - Y├Ânetici Komutlar─▒")
  240.     .setColor("#990000")
  241.     .setThumbnail(bicon)
  242.     .addField("┬╗ 8!clear", "Mesajlar─▒ siler.", true)
  243.         .addField("┬╗ 8!duyuru", "Sunucu i├žinde duyuru yapar.", true)
  244.         .addField("┬╗ 8!ban", "Etiketlenen kullan─▒c─▒y─▒ yasaklar.", true)
  245.         .addField("┬╗ 8!kick", "Etiketlenen kullan─▒c─▒y─▒ tekmeler.", true)
  246.         .setFooter("832 BOT | JITEM");
  247.    
  248.  
  249.  
  250.     return message.channel.send(botembed);
  251.   }
  252.  
  253.   if(cmd === `${prefix}google`) {
  254.     let googlepng = "https://www.festisite.com/static/partylogo/img/logos/google.png"
  255.      let google = args.slice(0).join('+');
  256.  
  257.           let link = `https://www.google.com/search?q=` + google;
  258.           if(!link) return message.channel.send(":warning: Link bulunamad─▒. Linksiz arama yap─▒lamaz.")
  259.           if(!args[0]) return message.channel.send(":warning: Arad─▒─č─▒n c├╝mleyi girmelisin. ├ľrnek: ``8!google Discord``")      
  260.     let googleembed = new Discord.RichEmbed()
  261.  
  262.       .setColor("#990000")
  263.          .setDescription("832 BOT - Google Aratma")
  264.       .setThumbnail(googlepng)
  265.     .addField("Aranan C├╝mle", `**${args.slice(0).join(' ')}**`)
  266.     .addField('Sonu├ž', `**${link}**`)
  267.     .setFooter("832 BOT | JITEM");
  268.    
  269.  
  270.     message.channel.send(googleembed);
  271.    
  272.   }
  273.  
  274.   if(cmd === `${prefix}youtube`) {
  275.     let youtubepng = "https://www.un-igrac.org/sites/default/files/YouTube%20logo.png"
  276.      let youtube = args.slice(0).join('+');
  277.  
  278.           let link = `https://www.youtube.com/results?search_query=` + youtube;
  279.           if(!link) return message.channel.send(":warning: Link bulunamad─▒. Linksiz arama yap─▒lamaz.")
  280.           if(!args[0]) return message.channel.send(":warning: Arad─▒─č─▒n c├╝mleyi girmelisin. ├ľrnek: ``8!youtube Discord``")      
  281.     let embed = new Discord.RichEmbed()
  282.  
  283.       .setColor("#990000")
  284.          .setDescription("832 BOT - Youtube Aratma")
  285.       .setThumbnail(youtubepng)
  286.     .addField("Aranan C├╝mle", `**${args.slice(0).join(' ')}**`)
  287.     .addField('Sonu├ž', `**${link}**`)
  288.     .setFooter("832 BOT | JITEM");
  289.  
  290.  
  291.     message.channel.send(embed);
  292.    
  293.   }
  294.  
  295.  
  296.   if(cmd === `${prefix}avatar`) {
  297.       let user;
  298.  
  299.     if (message.mentions.users.first()) {
  300.       user = message.mentions.users.first();
  301.     } else {
  302.         user = message.author;
  303.     }
  304.      
  305.     const member = message.guild.member(user);
  306.     let avatar = user.displayAvatarURL;
  307.         let avatarembed = new Discord.RichEmbed()
  308.             .setColor("#990000")
  309.             .setImage(avatar);
  310.         message.channel.send(avatarembed);
  311.     }
  312.  
  313.   if(cmd === `${prefix}clear`) {
  314.       if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu komutu kullanabilmek i├žin yeterli yetkiniz yok.");
  315.               if(!args[0]) return message.channel.send(":warning: Silmek istedi─činiz mesaj say─▒s─▒n─▒ girin. ├ľrnek: ``!clear 10``");
  316.                         message.channel.bulkDelete(args[0]).then(() => {
  317.                         message.channel.send(`:white_check_mark: ${args[0]} mesaj silindi.`).then(msg => msg.delete(2000));
  318.                 });
  319.   }
  320.    
  321.   if(cmd === `${prefix}temizle`) {
  322.       if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send(":warning: Bu komutu kullanabilmek i├žin yeterli yetkide de─čilsiniz.");
  323.               if(!args[0]) return message.channel.send(":warning: Silmek istedi─činiz mesaj say─▒s─▒n─▒ girin. ├ľrnek: ``!clear 10``");
  324.                         message.channel.bulkDelete(args[0]).then(() => {
  325.                         message.channel.send(`:white_check_mark: ${args[0]} mesaj silindi.`).then(msg => msg.delete(2000));
  326.                 });
  327.   }
  328.  
  329.   if(cmd === `${prefix}yard─▒m`) {
  330.            if (message.channel.type !== 'dm') {
  331.     const ozelmesajkontrol = new Discord.RichEmbed()
  332.     .setColor('#990000')
  333.     .setDescription(':white_check_mark: ├ľzel mesajlar─▒n─▒ kontrol et.')
  334.         .setFooter("832 BOT | Yard─▒m")
  335.     message.channel.sendEmbed(ozelmesajkontrol) }
  336.         const pingozel = new Discord.RichEmbed()
  337.     .setColor('#990000')
  338.         .setDescription('832 bot, JITEM klan─▒ taraf─▒ndan tasarlanm─▒┼čt─▒r.\nKomutlar hakk─▒nda bilgi sahibi olmak istiyorsan ``8!komutlar`` yazman yeterlidir.')
  339.     .setFooter("832 BOT | Yard─▒m")
  340.         return message.author.sendEmbed(pingozel)
  341.        
  342. }
  343.  
  344.   if(cmd === `${prefix}ping`) {
  345.     let botping = new Date() - message.createdAt;
  346.      let embed = new Discord.RichEmbed()
  347.      .setColor('#990000')
  348.      .addField(':fire: Bot PING', Math.floor(bot.ping), true)
  349.      .addField(':fire: API PING', Math.floor(botping), true)
  350.      .setFooter('832 BOT | JITEM');
  351.     message.channel.send(embed);
  352.   }
  353.  
  354. if(cmd === `${prefix}yazd─▒r`) {
  355.         let mesaj = args.slice(0).join(' ');
  356.         if (mesaj.length < 1) return message.channel.send(':warning: Ne yazmam─▒ istersin? ├ľrnek: ``8!yazd─▒r Selam``');
  357.     message.delete();
  358.     const embed = new Discord.RichEmbed()
  359.     .setColor('#990000')
  360.     .setDescription(`${mesaj}`)
  361.         .setFooter(`${message.author.username} | Yazd─▒r`);
  362.     return message.channel.sendEmbed(embed);
  363. }
  364.  
  365.   if(cmd === `${prefix}say2`) {
  366.      let mesaj = args.slice(0).join(' ');
  367.     if(mesaj.length < 1) return message.channel.send(':warning: Ne yazmam─▒ istersin? ├ľrnek: ``8!say2 tatata``');
  368.     message.delete();
  369.     message.channel.send(`(ÔĽ»┬░Ôľí┬░)--´Ş╗ÔĽŽÔĽĄÔöÇ - - - **${mesaj}**`);
  370.   }
  371.  
  372.   if(cmd === `${prefix}duyuru`) {
  373.          let mesaj = args.slice(0).join(' ');
  374.          let sicon = message.guild.iconURL;
  375.           if (!message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(':warning: Bu komut i├žin gerekli yetkiye sahip de─čilsin.');
  376.                 if (mesaj.length < 1) return message.channel.send(':warning: Duyurulacak c├╝mleyi yaz─▒n.');
  377.                 message.delete();
  378.                 const embed = new Discord.RichEmbed()
  379.                 .setThumbnail(sicon)
  380.                 .setColor('#990000')
  381.                 .setDescription(`${mesaj}`)
  382.                 .setFooter(`${message.author.username} | Duyuru`);
  383.                 return message.channel.send(embed);
  384. }
  385.  
  386.  if(cmd === `${prefix}steamoyun`) {
  387.         let game = args[0]
  388.     let steampng = "https://upload.wikimedia.org/wikipedia/commons/c/c1/Steam_Logo.png"
  389.     if (!game) return message.channel.send(':warning: Arad─▒─č─▒n─▒z oyunun ismini yaz─▒n─▒z. ├ľrnek: `8!oyunsteam CS:GO`')
  390.     provider.search(game).then(result => {
  391.     provider.detail(result[0].id, "turkey", "tr").then(results => {
  392.     console.log(results)
  393.     const embed = new Discord.RichEmbed()
  394.     .setThumbnail(steampng)
  395.         .setColor("#990000")
  396.     .setTitle(result[0].name)
  397.     .addField(`Oyunun ID's─▒`, result[0].id, true)
  398.     .addField('Oyun T├╝r├╝', results.genres, true)
  399.     .addField('Oyun Fiyat─▒', `Fiyat **${results.priceData.initialPrice}** TL`, true)
  400.     .addField('Sistemleri', results.otherData.platforms, true)
  401.     .addField('Oyun Geli┼čtiricileri', results.otherData.developer, true)
  402.         .addField('Oyun Yay─▒mc─▒lar─▒', results.otherData.publisher, true)
  403.     .setColor("#990000")
  404.     message.channel.send(embed).catch(e => {
  405.                  message.channel.send(':warning: Arad─▒─č─▒n─▒z oyun bulunamad─▒.')
  406.     })
  407. })
  408. })
  409.   }
  410.  
  411.         if(cmd === `${prefix}topsunucu`) {
  412.                 if (bot.guilds.size < 5) return message.channel.send(':warning: Bu komutu kullanabilmek i├žin botun **en az 5** sunucuda bulunmas─▒ gerekmektedir.')
  413.                
  414.                 const top = bot.guilds.sort((a,b)=>a.memberCount-b.memberCount).array().reverse()
  415.                 const embed = new Discord.RichEmbed()
  416.                 .setColor("#990000")
  417.                 .setTitle("832 - Top Sunucu")
  418.                 .addField(`1-) **${top[0].name}**`, `┬╗ ${top[0].memberCount} Kullan─▒c─▒ bulunmaktad─▒r.`)
  419.                 .addField(`2-) **${top[1].name}**`, `┬╗ ${top[1].memberCount} Kullan─▒c─▒ bulunmaktad─▒r.`)
  420.                 .addField(`3-) **${top[2].name}**`, `┬╗ ${top[2].memberCount} Kullan─▒c─▒ bulunmaktad─▒r.`)
  421.                 .addField(`4-) **${top[3].name}**`, `┬╗ ${top[3].memberCount} Kullan─▒c─▒ bulunmaktad─▒r.`)
  422.                 .addField(`5-) **${top[4].name}**`, `┬╗ ${top[4].memberCount} Kullan─▒c─▒ bulunmaktad─▒r.`)
  423.                 .setFooter("832 BOT | Yard─▒m");
  424.                 message.channel.send(embed);
  425.         }
  426.  
  427.        
  428.        
  429.         /* ============================================================================================================================== */
  430.   if(cmd === `${prefix}bangif`) {
  431.           const embed = new Discord.RichEmbed()
  432.           .setColor('#990000')
  433.           .setImage(`https://images-ext-1.discordapp.net/external/171uiKxRgITAipvhLwQWRN0gDHVsry0MC9oYnff9Vnw/http/i.imgur.com/O3DHIA5.gif`)
  434.           return message.channel.send(embed);
  435.   }
  436.  
  437.   if(cmd === `${prefix}ka├žcm`) {
  438.           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```ĂÉÔł×>```"];
  439.           let result = Math.floor((Math.random() * sonuc.length));
  440.          
  441.           let kacembed = new Discord.RichEmbed()
  442.           .setColor("#990000")
  443.           .addField(`:middle_finger: Say─▒n ${message.author.username} malafat─▒n─▒z─▒n boyu`, sonuc[result])
  444.           .setFooter("832 BOT | JITEM");
  445.           message.channel.send(kacembed);
  446.   }
  447.  
  448.   if(cmd === `${prefix}espri`) {
  449.           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."];
  450.           let result = Math.floor((Math.random() * espri.length));
  451.          
  452.           let espriembed = new Discord.RichEmbed()
  453.           .setDescription(espri[result])
  454.           .setColor("#990000")
  455.           .setFooter("832 BOT | JITEM");
  456.           message.channel.send(espriembed);
  457.   }
  458.  
  459.   if(cmd === `${prefix}yemekye`) {
  460.           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'];
  461.           let result = Math.floor((Math.random() * yemek.length));
  462.           let yemekembed = new Discord.RichEmbed()
  463.           .setColor("#990000")
  464.           .setImage(yemek[result])
  465.           message.channel.send(yemekembed);
  466.   }
  467.  
  468.   if(cmd === `${prefix}caps`) {
  469.           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'];
  470.           let result = Math.floor((Math.random() * caps.length));
  471.           let capsembed = new Discord.RichEmbed()
  472.           .setColor("#990000")
  473.           .setImage(caps[result])
  474.           message.channel.send(capsembed);
  475.   }
  476.  
  477.   if(cmd === `${prefix}k├Âpek`) {
  478.           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', ''];
  479.           let result = Math.floor((Math.random() * k├Âpek.length));
  480.           let k├Âpekembed = new Discord.RichEmbed()
  481.           .setColor("#990000")
  482.           .setImage(k├Âpek[result])
  483.           message.channel.send(k├Âpekembed);
  484.   }
  485.  
  486.   if(cmd === `${prefix}kedi`) {
  487.           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'];
  488.           let result = Math.floor((Math.random() * kedi.length));
  489.           let kediembed = new Discord.RichEmbed()
  490.           .setColor("#990000")
  491.           .setImage(kedi[result])
  492.           message.channel.send(kediembed);
  493.   }
  494.  
  495.   if(cmd === `${prefix}lotto`) {
  496.           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"];
  497.           let result = Math.floor((Math.random() * sayi.length));
  498.          
  499.           let kediembed = new Discord.RichEmbed()
  500.           .setColor("#990000")
  501.           .setDescription(`:bulb: Lotto numaran─▒z ${sayi[result]} bu say─▒ya dikkat edin ${message.author.username}.`)
  502.           .setFooter("832 BOT | JITEM");
  503.           message.channel.send(kediembed);
  504.   }
  505.  
  506.   if(cmd === `${prefix}┼čansl─▒g├╝n`) {
  507.           let g├╝n = ["Pazartesi", "Sal─▒", "├çar┼čamba", "Per┼čembe", "Cuma", "Cumartesi", "Pazar"];
  508.           let result = Math.floor((Math.random() * g├╝n.length));
  509.          
  510.           let g├╝nembed = new Discord.RichEmbed()
  511.           .setColor("#990000")
  512.           .setDescription(`:bulb: Say─▒n ${message.author.username} ┼čansl─▒ g├╝n├╝n├╝z ${g├╝n[result]}.`)
  513.           .setFooter("832 BOT | JITEM");
  514.           message.channel.send(g├╝nembed);
  515.   }
  516.  
  517.   if(cmd === `${prefix}yaz─▒tura`) {
  518.           let yaz─▒tura = ["Yaz─▒", "Tura", "Dik"];
  519.           let result = Math.floor((Math.random() * yaz─▒tura.length));
  520.    
  521.           let yaz─▒turaembed = new Discord.RichEmbed()
  522.           .setColor('#990000')
  523.           .setThumbnail('https://upload.wikimedia.org/wikipedia/commons/6/64/1TL_obverse.png')
  524.           .setDescription(`:bulb: Att─▒─č─▒n─▒z para ${yaz─▒tura[result]} ├ž─▒kt─▒.`)
  525.           .setFooter("832 BOT | JITEM");
  526.           message.channel.send(yaz─▒turaembed);
  527.   }
  528.  
  529.         if(cmd === `${prefix}ascii`) {
  530.                 if(args.join(' ').length > 70) return message.channel.send(`:warning: Maximum 70 karakter girebilirsin.`)
  531.  
  532.                 if(!args[0]) return message.channel.send(':warning: Ne yazmam─▒ istiyorsun? ├ľrnek: ``8!ascii 832 BOT``');
  533.  
  534.                 figlet(`${args.join(' ')}`, function(err, data) {
  535.                         if (err) {
  536.                                 console.log('HATA');
  537.                                 console.dir(err);
  538.                                 return;
  539.                         }
  540.  
  541.                         message.channel.send(`${data}`, {code: 'AsciiArt'});
  542.                 });
  543.         }
  544.        
  545.         if(cmd === `${prefix}├žekili┼č`) {
  546.                 let ├žekili┼čembed = new Discord.RichEmbed()
  547.                 .setColor('#990000')
  548.                 .setTitle('832 BOT - ├çekili┼č')
  549.                 .setDescription(`:confetti_ball: ├çekili┼či kazanan **${message.guild.members.random().displayName}** TEBR─░KLER!`)
  550.                 .setFooter('832 BOT | JITEM');
  551.                 message.channel.send(├žekili┼čembed);
  552.         }
  553.  
  554.         if(cmd === `${prefix}cowsay`) {
  555.             let text = args.join(" ");
  556.             if(!args.join(" ")) return message.channel.send(':warning: Ne yazmam─▒ istersin? ├ľrnek: ``8!cowsay ─░nek``');
  557.             message.channel.send("```" + cowsay.say({
  558.                 text : text
  559.             }) + "```")
  560.         }
  561.  
  562. });
  563.    
  564.  bot.login('NTI1OTM5NDczODcyMzIyNTYy.DzD-FQ.zk5uz43LlJPXJciGAU_-Rt9q088');
  565. //bot.login('NTQwMjM4MDg5OTc3NzI0OTUw.DzT2sg.OHhAgmTIR0amcEYNkj95Ng1-Wx8');