Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* اعاده نشر الكود بي حقوقك توكسك كودز فقط
- اي احد يزرفه يستحمل الباند الي بيجيه في الدسكورد _:)*/
- const bbg =["https://i.pinimg.com/236x/22/75/5f/22755f39c8f4f712cfdb237a4b8f0e7a.jpg", //Toxic Codes
- "https://i.pinimg.com/564x/b6/d9/94/b6d994a07f9dd19a98b52994b5fcf7d7.jpg", //Toxic Codes
- "https://i.pinimg.com/236x/2d/7a/92/2d7a92241570589639f5922a5021a38e.jpg", //Toxic Codes
- "https://i.pinimg.com/236x/2a/f7/f3/2af7f307ccfda22028e261657f07ca7b.jpg", //Toxic Codes
- "https://i.pinimg.com/236x/1e/08/fc/1e08fca2fc4df9f5cbca156d61b6ecd3.jpg", //Toxic Codes
- "https://i.pinimg.com/236x/f5/f8/38/f5f8380ef692c55e7b97cf0f64d07556.jpg", //Toxic Codes
- ]; //Toxic Codes
- client.on("message",async msg => { //Toxic Codes
- if(msg.content.startsWith(prefix + "server")){ //Toxic Codes
- const Canvas = require("canvas"); //Toxic Codes
- let mentions = msg.mentions.members.first() //Toxic Codes
- if(!mentions) { //Toxic Codes
- let bbs = bbg[Math.floor(Math.random() * bbg.length)]
- let serverid = msg.guild.id //Toxic Codes
- let serverna = msg.guild.name //Toxic Codes
- let owner = msg.guild.owner //Toxic Codes
- let ownerna = owner.user.username //Toxic Codes
- let ownerta = owner.user.discriminator//Toxic Codes
- let channels = msg.guild.channels.size //Toxic Codes
- let voice = msg.guild.channels.filter(f => f.type === "voice").size //Toxic Codes
- let text = msg.guild.channels.filter(f => f.type === "text").size //Toxic Codes
- let createdo = moment(msg.guild.createdAt).format(`D/M/YYYY h:mm`) //Toxic Codes
- let createdf = moment(msg.guild.createdAt).locale("EN-eg").fromNow() //Toxic Codes
- let members = msg.guild.members.size //Toxic Codes
- let online = msg.guild.members.filter(c => c.presence.status !== "offline").size //Toxic Codes
- let region = msg.guild.region //Toxic Codes
- let verificationl = msg.guild.verificationLevel //Toxic Codes
- let roles = msg.guild.roles.size //Toxic Codes
- let by = msg.author.username //Toxic Codes
- let tserverid = "server id:" //Toxic Codes
- let townerna = "owner:" //Toxic Codes
- let tchannels = "channels:" //Toxic Codes
- let tvoice = "voice:" //Toxic Codes
- let ttext = "text:" //Toxic Codes
- let tcreatedo = "created at:" //Toxic Codes
- let tregion = "region:" //Toxic Codes
- let tverificationl = "verification level:" //Toxic Codes
- let troles = "roles" //Toxic Codes
- let tmembers = "members:" //Toxic Codes
- let tonline = "online:" //Toxic Codes
- let hm = "Requested by" //Toxic Codes
- let servericon = msg.guild.iconURL //Toxic Codes
- let canvas = Canvas.createCanvas(800 , 500) //Toxic Codes
- let ctx = canvas.getContext('2d'); //Toxic Codes
- const background = await Canvas.loadImage(`${bbs}`);//Toxic Codes
- const bg = await Canvas.loadImage("https://cdn.discordapp.com/attachments/637449457658494999/642490023954087946/hmmmm.PNG");
- const icon = await Canvas.loadImage(`${servericon}`); //Toxic Codes
- const avatar = await Canvas.loadImage(`${msg.author.avatarURL}`);
- ctx.drawImage(background, 0, 0, canvas.width, canvas.height); //Toxic Codes
- ctx.drawImage(bg, 0, 0, canvas.width, canvas.height); //Toxic Codes
- ctx.font = '25px Elephant';//Toxic Codes
- ctx.fontSize = '30px';//Toxic Codes
- ctx.textAlign = "center";//Toxic Codes
- ctx.fillStyle = "#007cff"; //Toxic Codes
- ctx.fillText(serverid, canvas.width / 2, canvas.height / 1.6); //Toxic Codes
- ctx.font = '30px Elephant';//Toxic Codes
- ctx.fillStyle = "#ffffff"; //Toxic Codes
- ctx.fillText(serverna, canvas.width / 2, canvas.height / 2); //Toxic Codes
- ctx.font = '25px Elephant';//Toxic Codes
- ctx.fillStyle = "#ffd304"; //Toxic Codes
- ctx.fillText(ownerna+"#"+ownerta, canvas.width / 2, canvas.height / 1.8); //Toxic Codes
- ctx.fillStyle = "#ffffff"; //Toxic Codes
- ctx.fillText(channels, canvas.width / 1.1, canvas.height / 6); //Toxic Codes
- ctx.fillText(voice, canvas.width / 1.1, canvas.height / 4.8); //Toxic Codes
- ctx.fillText(text, canvas.width / 1.1, canvas.height / 3.9); //Toxic Codes
- ctx.fillStyle = "#e9abab"; //Toxic Codes
- ctx.fillText(createdo, canvas.width / 5, canvas.height / 3.1); //Toxic Codes
- ctx.fillText(createdf, canvas.width / 5, canvas.height / 2.75); //Toxic Codes
- ctx.fillStyle = "#ffffff"; //Toxic Codes
- ctx.fillText(region, canvas.width / 1.2, canvas.height / 2.9); //Toxic Codes
- ctx.fillText(verificationl, canvas.width / 2.9, canvas.height / 6); //Toxic Codes
- ctx.fillText(roles, canvas.width / 1.5, canvas.height / 1.3); //Toxic Codes
- ctx.font = '30px Elephant';//Toxic Codes
- ctx.fillStyle = "#007cff"; //Toxic Codes
- ctx.fillText(tserverid, canvas.width / 6, canvas.height / 1.6); //Toxic Codes
- ctx.font = '30px Elephant';//Toxic Codes
- ctx.fillStyle = "#ffd304"; //Toxic Codes
- ctx.fillText(townerna, canvas.width / 6, canvas.height / 1.8); //Toxic Codes
- ctx.fillStyle = "#ffffff"; //Toxic Codes
- ctx.font = '30px Elephant';//Toxic Codes
- ctx.fillText(tchannels, canvas.width / 1.4, canvas.height / 6); //Toxic Codes
- ctx.fillText(tvoice, canvas.width / 1.4, canvas.height / 4.8); //Toxic Codes
- ctx.fillText(ttext, canvas.width / 1.4, canvas.height / 3.9); //Toxic Codes
- ctx.fillStyle = "#e9abab"; //Toxic Codes
- ctx.fillText(tcreatedo, canvas.width / 5, canvas.height / 3.6); //Toxic Codes
- ctx.fillStyle = "#ffffff"; //Toxic Codes
- ctx.font = '25px Elephant';//Toxic Codes
- ctx.fillText(tregion, canvas.width / 1.5, canvas.height / 2.9); //Toxic Codes
- ctx.fillText(tverificationl, canvas.width / 5.5, canvas.height / 6); //Toxic Codes
- ctx.font = '30px Elephant';//Toxic Codes
- ctx.fillText(troles, canvas.width / 1.8, canvas.height / 1.3); //Toxic Codes
- ctx.font = '25px Elephant';//Toxic Codes
- ctx.fillText(hm, canvas.width / 4.3, canvas.height / 1.1); //Toxic Codes
- ctx.font = '30px Elephant';//Toxic Codes
- ctx.fillStyle = "#ff0000"; //Toxic Codes
- ctx.fillText(tmembers, canvas.width / 5, canvas.height / 1.4); //Toxic Codes
- ctx.fillStyle = "#00ff70"; //Toxic Codes
- ctx.fillText(tonline, canvas.width / 4.3, canvas.height / 1.3); //Toxic Codes
- ctx.fillStyle = "#ff0000"; //Toxic Codes
- ctx.font = '25px Elephant';//Toxic Codes
- ctx.fillText(members, canvas.width / 2.5, canvas.height / 1.4); //Toxic Codes
- ctx.fillStyle = "#00ff70"; //Toxic Codes
- ctx.fillText(online, canvas.width / 2.5, canvas.height / 1.3); //Toxic Codes
- ctx.fillStyle = "#ffffff"; //Toxic Codes
- ctx.fillText(by, canvas.width / 1.99, canvas.height / 1.1); //Toxic Codes
- ctx.drawImage(avatar, 50, 410, 50, 50); //Toxic Codes
- ctx.strokeStyle = '#74037b'; //Toxic Codes
- ctx.strokeRect(0, 0, canvas.width, canvas.height); //Toxic Codes
- ctx.beginPath(); //Toxic Codes
- ctx.arc(394, 125, 85, 0, Math.PI * 2, true); //Toxic Codes
- ctx.closePath(); //Toxic Codes
- ctx.clip(); //Toxic Codes
- ctx.drawImage(icon, 309, 40, 170, 170); //Toxic Codes
- msg.channel.sendFile(canvas.toBuffer()) //Toxic Codes
- }//Toxic Codes
- }//Toxic Codes
- });//Toxic Codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement