https://github.com/3godzinyl/discord-nuke-bot
Discord nuck bot - node js
https://github.com/3godzinyl/discord-nuke-bot
bot discord discord-bot discord-js-bot discord-nuke-bot moderation-bot nuke-bot
Last synced: 2 months ago
JSON representation
Discord nuck bot - node js
- Host: GitHub
- URL: https://github.com/3godzinyl/discord-nuke-bot
- Owner: 3godzinyL
- Created: 2024-11-09T15:00:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-09T15:45:09.000Z (over 1 year ago)
- Last Synced: 2025-02-23T23:16:14.117Z (over 1 year ago)
- Topics: bot, discord, discord-bot, discord-js-bot, discord-nuke-bot, moderation-bot, nuke-bot
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Discord Bot - Multi-Tool Control Panel
Welcome to the Discord Bot Multi-Tool Control Panel! ๐ This bot offers an array of powerful features designed to manage Discord servers effectively, providing streamlined control and flexibility. Hereโs an overview of the key functionalities, installation instructions, and a breakdown of each option:
-----
-Remember to enable the option (Privileged Gateway Intents) in https://discord.com/developers/applications
-The index code is encrypted but don't worry, you can see the main operation of the code, I only care about not appropriating my work
-----
๐ Features & Options
-----
๐ค User Management
-List Users: Displays a list of all members in the selected server.
-Ban User: Bans a specified user by their ID.
-Mute User: Temporarily mutes a user for 10 minutes.
-Kick User: Removes a user from the server.
-Change User Nickname: Modifies the nickname of a specified user.
____
๐ Channel Management
-List Channels: Shows all text channels available on the server.
-Add Channels: Adds multiple new channels with optional automatic numbering.
-Delete Channels: Removes selected channels from the server.
-Rename Channel: Updates the name of an existing channel.
____
๐ฌ Messaging
-Spam Messages: Sends a specified message multiple times in selected channels.
-Send Message to Channel: Directly posts a message to a specified channel.
____
๐ ๏ธ Role and Permission Management
-Create Role and Assign: Creates a new role with a specified color and assigns it to a user.
-Manage Write Access: Toggles a userโs permission to send messages in a particular channel.
____
๐ Polling and Voting
-Create Poll: Creates a poll with specified options for members to vote.
____
๐ Undo Last Action
-Undo Action: Reverts the most recent action, where possible.
____
๐ฅ Installation & Setup
-Create a new folder, place index.js in it and execute cmd commands in this folder:
cmd:
npm init -y or npm install
npm install inquirer@latest
npm install discord.js inquirer or npm install discord.js
Run the Bot:
node index.js (in cmd)
----
Login Prompt:
On startup, the bot will prompt you to enter your bot's token.
----
๐ Code Breakdown
Token Initialization and Login
Upon launch, the bot prompts the user to enter the Discord token. This is handled through inquirer prompts.
Main Menu & Function Selection
Once logged in, the bot displays a menu where you can choose actions:
const action = await inquirer.prompt([ ... ]);
Each action maps to a specific function, offering options such as managing users, channels, roles, and more.
Channel and User Management
Actions like listing users, banning, or changing nicknames are managed through the Discord.js API using guild.members and guild.channels.
Undoing Actions
actionHistory stores actions, allowing selected actions to be undone, such as channel additions.
____
๐ Technical Details
Packages Used
discord.js: For interaction with the Discord API.
inquirer: To create a command-line interface with options for easy selection and input.
Error Handling
Errors, especially during login or invalid actions, are caught and logged, ensuring smooth bot operation and easy debugging.
____
๐ Permissions Required
The bot requires various permissions depending on the selected actions:
-Manage Messages: For messaging actions.
-Manage Channels: To create, delete, or rename channels.
-Manage Roles: For creating and assigning roles.
-Kick/Ban Members: Required for user moderation actions.
-Ensure the bot has these permissions on the selected server.
๐ Important Notes
----
The bot uses an in-memory action history to track actions, enabling selective undo. However, channel deletions cannot be reversed due to Discord's permanent delete policy.
Polls are limited to five options due to reaction limits on Discord messages.
Disclaimer
This bot is meant for educational purposes. Avoid using disruptive features like spamming in real servers without permission.
---
Happy Botting! ๐
โDiscordโ โNuke Botโ โJavaScriptโ "Discord-nuke-bot"