๐ ๏ธ Addon Installation Methods
There are two ways you can install addons to your Razor bot workspace. Choose the method that best fits your development preference.Option 1: Drag & Drop the Whole Folder (Recommended)
This is the cleanest and easiest method. It keeps addon files modular and separated in a dedicated addons directory.
- Locate the downloaded addon folder (e.g.,
Anti-Nuke Addon). - Drag and drop the entire folder into the
Addons/directory located in the root of your main Razor bot files.
Option 2: Drag & Drop Folder Contents (Merge Directories)
This method integrates the addon files directly into the botโs core directories.
- Open the downloaded addon folder.
- Drag and drop the individual subfolders (
Commands,Dashboard,Events,Schemas,Systems) directly into the root directory of your main Razor bot (Razor v2.0.8). - If prompted, select Merge or Replace files to integrate them cleanly into the matching system paths.
๐ก๏ธ Addon 1: Advanced Anti-Nuke
The Advanced Anti-Nuke Addon protects your Discord servers against rogue administrators, compromised accounts, and malicious nukers with 13 dedicated protection modules.โ ๏ธ Critical Fix Required (index.js)
Because the new antiNukeSystem.js loads extremely early in the application lifecycle, you must update your core index.js file to prevent the bot from crashing during initialization if you are using an older version:
Locate Systems Loading Block
Open your main
index.js file and search (Ctrl + F) for the following loop loading the bot systems:Apply the Safeguard Patch
Replace the code block above with the updated version below. This adds a safeguard check to verify that the loaded file exports a function before executing it:
โ๏ธ Anti-Nuke Configuration & Usage
Once the addon is loaded, server owners can fully manage the protection configurations directly from Discord using the/antinuke command suite.
๐ฎ Anti-Nuke Slash Commands
System Setup
Turn the system on and set your logging channel and action punishment (e.g., Ban, Kick, Quarantine, Timeout).
Enable Protections
Toggle specific modules. There are 13 protection modules available (e.g., Anti Channel Delete).
Configure Thresholds
Set how many actions trigger a punishment.
Whitelist System
Whitelist trusted administrators, staff, or helper bots so they bypass limitations.
๐ฆ 13 Protection Modules Covered
Structure Protections
Structure Protections
- Anti Channel Delete/Create โ Blocks rogue channel deletions and spawns.
- Role Delete/Create โ Prevents mass deleting or creating roles to bypass hierarchy.
- Emoji Delete โ Shields custom server emojis from deletion.
Member & Moderation Protections
Member & Moderation Protections
- Bans & Kicks Tracking โ Halts rapid bans/kicks performed by compromised staff accounts.
- Pruning Prevention โ Intercepts and stops member list pruning actions.
- Unapproved Bot Adds โ Immediately bans/kicks any unverified bots added without approval.
Webhook & Spam Protections
Webhook & Spam Protections
- Webhook Create/Delete โ Prevents rogue webhooks from being created to bypass channel security.
- @Everyone/@Here Mention Spam โ Automatically silences and punishes users spamming global mentions.
- Guild Updates โ Reverts unapproved server name, description, banner, or vanity URL changes.
๐ต Addon 2: Playlist Manager
The Playlist Addon allows users to create, delete, share, and manage custom music playlists stored directly in your MongoDB database, loading them dynamically into the voice queue.๐ ๏ธ Installation Instructions
Choose one of the two installation methods below:- Option 1: Drag & Drop (Recommended & Easiest)
- Option 2: Merge Directories (Requires Path Modification)
Drag and drop the entire
Playlist Addon folder inside the Addons/ folder of your Razor bot root directory.This is the easiest approach because the addon code natively looks for the database schema in the
Addons/Playlist Addon/Schemas/ directory out-of-the-box.โ๏ธ Playlist Usage & Commands
Once the addon is loaded, users can manage their private playlists using the/playlist slash command suite.
๐ฎ Playlist Command Suite
Playlist Creation
Create a new custom playlist (maximum of 10 playlists per user, names capped at 10 characters).
Save Current Track
Save the song currently playing in the voice channel directly to your playlist.
Save Entire Queue
Append all songs currently in the voice channelโs queue to your custom playlist.
Search & Add Tracks
Search for a song title or URL and select one from the top 5 results to add.
Load Playlist to Queue
Join a voice channel and load all tracks from your custom playlist directly into the active queue.
Manage Playlists
Rename, inspect list of tracks (with interactive buttons for paginated navigation), remove individual tracks, or delete.
