const fs = require('fs'); const Discord = require('discord.js'); const tokenuyari = ` Bu Bilgi Gizlenmiştir` var list = ['590548570101252096', '766567113162227742' ] exports.run = async (client, message, args) => { if (!list.includes(message.author.id)) { return message.channel.send(` ${message.author} **Bu Komutu Sadece Yapımcım Kullanabilir!**`); } let prefix = "!" //Kendi prefiziniz if(!args[0]) { message.channel.send("?") return } const code = args.join(' '); if(code.includes('token')) { if(code.match(/(client.token)/g)) { const newEmbed = new Discord.MessageEmbed() .addField('Hata cıktı;', `\`\`\`xl\n${tokenuyari}\`\`\``) .setColor('#36393F'); message.channel.send(newEmbed); return } } function clean(text) { if (typeof text !== 'string') text = require('util').inspect(text, { depth: 0 }) text = text .replace(/`/g, '`' + String.fromCharCode(8203)) .replace(/@/g, '@' + String.fromCharCode(8203)) return text; }; const evalEmbed = new Discord.MessageEmbed().setColor("RANDOM") try { var evaled = clean( eval(code)); if(evaled.startsWith('NDc')) evaled = tokenuyari; if (evaled.constructor.name === 'Promise') evalEmbed.setDescription(`\`\`\`\n${evaled}\n\`\`\``) else evalEmbed.setDescription(`\`\`\`xl\n${evaled}\n\`\`\``) const newEmbed = new Discord.MessageEmbed() .addField('? Giriş', `\`\`\`javascript\n${code}\n\`\`\``) .addField('? Çıkış', `\`\`\`xl\n${evaled}\`\`\``) .setColor("#36393F") message.channel.send(newEmbed); } catch (err) { evalEmbed.addField('Hata;', `\`\`\`xl\n${err}\n\`\`\``); evalEmbed.setColor('#36393F'); message.channel.send(evalEmbed); } }; exports.conf = { enabled: true, guildOnly: false, aliases: [], permLevel: 0 }; exports.help = { name: 'eval', description: "Bot Sahibine Özel Komut." };