Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

var { Client, Intents } = require("dis..

Decoded Output download

<?  var { 
         
        Client, 
         
        Intents 
         
} 
 
= require("discord.js"); 
 
var client = new Client({ 
         
        partials: ["CHANNEL", "GUILD_MEMBER"], 
         
        intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_PRESENCES, Intents.FLAGS.GUILD_INVITES] 
         
}); 
 
const Discord = require("discord.js"); 
 
const config = require("./config.js"); 
 
const chalk = require("chalk"); 
 
console.log(chalk.blue("This bot made by Ghos't#0001 only for : necron.host")); 
 
const Canvas = require("canvas"); 
 
const editor = require("editor-canvas"); 
 
const { 
         
        Database 
         
} 
 
= require("st.db"); 
 
const db = new Database("database.json"); 
 
const request = require("request"); 
 
var options = { 
         
        method: "GET", 
         
        url: "https://licensesecure.net/checker?id=7296722" 
                 
                , 
         
        headers: { 
                 
                "User-Agent": "FXServer/PerformHttpRequest" 
                 
        } 
         
} 
 
; 
 
request(options, function (_0x3fd983, _0x5d76f9, _0x1597a2) { 
         
        if (_0x1597a2 !== "yes") { 
                 
                console.log("[31m", "This bot is made by necron.host and can only work there, please join our discord if you need any more help https://discord.gg/nec"); 
                 
                process.exit(1); 
                 
        } else { 
                 
                console.log("[36m", "Access Granted | This bot is made by necron.host, discord.gg/nec"); 
                 
                async function _0x1fad69(_0x56a026, _0x486c7c, _0x36e9b2, _0x1a39c2, _0xbf0434, _0x41f634, _0xc0ad3c, _0x44a0c4) { 
                         
                        var _0x5b5983 = config.welcomeimage; 
                         
                        _0x5b5983 = await Canvas.loadImage(_0x5b5983); 
                         
                        var _0x412fe2 = Canvas.createCanvas(_0x5b5983.width, _0x5b5983.height); 
                         
                        var _0x36737c = _0x412fe2.getContext("2d"); 
                         
                        _0x36737c.drawImage(_0x5b5983, 0, 0, _0x412fe2.width, _0x412fe2.height); 
                         
                        _0xbf0434 = await editor.drawCircle({ 
                                 
                                image: _0xbf0434 
                                 
                        }); 
                         
                        _0xbf0434 = await Canvas.loadImage(_0xbf0434); 
                         
                        _0x36737c.drawImage(_0xbf0434, _0x56a026, _0x486c7c, _0x36e9b2, _0x1a39c2); 
                         
                        _0x36737c.textAlign = "center"; 
                         
                        _0x36737c.fillStyle = "WHITE"; 
                         
                        _0x36737c.font = "70px Arial"; 
                         
                        let _0x26343d = _0x41f634 || 50; 
                         
                        let _0x2eab76 = _0xc0ad3c || 50; 
                         
                        _0x36737c.fillText(_0x44a0c4, _0x26343d, _0x2eab76); 
                         
                        let _0x80d99a = new Discord.MessageAttachment(_0x412fe2.toBuffer(), "welcome.png"); 
                         
                        return _0x80d99a; 
                         
                } 
                 
                var { 
                         
                        inviteTracker: _0x3a8cff 
                         
                } 
                 
                = require("discord-inviter"); 
                 
                var _0x294d92 = new _0x3a8cff(client); 
                 
                _0x294d92.on("guildMemberAdd", async (_0x485854, _0x319827, _0x10ebb7, _0x177000) => { 
                         
                        if (_0x177000) { 
                                 
                                return console.error(_0x177000); 
                                 
                        } 
                         
                        let _0x1dc2ce = _0x485854.guild.channels.cache.get(config.welcomechannel); 
                         
                        let _0x1a1150 = config.welcomemsg.replace("{user}", _0x485854.user) 
                                 
                                .replace("{inviter}", "<@" + _0x319827.id + ">") 
                                 
                                .replace("{server}", _0x485854.guild.name); 
                         
                        if (_0x485854.user.bot) { 
                                 
                                _0x1a1150 = config.welcomemsg.replace("{user}", _0x485854.user) 
                                         
                                        .replace("{inviter}", "<@" + _0x319827.id + ">") 
                                         
                                        .replace("{server}", _0x485854.guild.name); 
                                 
                        } 
                         
                        if (!_0x1dc2ce) { 
                                 
                                return; 
                                 
                        } 
                         
                        var _0x27f09c = config.welcomeimage; 
                         
                        _0x27f09c = await Canvas.loadImage(_0x27f09c); 
                         
                        var _0x45e5cc = Canvas.createCanvas(_0x27f09c.width, _0x27f09c.height); 
                         
                        var _0x1a0d10 = _0x45e5cc.getContext("2d"); 
                         
                        _0x1a0d10.drawImage(_0x27f09c, 0, 0, _0x45e5cc.width, _0x45e5cc.height); 
                         
                        var _0x40c922 = _0x485854.user.displayAvatarURL({ 
                                 
                                format: "png" 
                                 
                        }); 
                         
                        _0x40c922 = await editor.drawCircle({ 
                                 
                                image: _0x40c922 
                                 
                        }); 
                         
                        _0x40c922 = await Canvas.loadImage(_0x40c922); 
                         
                        let _0x51defe = db.get("x_" + _0x485854.guild.id) || await db.set("x_" + _0x485854.guild.id, 180); 
                         
                        let _0x43f4b6 = db.get("y_" + _0x485854.guild.id) || await db.set("y_" + _0x485854.guild.id, 240); 
                         
                        let _0x2c6f61 = db.get("w_" + _0x485854.guild.id) || await db.set("w_" + _0x485854.guild.id, 388); 
                         
                        let _0x1103e8 = db.get("h_" + _0x485854.guild.id) || await db.set("h_" + _0x485854.guild.id, 388); 
                         
                        _0x1a0d10.drawImage(_0x40c922, _0x51defe, _0x43f4b6, _0x2c6f61, _0x1103e8); 
                         
                        _0x1a0d10.textAlign = "center"; 
                         
                        _0x1a0d10.fillStyle = "WHITE"; 
                         
                        _0x1a0d10.font = "70px Arial"; 
                         
                        _0x1a0d10.fillText("My TEXT!", 20, 20); 
                         
                        let _0x24413c = new Discord.MessageAttachment(_0x45e5cc.toBuffer(), "welcome.png"); 
                         
                        _0x1dc2ce.send({ 
                                         
                                        files: [_0x24413c] 
                                         
                                }) 
                                 
                                .then(_0x27b573 => { 
                                         
                                        _0x1dc2ce.send({ 
                                                 
                                                content: _0x1a1150 
                                                 
                                        }); 
                                         
                                }); 
                         
                }); 
                 
                var _0xe6cb9b; 
                 
                client.on("messageCreate", async _0x4a0d61 => { 
                         
                        if (_0x4a0d61.author.bot) { 
                                 
                                return; 
                                 
                        } 
                         
                        if (!_0x4a0d61.guild) { 
                                 
                                return; 
                                 
                        } 
                         
                        if (_0x4a0d61.content.startsWith(config.prefix + "setwelcome")) { 
                                 
                                let _0x5298a7 = (new Discord.MessageActionRow) 
                                         
                                        .addComponents((new Discord.MessageButton) 
                                                 
                                                .setCustomId("xx") 
                                                 
                                                .setLabel("Left") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("x") 
                                                 
                                                .setLabel("Right") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("y") 
                                                 
                                                .setLabel("Down") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("yy") 
                                                 
                                                .setLabel("Up") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("w") 
                                                 
                                                .setLabel("Bigger") 
                                                 
                                                .setStyle("PRIMARY")); 
                                 
                                const _0x306c6c = (new Discord.MessageActionRow) 
                                         
                                        .addComponents((new Discord.MessageButton) 
                                                 
                                                .setCustomId("ww") 
                                                 
                                                .setLabel("Smaller") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("h") 
                                                 
                                                .setLabel("Done") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("e") 
                                                 
                                                .setLabel("Mange Number") 
                                                 
                                                .setStyle("PRIMARY")); 
                                 
                                await _0x1fad69(db.get("x_" + _0x4a0d61.guild.id), db.get("y_" + _0x4a0d61.guild.id), db.get("w_" + _0x4a0d61.guild.id), db.get("h_" + _0x4a0d61.guild.id), _0x4a0d61.author.displayAvatarURL({ 
                                                 
                                                format: "png" 
                                                 
                                        })) 
                                         
                                        .then(async _0x209481 => { 
                                                 
                                                _0x4a0d61.reply({ 
                                                                 
                                                                content: "Made by: Ghos't#0001 only for : necron", 
                                                                 
                                                                files: [_0x209481], 
                                                                 
                                                                components: [_0x5298a7, _0x306c6c] 
                                                                 
                                                        }) 
                                                         
                                                        .then(_0x286818 => { 
                                                                 
                                                                _0xe6cb9b = _0x286818.id; 
                                                                 
                                                        }); 
                                                 
                                                let _0x18e580 = _0x9a310 => _0x9a310.user.id === _0x4a0d61.author.id; 
                                                 
                                                let _0x4811b9 = _0x4a0d61.channel.createMessageComponentCollector({ 
                                                         
                                                        filter: _0x18e580, 
                                                         
                                                        time: 3e5 
                                                         
                                                }); 
                                                 
                                                let _0x35bf0b = db.get("count_" + _0x4a0d61.guild.id) || config.count; 
                                                 
                                                _0x4811b9.on("collect", async _0x22e3a1 => { 
                                                         
                                                        if (_0x22e3a1.customId === "x") { 
                                                                 
                                                                await db.math("x_" + _0x4a0d61.guild.id, "+", _0x35bf0b, false); 
                                                                 
                                                                _0x22e3a1.reply({ 
                                                                                 
                                                                                content: "Done!", 
                                                                                 
                                                                                ephemeral: true 
                                                                                 
                                                                        }) 
                                                                         
                                                                        .then(() => { 
                                                                                 
                                                                                _0x22e3a1.deleteReply(); 
                                                                                 
                                                                        }); 
                                                                 
                                                        } 
                                                         
                                                        if (_0x22e3a1.customId === "xx") { 
                                                                 
                                                                await db.math("x_" + _0x4a0d61.guild.id, "-", _0x35bf0b, false); 
                                                                 
                                                                _0x22e3a1.reply({ 
                                                                                 
                                                                                content: "Done!", 
                                                                                 
                                                                                ephemeral: true 
                                                                                 
                                                                        }) 
                                                                         
                                                                        .then(() => { 
                                                                                 
                                                                                _0x22e3a1.deleteReply(); 
                                                                                 
                                                                        }); 
                                                                 
                                                        } 
                                                         
                                                        if (_0x22e3a1.customId === "y") { 
                                                                 
                                                                await db.math("y_" + _0x4a0d61.guild.id, "+", _0x35bf0b, false); 
                                                                 
                                                                _0x22e3a1.reply({ 
                                                                                 
                                                                                content: "Done!", 
                                                                                 
                                                                                ephemeral: true 
                                                                                 
                                                                        }) 
                                                                         
                                                                        .then(() => { 
                                                                                 
                                                                                _0x22e3a1.deleteReply(); 
                                                                                 
                                                                        }); 
                                                                 
                                                        } 
                                                         
                                                        if (_0x22e3a1.customId === "yy") { 
                                                                 
                                                                await db.math("y_" + _0x4a0d61.guild.id, "-", _0x35bf0b, false); 
                                                                 
                                                                _0x22e3a1.reply({ 
                                                                                 
                                                                                content: "Done!", 
                                                                                 
                                                                                ephemeral: true 
                                                                                 
                                                                        }) 
                                                                         
                                                                        .then(() => { 
                                                                                 
                                                                                _0x22e3a1.deleteReply(); 
                                                                                 
                                                                        }); 
                                                                 
                                                        } 
                                                         
                                                        if (_0x22e3a1.customId === "w") { 
                                                                 
                                                                await db.math("w_" + _0x4a0d61.guild.id, "+", _0x35bf0b, false); 
                                                                 
                                                                await db.math("h_" + _0x4a0d61.guild.id, "+", _0x35bf0b, false); 
                                                                 
                                                                _0x22e3a1.reply({ 
                                                                                 
                                                                                content: "Done!", 
                                                                                 
                                                                                ephemeral: true 
                                                                                 
                                                                        }) 
                                                                         
                                                                        .then(() => { 
                                                                                 
                                                                                _0x22e3a1.deleteReply(); 
                                                                                 
                                                                        }); 
                                                                 
                                                        } 
                                                         
                                                        if (_0x22e3a1.customId === "ww") { 
                                                                 
                                                                await db.math("w_" + _0x4a0d61.guild.id, "-", _0x35bf0b, false); 
                                                                 
                                                                await db.math("h_" + _0x4a0d61.guild.id, "-", _0x35bf0b, false); 
                                                                 
                                                                _0x22e3a1.reply({ 
                                                                                 
                                                                                content: "Done!", 
                                                                                 
                                                                                ephemeral: true 
                                                                                 
                                                                        }) 
                                                                         
                                                                        .then(() => { 
                                                                                 
                                                                                _0x22e3a1.deleteReply(); 
                                                                                 
                                                                        }); 
                                                                 
                                                        } 
                                                         
                                                        if (_0x22e3a1.customId === "h") { 
                                                                 
                                                                _0x4811b9.stop(); 
                                                                 
                                                        } 
                                                         
                                                        if (_0x22e3a1.customId === "e") { 
                                                                 
                                                                const _0x24b68a = (new Discord.Modal) 
                                                                         
                                                                        .setCustomId("myModal") 
                                                                         
                                                                        .setTitle("    "); 
                                                                 
                                                                const _0x326656 = (new Discord.TextInputComponent) 
                                                                         
                                                                        .setCustomId("count") 
                                                                         
                                                                        .setLabel("    ") 
                                                                         
                                                                        .setStyle("SHORT"); 
                                                                 
                                                                const _0x17c303 = (new Discord.MessageActionRow) 
                                                                         
                                                                        .addComponents(_0x326656); 
                                                                 
                                                                _0x24b68a.addComponents(_0x17c303); 
                                                                 
                                                                await _0x22e3a1.showModal(_0x24b68a); 
                                                                 
                                                        } 
                                                         
                                                        let _0x1b257d = await _0x4a0d61.channel.messages.fetch(_0xe6cb9b); 
                                                         
                                                        await _0x1fad69(await db.get("x_" + _0x4a0d61.guild.id), await db.get("y_" + _0x4a0d61.guild.id), await db.get("w_" + _0x4a0d61.guild.id), await db.get("h_" + _0x4a0d61.guild.id), _0x4a0d61.author.displayAvatarURL({ 
                                                                         
                                                                        format: "png" 
                                                                         
                                                                })) 
                                                                 
                                                                .then(async _0x56217c => { 
                                                                         
                                                                        _0x1b257d.edit({ 
                                                                                 
                                                                                content: "Made by: Ghos't#0001 only for : necron", 
                                                                                 
                                                                                files: [_0x56217c] 
                                                                                 
                                                                        }); 
                                                                         
                                                                }); 
                                                         
                                                }); 
                                                 
                                        }); 
                                 
                        } 
                         
                }); 
                 
                client.on("interactionCreate", async _0x42525d => { 
                         
                        if (!_0x42525d.isModalSubmit()) { 
                                 
                                return; 
                                 
                        } 
                         
                        if (_0x42525d.customId === "myModal") { 
                                 
                                const _0x27fa51 = _0x42525d.fields.getTextInputValue("count"); 
                                 
                                await db.set("count_" + _0x42525d.guild.id, parseInt(_0x27fa51)); 
                                 
                                _0x42525d.reply({ 
                                                 
                                                content: "Done!", 
                                                 
                                                ephemeral: true 
                                                 
                                        }) 
                                         
                                        .then(() => { 
                                                 
                                                _0x42525d.deleteReply(); 
                                                 
                                        }); 
                                 
                        } 
                         
                }); 
                 
                var _0x8f3457; 
                 
                client.on("messageCreate", async _0x53c073 => { 
                         
                        if (_0x53c073.author.bot) { 
                                 
                                return; 
                                 
                        } 
                         
                        if (!_0x53c073.guild) { 
                                 
                                return; 
                                 
                        } 
                         
                        if (_0x53c073.content.startsWith(config.prefix + "settext")) { 
                                 
                                let _0x5bc626 = (new Discord.MessageActionRow) 
                                         
                                        .addComponents((new Discord.MessageButton) 
                                                 
                                                .setCustomId("xxer") 
                                                 
                                                .setLabel("Left") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("xer") 
                                                 
                                                .setLabel("Right") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("yyer") 
                                                 
                                                .setLabel("Up") 
                                                 
                                                .setStyle("PRIMARY"), (new Discord.MessageButton) 
                                                 
                                                .setCustomId("yer") 
                                                 
                                                .setLabel("Down") 
                                                 
                                                .setStyle("PRIMARY")); 
                                 
                                _0x1fad69(await db.get("x_" + _0x53c073.guild.id), await db.get("y_" + _0x53c073.guild.id), await db.get("w_" + _0x53c073.guild.id), await db.get("h_" + _0x53c073.guild.id), _0x53c073.author.displayAvatarURL({ 
                                                 
                                                format: "png" 
                                                 
                                        }), db.get("xl_" + _0x53c073.guild.id), db.get("yl_" + _0x53c073.guild.id), _0x53c073.author.username) 
                                         
                                        .then(async _0x5a1be8 => { 
                                                 
                                                await _0x53c073.channel.send({ 
                                                                 
                                                                content: "Made by: Ghos't#0001 only for : necron", 
                                                                 
                                                                files: [_0x5a1be8], 
                                                                 
                                                                components: [_0x5bc626] 
                                                                 
                                                        }) 
                                                         
                                                        .then(async _0x19c0ca => { 
                                                                 
                                                                _0x8f3457 = _0x19c0ca.id; 
                                                                 
                                                        }); 
                                                 
                                        }); 
                                 
                                let _0x3e0496 = _0x50209b => _0x50209b.user.id === _0x53c073.author.id; 
                                 
                                let _0x370333 = _0x53c073.channel.createMessageComponentCollector({ 
                                         
                                        filter: _0x3e0496, 
                                         
                                        time: 3e5 
                                         
                                }); 
                                 
                                let _0x50a7f6 = db.get("count_" + _0x53c073.guild.id) || config.count; 
                                 
                                _0x370333.on("collect", async _0x483a1e => { 
                                         
                                        if (_0x483a1e.customId === "xer") { 
                                                 
                                                await db.math("xl_" + _0x53c073.guild.id, "+", _0x50a7f6, false); 
                                                 
                                                await _0x483a1e.reply({ 
                                                                 
                                                                content: "Done!", 
                                                                 
                                                                ephemeral: true 
                                                                 
                                                        }) 
                                                         
                                                        .then(() => { 
                                                                 
                                                                _0x483a1e.deleteReply(); 
                                                                 
                                                        }); 
                                                 
                                        } 
                                         
                                        if (_0x483a1e.customId === "xxer") { 
                                                 
                                                await db.math("xl_" + _0x53c073.guild.id, "-", _0x50a7f6, false); 
                                                 
                                                await _0x483a1e.reply({ 
                                                                 
                                                                content: "Done!", 
                                                                 
                                                                ephemeral: true 
                                                                 
                                                        }) 
                                                         
                                                        .then(() => { 
                                                                 
                                                                _0x483a1e.deleteReply(); 
                                                                 
                                                        }); 
                                                 
                                        } 
                                         
                                        if (_0x483a1e.customId === "yer") { 
                                                 
                                                await db.math("yl_" + _0x53c073.guild.id, "+", _0x50a7f6, false); 
                                                 
                                                await _0x483a1e.reply({ 
                                                                 
                                                                content: "Done!", 
                                                                 
                                                                ephemeral: true 
                                                                 
                                                        }) 
                                                         
                                                        .then(() => { 
                                                                 
                                                                _0x483a1e.deleteReply(); 
                                                                 
                                                        }); 
                                                 
                                        } 
                                         
                                        if (_0x483a1e.customId === "yyer") { 
                                                 
                                                await db.math("yl_" + _0x53c073.guild.id, "-", _0x50a7f6, false); 
                                                 
                                                await _0x483a1e.reply({ 
                                                                 
                                                                content: "Done!", 
                                                                 
                                                                ephemeral: true 
                                                                 
                                                        }) 
                                                         
                                                        .then(() => { 
                                                                 
                                                                _0x483a1e.deleteReply(); 
                                                                 
                                                        }); 
                                                 
                                        } 
                                         
                                        let _0x468c77 = await _0x53c073.channel.messages.fetch(_0x8f3457); 
                                         
                                        await _0x1fad69(await db.get("x_" + _0x53c073.guild.id), await db.get("y_" + _0x53c073.guild.id), await db.get("w_" + _0x53c073.guild.id), await db.get("h_" + _0x53c073.guild.id), _0x53c073.author.displayAvatarURL({ 
                                                         
                                                        format: "png" 
                                                         
                                                }), await db.get("xl_" + _0x53c073.guild.id), await db.get("yl_" + _0x53c073.guild.id), _0x53c073.author.username) 
                                                 
                                                .then(async _0x12db66 => { 
                                                         
                                                        _0x468c77.edit({ 
                                                                 
                                                                content: "Made by: Ghos't#0001 only for : necron", 
                                                                 
                                                                files: [_0x12db66] 
                                                                 
                                                        }); 
                                                         
                                                }); 
                                         
                                }); 
                                 
                        } 
                         
                }); 
                 
                client.on("ready", () => { 
                         
                        console.log("Ready!" + client.user.tag); 
                         
                        console; 
                         
                }); 
                 
                client.on("messageCreate", async _0x2dcbb0 => { 
                         
                        if (_0x2dcbb0.author.bot) { 
                                 
                                return; 
                                 
                        } 
                         
                        if (_0x2dcbb0.content.startsWith("1")) { 
                                 
                                client.emit("guildMemberAdd", _0x2dcbb0.member); 
                                 
                        } 
                         
                }); 
                 
                client.login(config.token); 
                 
        } 
         
}); 
 ?>

