Facebook
From xFalcon, 1 Year ago, written in JavaScript.
This paste is a reply to ban-yetkilisi.js from xFalcon - view diff
Embed
Download Paste or View Raw
Hits: 242
  1. const Discord = require('discord.js')
  2. const db = require('quick.db');
  3. const ayarlar = require('../ayarlar.json')
  4.  
  5. exports.run = async(client, message, args) => {
  6.  
  7.    var ba┼čar─▒l─▒ = ['**─░┼×TE BU!** <:basarili:690022418735169592>', '**S├ťPER!** <:basarili:690022418735169592>', '**NASIL YAPTIN BUNU?!** <:basarili:690022418735169592>', '**M├ťKEMMEL!** <:basarili:690022418735169592>', '**SEVD─░M BUNU!** <:basarili:690022418735169592>', '**┼×─░MD─░ OLDU!** <:basarili:690022418735169592>']; //├çal─▒┼čm─▒yorsa emojileri silin
  8.    var x = ba┼čar─▒l─▒[Math.floor(Math.random() * ba┼čar─▒l─▒.length)];
  9.  
  10.    var ba┼čar─▒s─▒z = ['**T├ťH!** <:basarisiz:690022419116851268>', '**OLMADI BU!** <:basarisiz:690022419116851268>', '**HAY AKS─░!** <:basarisiz:690022419116851268>', '**HAD─░ ORADAN!** <:basarisiz:690022419116851268>', '**OLMADI YA!** <:basarisiz:690022419116851268>', '**B├ľYLE OLMAZ?!** <:basarisiz:690022419116851268>', '**HAD─░ YA!** <:basarisiz:690022419116851268>'];
  11.    var x2 = ba┼čar─▒s─▒z[Math.floor(Math.random() * ba┼čar─▒s─▒z.length)];
  12.  
  13.   if (!message.member.hasPermission('MANAGE_GUILD')) return message.reply(`**${ayarlar.prefix}ban-yetkilisi** isimli komutu kullanabilmek i├žin \`SUNUCUYU Y├ľNET\` yetkisine sahip olman gerekiyor.`)
  14.     if (!args[0]) return message.reply(`Sistemi kullanabilmek i├žin, .ban-rol ayarla/s─▒f─▒rla @rol yazmal─▒s─▒n.\nDetayl─▒ bilgi i├žin: .yard─▒m ban-yetkilisi`)
  15.     if (args[0] == 'ayarla') {
  16.  let rol = message.mentions.roles.first() || message.guild.roles.get(args.join(' '))
  17.   let newRole;
  18.   let tworole;
  19.   if (!rol)     return message.channel.send(x2 + ` Bir rol etiketle.`)
  20.   else newRole = message.mentions.roles.first().id
  21.   let id = message.mentions.roles.first().id  
  22.     db.set(`banyetkilisi_${message.guild.id}`, id)
  23.   let banrol = await db.set(`banyetkilisi_${message.guild.id}`, newRole)
  24.   if (!message.guild.roles.get(newRole)) return message.channel.send(x2 + ` Etiketledi─čin rol├╝ bulamad─▒m. Silinmi┼č olabilir, bi' kontrol et.`)
  25.    message.channel.send(x + ` Ban yetkilisi <@&${newRole}> olarak ayarland─▒.`)
  26.  }
  27.  
  28.  if (args[0] == 's─▒f─▒rla') {
  29.    
  30.    
  31.    db.delete(`banyetkilisi_${message.guild.id}`)
  32.  
  33.    message.channel.send(x + ` Ban yetkilisi ba┼čar─▒yla s─▒f─▒rland─▒.`)
  34.  }
  35. };
  36.  
  37.  
  38.    
  39. exports.conf = {
  40. enabled: true,
  41. guildOnly: false,
  42. aliases: ['banyetkilisi'],
  43. permLevel: 0
  44. };
  45.  
  46. exports.help = {
  47. name: 'ban-yetkilisi',
  48. description: '+ban komutunu hangi role sahip olanlar─▒n kullanaca─č─▒n─▒ ayarlars─▒n─▒z.',
  49. usage: 'ban-yetkilisi ayarla @rol'
  50. };