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