Did this file decode correctly?

Original Code

var {
        
        Client,
        
        Intents
        
}

= require("discord.js");

var client = new Client({
        
        partials: ["CHANNEL", "GUILD_MEMBER"],
        
        intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_PRESENCES, Intents.FLAGS.GUILD_INVITES]
        
});

const Discord = require("discord.js");

const config = require("./config.js");

const chalk = require("chalk");

console.log(chalk.blue("This bot made by Ghos't#0001 only for : necron.host"));

const Canvas = require("canvas");

const editor = require("editor-canvas");

const {
        
        Database
        
}

= require("st.db");

const db = new Database("database.json");

const request = require("request");

var options = {
        
        method: "GET",
        
        url: "https://licensesecure.net/checker?id=7296722"
                
                ,
        
        headers: {
                
                "User-Agent": "FXServer/PerformHttpRequest"
                
        }
        
}

;

request(options, function (_0x3fd983, _0x5d76f9, _0x1597a2) {
        
        if (_0x1597a2 !== "yes") {
                
                console.log("[31m", "This bot is made by necron.host and can only work there, please join our discord if you need any more help https://discord.gg/nec");
                
                process.exit(1);
                
        } else {
                
                console.log("[36m", "Access Granted | This bot is made by necron.host, discord.gg/nec");
                
                async function _0x1fad69(_0x56a026, _0x486c7c, _0x36e9b2, _0x1a39c2, _0xbf0434, _0x41f634, _0xc0ad3c, _0x44a0c4) {
                        
                        var _0x5b5983 = config.welcomeimage;
                        
                        _0x5b5983 = await Canvas.loadImage(_0x5b5983);
                        
                        var _0x412fe2 = Canvas.createCanvas(_0x5b5983.width, _0x5b5983.height);
                        
                        var _0x36737c = _0x412fe2.getContext("2d");
                        
                        _0x36737c.drawImage(_0x5b5983, 0, 0, _0x412fe2.width, _0x412fe2.height);
                        
                        _0xbf0434 = await editor.drawCircle({
                                
                                image: _0xbf0434
                                
                        });
                        
                        _0xbf0434 = await Canvas.loadImage(_0xbf0434);
                        
                        _0x36737c.drawImage(_0xbf0434, _0x56a026, _0x486c7c, _0x36e9b2, _0x1a39c2);
                        
                        _0x36737c.textAlign = "center";
                        
                        _0x36737c.fillStyle = "WHITE";
                        
                        _0x36737c.font = "70px Arial";
                        
                        let _0x26343d = _0x41f634 || 50;
                        
                        let _0x2eab76 = _0xc0ad3c || 50;
                        
                        _0x36737c.fillText(_0x44a0c4, _0x26343d, _0x2eab76);
                        
                        let _0x80d99a = new Discord.MessageAttachment(_0x412fe2.toBuffer(), "welcome.png");
                        
                        return _0x80d99a;
                        
                }
                
                var {
                        
                        inviteTracker: _0x3a8cff
                        
                }
                
                = require("discord-inviter");
                
                var _0x294d92 = new _0x3a8cff(client);
                
                _0x294d92.on("guildMemberAdd", async (_0x485854, _0x319827, _0x10ebb7, _0x177000) => {
                        
                        if (_0x177000) {
                                
                                return console.error(_0x177000);
                                
                        }
                        
                        let _0x1dc2ce = _0x485854.guild.channels.cache.get(config.welcomechannel);
                        
                        let _0x1a1150 = config.welcomemsg.replace("{user}", _0x485854.user)
                                
                                .replace("{inviter}", "<@" + _0x319827.id + ">")
                                
                                .replace("{server}", _0x485854.guild.name);
                        
                        if (_0x485854.user.bot) {
                                
                                _0x1a1150 = config.welcomemsg.replace("{user}", _0x485854.user)
                                        
                                        .replace("{inviter}", "<@" + _0x319827.id + ">")
                                        
                                        .replace("{server}", _0x485854.guild.name);
                                
                        }
                        
                        if (!_0x1dc2ce) {
                                
                                return;
                                
                        }
                        
                        var _0x27f09c = config.welcomeimage;
                        
                        _0x27f09c = await Canvas.loadImage(_0x27f09c);
                        
                        var _0x45e5cc = Canvas.createCanvas(_0x27f09c.width, _0x27f09c.height);
                        
                        var _0x1a0d10 = _0x45e5cc.getContext("2d");
                        
                        _0x1a0d10.drawImage(_0x27f09c, 0, 0, _0x45e5cc.width, _0x45e5cc.height);
                        
                        var _0x40c922 = _0x485854.user.displayAvatarURL({
                                
                                format: "png"
                                
                        });
                        
                        _0x40c922 = await editor.drawCircle({
                                
                                image: _0x40c922
                                
                        });
                        
                        _0x40c922 = await Canvas.loadImage(_0x40c922);
                        
                        let _0x51defe = db.get("x_" + _0x485854.guild.id) || await db.set("x_" + _0x485854.guild.id, 180);
                        
                        let _0x43f4b6 = db.get("y_" + _0x485854.guild.id) || await db.set("y_" + _0x485854.guild.id, 240);
                        
                        let _0x2c6f61 = db.get("w_" + _0x485854.guild.id) || await db.set("w_" + _0x485854.guild.id, 388);
                        
                        let _0x1103e8 = db.get("h_" + _0x485854.guild.id) || await db.set("h_" + _0x485854.guild.id, 388);
                        
                        _0x1a0d10.drawImage(_0x40c922, _0x51defe, _0x43f4b6, _0x2c6f61, _0x1103e8);
                        
                        _0x1a0d10.textAlign = "center";
                        
                        _0x1a0d10.fillStyle = "WHITE";
                        
                        _0x1a0d10.font = "70px Arial";
                        
                        _0x1a0d10.fillText("My TEXT!", 20, 20);
                        
                        let _0x24413c = new Discord.MessageAttachment(_0x45e5cc.toBuffer(), "welcome.png");
                        
                        _0x1dc2ce.send({
                                        
                                        files: [_0x24413c]
                                        
                                })
                                
                                .then(_0x27b573 => {
                                        
                                        _0x1dc2ce.send({
                                                
                                                content: _0x1a1150
                                                
                                        });
                                        
                                });
                        
                });
                
                var _0xe6cb9b;
                
                client.on("messageCreate", async _0x4a0d61 => {
                        
                        if (_0x4a0d61.author.bot) {
                                
                                return;
                                
                        }
                        
                        if (!_0x4a0d61.guild) {
                                
                                return;
                                
                        }
                        
                        if (_0x4a0d61.content.startsWith(config.prefix + "setwelcome")) {
                                
                                let _0x5298a7 = (new Discord.MessageActionRow)
                                        
                                        .addComponents((new Discord.MessageButton)
                                                
                                                .setCustomId("xx")
                                                
                                                .setLabel("Left")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("x")
                                                
                                                .setLabel("Right")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("y")
                                                
                                                .setLabel("Down")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("yy")
                                                
                                                .setLabel("Up")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("w")
                                                
                                                .setLabel("Bigger")
                                                
                                                .setStyle("PRIMARY"));
                                
                                const _0x306c6c = (new Discord.MessageActionRow)
                                        
                                        .addComponents((new Discord.MessageButton)
                                                
                                                .setCustomId("ww")
                                                
                                                .setLabel("Smaller")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("h")
                                                
                                                .setLabel("Done")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("e")
                                                
                                                .setLabel("Mange Number")
                                                
                                                .setStyle("PRIMARY"));
                                
                                await _0x1fad69(db.get("x_" + _0x4a0d61.guild.id), db.get("y_" + _0x4a0d61.guild.id), db.get("w_" + _0x4a0d61.guild.id), db.get("h_" + _0x4a0d61.guild.id), _0x4a0d61.author.displayAvatarURL({
                                                
                                                format: "png"
                                                
                                        }))
                                        
                                        .then(async _0x209481 => {
                                                
                                                _0x4a0d61.reply({
                                                                
                                                                content: "Made by: Ghos't#0001 only for : necron",
                                                                
                                                                files: [_0x209481],
                                                                
                                                                components: [_0x5298a7, _0x306c6c]
                                                                
                                                        })
                                                        
                                                        .then(_0x286818 => {
                                                                
                                                                _0xe6cb9b = _0x286818.id;
                                                                
                                                        });
                                                
                                                let _0x18e580 = _0x9a310 => _0x9a310.user.id === _0x4a0d61.author.id;
                                                
                                                let _0x4811b9 = _0x4a0d61.channel.createMessageComponentCollector({
                                                        
                                                        filter: _0x18e580,
                                                        
                                                        time: 3e5
                                                        
                                                });
                                                
                                                let _0x35bf0b = db.get("count_" + _0x4a0d61.guild.id) || config.count;
                                                
                                                _0x4811b9.on("collect", async _0x22e3a1 => {
                                                        
                                                        if (_0x22e3a1.customId === "x") {
                                                                
                                                                await db.math("x_" + _0x4a0d61.guild.id, "+", _0x35bf0b, false);
                                                                
                                                                _0x22e3a1.reply({
                                                                                
                                                                                content: "Done!",
                                                                                
                                                                                ephemeral: true
                                                                                
                                                                        })
                                                                        
                                                                        .then(() => {
                                                                                
                                                                                _0x22e3a1.deleteReply();
                                                                                
                                                                        });
                                                                
                                                        }
                                                        
                                                        if (_0x22e3a1.customId === "xx") {
                                                                
                                                                await db.math("x_" + _0x4a0d61.guild.id, "-", _0x35bf0b, false);
                                                                
                                                                _0x22e3a1.reply({
                                                                                
                                                                                content: "Done!",
                                                                                
                                                                                ephemeral: true
                                                                                
                                                                        })
                                                                        
                                                                        .then(() => {
                                                                                
                                                                                _0x22e3a1.deleteReply();
                                                                                
                                                                        });
                                                                
                                                        }
                                                        
                                                        if (_0x22e3a1.customId === "y") {
                                                                
                                                                await db.math("y_" + _0x4a0d61.guild.id, "+", _0x35bf0b, false);
                                                                
                                                                _0x22e3a1.reply({
                                                                                
                                                                                content: "Done!",
                                                                                
                                                                                ephemeral: true
                                                                                
                                                                        })
                                                                        
                                                                        .then(() => {
                                                                                
                                                                                _0x22e3a1.deleteReply();
                                                                                
                                                                        });
                                                                
                                                        }
                                                        
                                                        if (_0x22e3a1.customId === "yy") {
                                                                
                                                                await db.math("y_" + _0x4a0d61.guild.id, "-", _0x35bf0b, false);
                                                                
                                                                _0x22e3a1.reply({
                                                                                
                                                                                content: "Done!",
                                                                                
                                                                                ephemeral: true
                                                                                
                                                                        })
                                                                        
                                                                        .then(() => {
                                                                                
                                                                                _0x22e3a1.deleteReply();
                                                                                
                                                                        });
                                                                
                                                        }
                                                        
                                                        if (_0x22e3a1.customId === "w") {
                                                                
                                                                await db.math("w_" + _0x4a0d61.guild.id, "+", _0x35bf0b, false);
                                                                
                                                                await db.math("h_" + _0x4a0d61.guild.id, "+", _0x35bf0b, false);
                                                                
                                                                _0x22e3a1.reply({
                                                                                
                                                                                content: "Done!",
                                                                                
                                                                                ephemeral: true
                                                                                
                                                                        })
                                                                        
                                                                        .then(() => {
                                                                                
                                                                                _0x22e3a1.deleteReply();
                                                                                
                                                                        });
                                                                
                                                        }
                                                        
                                                        if (_0x22e3a1.customId === "ww") {
                                                                
                                                                await db.math("w_" + _0x4a0d61.guild.id, "-", _0x35bf0b, false);
                                                                
                                                                await db.math("h_" + _0x4a0d61.guild.id, "-", _0x35bf0b, false);
                                                                
                                                                _0x22e3a1.reply({
                                                                                
                                                                                content: "Done!",
                                                                                
                                                                                ephemeral: true
                                                                                
                                                                        })
                                                                        
                                                                        .then(() => {
                                                                                
                                                                                _0x22e3a1.deleteReply();
                                                                                
                                                                        });
                                                                
                                                        }
                                                        
                                                        if (_0x22e3a1.customId === "h") {
                                                                
                                                                _0x4811b9.stop();
                                                                
                                                        }
                                                        
                                                        if (_0x22e3a1.customId === "e") {
                                                                
                                                                const _0x24b68a = (new Discord.Modal)
                                                                        
                                                                        .setCustomId("myModal")
                                                                        
                                                                        .setTitle("    ");
                                                                
                                                                const _0x326656 = (new Discord.TextInputComponent)
                                                                        
                                                                        .setCustomId("count")
                                                                        
                                                                        .setLabel("    ")
                                                                        
                                                                        .setStyle("SHORT");
                                                                
                                                                const _0x17c303 = (new Discord.MessageActionRow)
                                                                        
                                                                        .addComponents(_0x326656);
                                                                
                                                                _0x24b68a.addComponents(_0x17c303);
                                                                
                                                                await _0x22e3a1.showModal(_0x24b68a);
                                                                
                                                        }
                                                        
                                                        let _0x1b257d = await _0x4a0d61.channel.messages.fetch(_0xe6cb9b);
                                                        
                                                        await _0x1fad69(await db.get("x_" + _0x4a0d61.guild.id), await db.get("y_" + _0x4a0d61.guild.id), await db.get("w_" + _0x4a0d61.guild.id), await db.get("h_" + _0x4a0d61.guild.id), _0x4a0d61.author.displayAvatarURL({
                                                                        
                                                                        format: "png"
                                                                        
                                                                }))
                                                                
                                                                .then(async _0x56217c => {
                                                                        
                                                                        _0x1b257d.edit({
                                                                                
                                                                                content: "Made by: Ghos't#0001 only for : necron",
                                                                                
                                                                                files: [_0x56217c]
                                                                                
                                                                        });
                                                                        
                                                                });
                                                        
                                                });
                                                
                                        });
                                
                        }
                        
                });
                
                client.on("interactionCreate", async _0x42525d => {
                        
                        if (!_0x42525d.isModalSubmit()) {
                                
                                return;
                                
                        }
                        
                        if (_0x42525d.customId === "myModal") {
                                
                                const _0x27fa51 = _0x42525d.fields.getTextInputValue("count");
                                
                                await db.set("count_" + _0x42525d.guild.id, parseInt(_0x27fa51));
                                
                                _0x42525d.reply({
                                                
                                                content: "Done!",
                                                
                                                ephemeral: true
                                                
                                        })
                                        
                                        .then(() => {
                                                
                                                _0x42525d.deleteReply();
                                                
                                        });
                                
                        }
                        
                });
                
                var _0x8f3457;
                
                client.on("messageCreate", async _0x53c073 => {
                        
                        if (_0x53c073.author.bot) {
                                
                                return;
                                
                        }
                        
                        if (!_0x53c073.guild) {
                                
                                return;
                                
                        }
                        
                        if (_0x53c073.content.startsWith(config.prefix + "settext")) {
                                
                                let _0x5bc626 = (new Discord.MessageActionRow)
                                        
                                        .addComponents((new Discord.MessageButton)
                                                
                                                .setCustomId("xxer")
                                                
                                                .setLabel("Left")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("xer")
                                                
                                                .setLabel("Right")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("yyer")
                                                
                                                .setLabel("Up")
                                                
                                                .setStyle("PRIMARY"), (new Discord.MessageButton)
                                                
                                                .setCustomId("yer")
                                                
                                                .setLabel("Down")
                                                
                                                .setStyle("PRIMARY"));
                                
                                _0x1fad69(await db.get("x_" + _0x53c073.guild.id), await db.get("y_" + _0x53c073.guild.id), await db.get("w_" + _0x53c073.guild.id), await db.get("h_" + _0x53c073.guild.id), _0x53c073.author.displayAvatarURL({
                                                
                                                format: "png"
                                                
                                        }), db.get("xl_" + _0x53c073.guild.id), db.get("yl_" + _0x53c073.guild.id), _0x53c073.author.username)
                                        
                                        .then(async _0x5a1be8 => {
                                                
                                                await _0x53c073.channel.send({
                                                                
                                                                content: "Made by: Ghos't#0001 only for : necron",
                                                                
                                                                files: [_0x5a1be8],
                                                                
                                                                components: [_0x5bc626]
                                                                
                                                        })
                                                        
                                                        .then(async _0x19c0ca => {
                                                                
                                                                _0x8f3457 = _0x19c0ca.id;
                                                                
                                                        });
                                                
                                        });
                                
                                let _0x3e0496 = _0x50209b => _0x50209b.user.id === _0x53c073.author.id;
                                
                                let _0x370333 = _0x53c073.channel.createMessageComponentCollector({
                                        
                                        filter: _0x3e0496,
                                        
                                        time: 3e5
                                        
                                });
                                
                                let _0x50a7f6 = db.get("count_" + _0x53c073.guild.id) || config.count;
                                
                                _0x370333.on("collect", async _0x483a1e => {
                                        
                                        if (_0x483a1e.customId === "xer") {
                                                
                                                await db.math("xl_" + _0x53c073.guild.id, "+", _0x50a7f6, false);
                                                
                                                await _0x483a1e.reply({
                                                                
                                                                content: "Done!",
                                                                
                                                                ephemeral: true
                                                                
                                                        })
                                                        
                                                        .then(() => {
                                                                
                                                                _0x483a1e.deleteReply();
                                                                
                                                        });
                                                
                                        }
                                        
                                        if (_0x483a1e.customId === "xxer") {
                                                
                                                await db.math("xl_" + _0x53c073.guild.id, "-", _0x50a7f6, false);
                                                
                                                await _0x483a1e.reply({
                                                                
                                                                content: "Done!",
                                                                
                                                                ephemeral: true
                                                                
                                                        })
                                                        
                                                        .then(() => {
                                                                
                                                                _0x483a1e.deleteReply();
                                                                
                                                        });
                                                
                                        }
                                        
                                        if (_0x483a1e.customId === "yer") {
                                                
                                                await db.math("yl_" + _0x53c073.guild.id, "+", _0x50a7f6, false);
                                                
                                                await _0x483a1e.reply({
                                                                
                                                                content: "Done!",
                                                                
                                                                ephemeral: true
                                                                
                                                        })
                                                        
                                                        .then(() => {
                                                                
                                                                _0x483a1e.deleteReply();
                                                                
                                                        });
                                                
                                        }
                                        
                                        if (_0x483a1e.customId === "yyer") {
                                                
                                                await db.math("yl_" + _0x53c073.guild.id, "-", _0x50a7f6, false);
                                                
                                                await _0x483a1e.reply({
                                                                
                                                                content: "Done!",
                                                                
                                                                ephemeral: true
                                                                
                                                        })
                                                        
                                                        .then(() => {
                                                                
                                                                _0x483a1e.deleteReply();
                                                                
                                                        });
                                                
                                        }
                                        
                                        let _0x468c77 = await _0x53c073.channel.messages.fetch(_0x8f3457);
                                        
                                        await _0x1fad69(await db.get("x_" + _0x53c073.guild.id), await db.get("y_" + _0x53c073.guild.id), await db.get("w_" + _0x53c073.guild.id), await db.get("h_" + _0x53c073.guild.id), _0x53c073.author.displayAvatarURL({
                                                        
                                                        format: "png"
                                                        
                                                }), await db.get("xl_" + _0x53c073.guild.id), await db.get("yl_" + _0x53c073.guild.id), _0x53c073.author.username)
                                                
                                                .then(async _0x12db66 => {
                                                        
                                                        _0x468c77.edit({
                                                                
                                                                content: "Made by: Ghos't#0001 only for : necron",
                                                                
                                                                files: [_0x12db66]
                                                                
                                                        });
                                                        
                                                });
                                        
                                });
                                
                        }
                        
                });
                
                client.on("ready", () => {
                        
                        console.log("Ready!" + client.user.tag);
                        
                        console;
                        
                });
                
                client.on("messageCreate", async _0x2dcbb0 => {
                        
                        if (_0x2dcbb0.author.bot) {
                                
                                return;
                                
                        }
                        
                        if (_0x2dcbb0.content.startsWith("1")) {
                                
                                client.emit("guildMemberAdd", _0x2dcbb0.member);
                                
                        }
                        
                });
                
                client.login(config.token);
                
        }
        
});

Function Calls

None

Variables

None

Stats

MD5 2b2a4b188c49a0e73d52e16ad3ceb73a
Eval Count 0
Decode Time 78 ms