Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Logo

UnbanBot

A fast, secure, and smart Discord utility bot designed to filter and unban users based on their ban reasons.


✨ Features

  • 🔍 Filter by Reason: Effortlessly find specific users in your server's ban list simply by searching for keywords inside their original ban reason.
  • Automated Unbanning: Safely unban groups of players at once who were banned under a specific reason. Great for undoing rogue mod sweeps!
  • 🛡️ Rate Limit Protected: Employs user-side 10-second cooldowns and dynamically handles official Discord API Backoff rules internally to avoid suspensions.
  • 📜 Full Terminal Logging: Neatly outputs all cooldown misses, unban arrays, interaction requests, and metrics locally without spamming your channels.

🛠️ Prerequisites

Before running the bot yourself, ensure you have the following installed and prepped:

  • Node.js (Version v16.9.0 or higher required by Discord.js v14)
  • A Discord Bot Token from the Discord Developer Portal
  • ⚠️ Gateway Intents: You must enable the Server Members Intent in the "Bot" tab of your Discord Developer Portal!
  • ⚠️ Critical Requirement: The bot's owner MUST have 2FA enabled on their Discord account if the target Server requires 2FA for Moderation actions.

🚀 Setup & Installation

Follow these simple steps to run this bot locally on your own machine or a VPS.

1. Clone the Repository

Open your terminal and clone this repository down to your machine:

git clone https://github.com/viswagfx/UnbanBot.git
cd UnbanBot

2. Install Dependencies

Install all the required background packages (discord.js and dotenv).

npm install

3. Configure the Bot

Inside your project directory, you'll see a .env file (or you can create one if missing). Open it and paste in your bot token like this:

DISCORD_TOKEN=your_bot_token_here

Note: Never share your .env file or commit it to GitHub. It is properly ignored via .gitignore.

4. Run the Bot!

Start up your bot using the simplest Node command:

node index.js

The terminal will automatically declare once the Slash Commands have been refreshed and your bot logs in!


💻 Commands

Command Options Description
/showbanlist [reason] Displays an embedded list of everyone whose ban reason contains your input.
/unbanreason [reason] Unbans everyone who matches the reason input and returns a success/fail count.

Note: Slash commands might take a brief second to globally sync across Discord interfaces the very first time you boot the bot!


Developed by viswagfx 💖

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages