MrJazsohanisharma

Discord.js Blacklist - Whitelist Command

Discord.js Blacklist - Whitelist Command

Botunuzu kullanmasını istemediğiniz kişileri karalisteye alabilirsiniz.

Beyaz Liste
Paste provided by Paste.ee - View Original - View Raw - Download
const Discord = require('discord.js')
const fs = require('fs');
var ayarlar = require('../ayarlar.json');
const db = require('quick.db');

var sahip = ayarlar.sahip;

exports.run = async (client, message, args) => {
if ( message.author.id != ayarlar.sahip ){
   message.channel.send("**Bu komutu kulanmaya yetkiniz yok!!**")
  }else{
  let nesne = args[0]
  if (!nesne) return message.channel.send('Kullanıcı beyazlisteye alınamadı.')
   
  db.delete(`kullanicikaraliste_${nesne}`)
   message.channel.send(" :tada: Completed. :thumbsup: `" + nesne + "` kullanıcısı veya sunucu artık botu kullanabilir..")
  }   
 };
                                        
  
exports.conf = {
    enabled: true,
    guildOnly: false,
    aliases: ["beyazliste"],
    permLevel: 5
}

exports.help = {
    name: 'whitelist',
    description: '',
    usage: 'whitelist'
}
//XiR
Kara Liste
Paste provided by Paste.ee - View Original - View Raw - Download
const Discord = require('discord.js')
const fs = require('fs');
var ayarlar = require('../ayarlar.json');
const db = require('quick.db');

var sahip = ayarlar.sahip;

exports.run = async (client, message, args) => {
if ( message.author.id != ayarlar.sahip ){
   message.channel.send("**Bu komutu kulanmaya yetkiniz yok!!**")
  }else{
  let nesne = args[0]
  if (!nesne) return message.channel.send('Kullanıcı karalisteye alınamadı.')
   
  db.set(`kullanicikaraliste_${nesne}`, 'aktif')
    const engel = new Discord.RichEmbed()
    .setTitle("Kara Liste | XiR")
    .setColor("GREEN")
    .setDescription(":ballot_box_with_check: Kara Liste Activated. `" + nesne + "` kullanıcısı veya sunucusu artık botu kullanamayacak.")
    .setAuthor(message.guild.name, message.guild.iconURL)
    .setThumbnail(message.author.avatarURL)
    .addField("Kara Listeye Alınan ID: ", nesne)
   message.channel.send(engel)
  }   
 };

exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: ["karaliste"],
  permLevel: 4
};

exports.help = {
  name: 'karaliste',
  description: '',
  usage: 'karaliste'
};

//XiR
Komut içerisine eklenecek
Paste provided by Paste.ee - View Original - View Raw - Download
const db = require("quick.db")
  let sunucu = await db.fetch(`sunucukaraliste_${message.guild.id}`);
  let kullanıcı = await db.fetch(`kullanicikaraliste_${message.author.id}`);

  if( sunucu == "aktif"){
   const userblacklist = new Discord.RichEmbed()
    .setURL(`https://bitly.com/xirsdavet`)
    .setAuthor(message.guild.name, message.guild.avatarURL)
    .setDescription("Sunucumuza Gelerek neden karalisteye alındığınızı öğrenebilirsiniz " + `Destek Sunucu: https://discord.gg/GkzwCgM`)
    .setTitle("KARA LİSTE TESPİT EDİLDİ!", true)
    .setColor("RED")
    .setImage("https://i.postimg.cc/wv4N2JL8/giphy.gif")
    .setThumbnail("https://i.postimg.cc/wv4N2JL8/giphy.gif")
    .addField("Sunucu ID numaranız yoluyla botumuzun karalistesine alınmışsınız.", `Karalisteye alınan sunucu ID numarası: **${message.guild.id}**`, true)
    .addField("XiR Destek Sunucusu" + "https://bitly.com/xirdcsunucu")
    .setFooter("Sunucumuza Gelerek neden sunucunuzun karalisteye alındığını öğrenebilirsiniz" + `Destek Sunucu`, "https://discord.gg/GkzwCgM")
    return message.channel.sendEmbed(userblacklist);
  }else{
   if( kullanıcı == "aktif"){
    const userblacklist = new Discord.RichEmbed()
    .setURL(`https://bitly.com/xirsdavet`)
    .setAuthor(message.author.username, message.author.avatarURL)
    .setDescription("Sunucumuza Gelerek neden karalisteye alındığınızı öğrenebilirsiniz " + `Destek Sunucu: https://discord.gg/GkzwCgM`)
    .setThumbnail("https://i.postimg.cc/ZqK0QnTT/intelligent-blacklisting-icon.png")
    .setTitle("KARA LİSTE TESPİT EDİLDİ!", true)
    .setColor("RED")
    .setImage("https://i.postimg.cc/wv4N2JL8/giphy.gif")
    .addField("Kullanıcı ID numaranız yoluyla botumuzun karalistesine alınmışsınız.", `Karalisteye alınan ID numarası : **${message.author.id}**`, true)
    .addField("XiR Destek Sunucusu", "https://bitly.com/xirdcsunucu")
    return message.channel.sendEmbed(userblacklist);
   }else{//bu kısımdan sonra komut gelecek

1 Yorumlar

Daha yeni Daha eski