Key Requirements

Before proceeding with installation, ensure you have the following prerequisites

Node.js Environment

The selfbot requires Node.js v16.0.0 or higher to function properly. Install the latest LTS version for optimal performance.

Discord Account

A Discord account token is required. For security reasons, we recommend using an alternative account rather than your main one.

Server Details

You'll need the IDs of Discord servers you want to protect, as well as your own user ID and IDs of trusted administrators.

Tip: Enable Developer Mode in Discord settings to easily copy IDs by right-clicking.

Installation Process

Follow these steps carefully to install and configure your Discord AntiNuke Selfbot

1

Clone the Repository

Clone the official repository or download it as a ZIP file and extract it.

Git Clone Command
git clone https://github.com/faiz4sure/discord-antinuke-selfbot.git
cd discord-antinuke-selfbot
bash
Cloning into 'discord-antinuke-selfbot'...
remote: Enumerating objects: 157, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 157 (delta 59), reused 102 (delta 27), pack-reused 0
Receiving objects: 100% (157/157), 56.82 KiB | 2.84 MiB/s, done.
Resolving deltas: 100% (59/59), done.
discord-antinuke-selfbot $
Repository successfully cloned and directory changed!
Copied to clipboard!
2

Install Dependencies

Use npm to install all required packages for the AntiNuke selfbot.

NPM Install Command
npm install
bash
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
added 156 packages, and audited 157 packages in 4.2s
34 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
All dependencies installed successfully!
Copied to clipboard!
3

Configure the Selfbot

Edit the config/config.yaml file with your personal information. This is the most critical step in ensuring the selfbot protects the right servers and responds to the right owners.

Getting Your Discord Token

IMPORTANT: Never share your token with anyone! It provides full access to your Discord account.

To get your Discord token:

  1. Open Discord in your web browser
  2. Press F12 or right-click and select "Inspect" to open Developer Tools
  3. Go to the "Network" tab
  4. Type /api in the filter field
  5. Click on any request to discord.com
  6. Find the "authorization" header in the request headers
  7. That value is your token
config/config.yaml
selfbot:
  token: 'YOUR_DISCORD_TOKEN_HERE' # Your account token
  server1_id: '111222333444555666' # First server to protect
  server2_id: '222333444555666777' # Second server to protect (optional)
  owner1_id: '123456789012345678' # Your Discord user ID
  owner2_id: '234567890123456789' # Another owner ID (optional)
  
antinuke_settings:
  punishment: 'ban' # Options: 'ban', 'kick', or 'none'
  auto_recovery: true # Automatically recover channels and roles
  recover_channels: true # Recover deleted channels
  recover_roles: true # Recover deleted roles
  recovery_delay: 1500 # Milliseconds to wait between recoveries
  
  # PROTECTION THRESHOLDS
  ban_limit: 5 # Triggers if someone bans 5+ people quickly
  kick_limit: 5 # Triggers if someone kicks 5+ people quickly
  channel_create_limit: 5 # Triggers if someone creates 5+ channels quickly
  role_create_limit: 5 # Triggers if someone creates 5+ roles quickly
  channel_delete_limit: 5 # Triggers if someone deletes 5+ channels quickly
  role_delete_limit: 5 # Triggers if someone deletes 5+ roles quickly
  channel_update_limit: 5 # Triggers if someone changes 5+ channels quickly
  role_update_limit: 5 # Triggers if someone changes 5+ roles quickly
  member_update_limit: 5 # Triggers if someone changes 5+ members quickly
  unban_limit: 5 # Triggers if someone unbans 5+ people quickly
  
  # TIME WINDOW FOR COUNTING ACTIONS (IN MILLISECONDS)
  # 36000000 = 10 hours, 3600000 = 1 hour, 600000 = 10 minutes
  time_window: 36000000
  
whitelisted:
  users: ['123456789012345678', '234567890123456789'] # Trusted admin IDs
yaml
Validating configuration file...
Checking syntax...
Validating required fields...
Configuration format is valid.
Important notes:
- Replace 'YOUR_DISCORD_TOKEN_HERE' with your actual token
- Update server IDs with your server IDs
- Update owner IDs with your Discord user ID
- Add trusted admins to the whitelist
Configuration template is ready to be customized!
Copied to clipboard!
4

Launch the Selfbot

Start the selfbot to begin protecting your Discord servers.

Launch Command
node index.js
bash
_____ _ _ _ _ _ _ | __ \(_) | | | | \ | | | | | | | |_ ___ ___ ___ _ __ __| | __ _ _ __ | | | | |_| |_ _| | _____ | | | | / __|/ __/ _ \| '__/ _` | / _` | '_ \| | | | _ | | | | |/ / _ \ | |__| | \__ \ (_| (_) | | | (_| | | (_| | | | | |__| | | | | |_| | < __/ |_____/|_|___/\___\___/|_| \__,_| \__,_|_| |_|\____/|_| |_|\__,_|_|\_\___|
Discord AntiNuke Selfbot v1.7.2
Starting WebSocket connection...
Connected to Discord API!
Loading configuration...
Configuration loaded successfully.
Initializing protection modules...
✓ Anti Ban Module Loaded
✓ Anti Kick Module Loaded
✓ Anti Channel Create Module Loaded
✓ Anti Channel Delete Module Loaded
✓ Anti Role Create Module Loaded
✓ Anti Role Delete Module Loaded
✓ Anti Bot Add Module Loaded
System ready. Now protecting 2 servers.
Copied to clipboard!
5

Keep It Running 24/7

For continuous protection, the selfbot needs to run 24/7. Here's how to keep it running on different platforms.

Using PM2 (Recommended)

Process Manager 2 (PM2) is the best way to keep your selfbot running continuously.

PM2 Setup Commands
# Install PM2 globally
npm install -g pm2

# Start your application with PM2
pm2 start index.js --name 'antinuke'

# Set PM2 to start on system boot
pm2 startup
pm2 save
bash
/usr/local/bin/pm2 -> /usr/local/lib/node_modules/pm2/bin/pm2
/usr/local/bin/pm2-runtime -> /usr/local/lib/node_modules/pm2/bin/pm2-runtime
+ pm2@5.3.0
added 203 packages from 138 contributors in 8.741s
[PM2] Starting /home/user/discord-antinuke-selfbot/index.js in fork_mode (1 instance)
[PM2] Done.
┌─────┬──────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼──────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ antinuke │ default │ 1.7.2 │ fork │ 12345 │ 0s │ 0 │ online │ 0% │ 16.0mb │ user │ disabled │
└─────┴──────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
[PM2] Saving current process list...
[PM2] Successfully saved in /home/user/.pm2/dump.pm2
PM2 setup complete! AntiNuke selfbot will now run 24/7 and start on boot.
Copied to clipboard!

Important Disclaimer

Using selfbots violates Discord's Terms of Service. This project is shared for educational purposes only. You assume all responsibility and risk associated with using this software.

By downloading and using this selfbot:

  • You acknowledge that your Discord account may be terminated
  • You accept full responsibility for any consequences
  • You will use this solely for educational purposes
  • You will not use this for malicious activities

This repository is officially owned by faiz4sure. Always obtain software from the official repository to ensure security and reliability.

Ready to Secure Your Server?

Get started with the AntiNuke Selfbot today and protect your Discord community.