const discord = require('discord.js') const db = require("../../database") const chalk = require('chalk') module.exports = { name: "settings", aliases: ['setting'], description: "shows settings", category: "alt-detector", run: async (client, message, member) => { let logChannel = await db.get(`LoggingChannel_${message.guild.id}`) let NotifyRole = await db.get(`notifyRole_${message.guild.id}`) let AltAge = await db.get(`altAge_${message.guild.id}`) let AltData = await db.get(`AutoKick_${message.guild.id}`) let AutoKickAge = await db.get(`AutokickAge_${message.guild.id}`) let WhiteListed = await db.get(`WhiteListed_${message.guild.id}`) let channel = `<#${logChannel}>` let role = `<@&${NotifyRole}>` let age = `${AltAge} Days` let WhiteListedUser = `${WhiteListed}` let date = `${AutoKickAge} Days` if (WhiteListed === null) { WhiteListedUser = "NO USER ID IS WHITELISTED" } if (AutoKickAge === null) { date = "**8 [BY DEFAULT]**" } if (AltData === true) { AltData = "ENABLED" } else { date = "DISABLED" } if (logChannel === null) { channel = "NO CHANNEL FOUND" } if (NotifyRole === null) { role = "NO ROLE FOUND" } if (AltAge === null) { age = "**31 Days [BY DEFAULT]**" } let embed = new discord.MessageEmbed() .setTitle(`CONFIG SETTINGS`) .setDescription(` __**ALT LOG CHANNEL**__ ➡ ${channel} __**ALT NOTIFY ROLE**__ ➡ ${role} __**ALT ACCOUNT AGE**__ ➡ ${age} __**AUTO KICK CMD STATUS**__ ➡ ${AltData || 'DISABLED'} __**AUTOKICK AGE**__ ➡ ${date} __**WHITE LISTED USER**__ ➡ ${WhiteListedUser} `) message.channel.send(embed) } }