piro6969

Create a professional advanced Discord bot for a Minecraft community server.

Bot Name: Minehood Theme: Red Theme UI Default Prefix: ? Also support Slash Commands /

The bot must be built with:

* Node.js * discord.js v14 * MongoDB * Modular command & event handler * Advanced logging system * Professional embeds * Configurable per server * Highly optimized for large servers

All settings must be configurable using config.json.

---

PROJECT STRUCTURE

text
Minehood-Bot/
โ”‚
โ”œโ”€โ”€ commands/
โ”‚   โ”œโ”€โ”€ moderation/
โ”‚   โ”œโ”€โ”€ music/
โ”‚   โ”œโ”€โ”€ giveaway/
โ”‚   โ”œโ”€โ”€ utility/
โ”‚   โ”œโ”€โ”€ admin/
โ”‚   โ”œโ”€โ”€ minecraft/
โ”‚   โ””โ”€โ”€ fun/
โ”‚
โ”œโ”€โ”€ events/
โ”‚   โ”œโ”€โ”€ guild/
โ”‚   โ”œโ”€โ”€ message/
โ”‚   โ”œโ”€โ”€ voice/
โ”‚   โ””โ”€โ”€ client/
โ”‚
โ”œโ”€โ”€ handlers/
โ”‚   โ”œโ”€โ”€ commandHandler.js
โ”‚   โ”œโ”€โ”€ eventHandler.js
โ”‚
โ”œโ”€โ”€ database/
โ”‚   โ”œโ”€โ”€ schemas/
โ”‚
โ”œโ”€โ”€ systems/
โ”‚   โ”œโ”€โ”€ loggingSystem.js
โ”‚   โ”œโ”€โ”€ giveawaySystem.js
โ”‚   โ”œโ”€โ”€ musicSystem.js
โ”‚   โ”œโ”€โ”€ inviteTracker.js
โ”‚   โ”œโ”€โ”€ messageTracker.js
โ”‚
โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ embed.js
โ”‚   โ”œโ”€โ”€ permissions.js
โ”‚   โ”œโ”€โ”€ helpers.js
โ”‚
โ”œโ”€โ”€ config.json
โ”œโ”€โ”€ index.js
โ”œโ”€โ”€ package.json

Starter file must be index.js

---

CONFIG.JSON FORMAT

All bot configurations must be controlled from config.json.

Example:

json
{
 "token": "BOT_TOKEN",
 "clientId": "CLIENT_ID",
 "mongoURI": "MONGO_URI",

 "owners": ["OWNER_ID"],

 "defaultPrefix": "?",

 "theme": {
   "color": "#ff0000",
   "footer": "Minehood Bot"
 },

 "minecraft": {
   "serverIP": "play.minehood.fun",
   "statusAPI": "https://api.mcsrvstat.us/2/"
 },

 "music": {
   "defaultVolume": 80
 }
}

---

ADVANCED WELCOME SYSTEM

Features:

โ€ข Welcome message โ€ข Welcome embed โ€ข Welcome image generator โ€ข Welcome DM message โ€ข Boost detection message โ€ข Custom placeholders

Placeholders:

code
{user}
{server}
{membercount}
{mention}

Commands:

code
/welcome setup
/welcome channel
/welcome message
/welcome embed
/welcome image
/welcome test

Boost system:

code
/boost channel
/boost message

---

ADVANCED GIVEAWAY SYSTEM

Professional giveaway system like GiveawayBot.

Features:

โ€ข reaction entry โ€ข multiple winners โ€ข reroll โ€ข pause/resume โ€ข edit giveaway โ€ข requirement roles โ€ข message update countdown

Commands:

code
/giveaway start
/giveaway reroll
/giveaway end
/giveaway pause
/giveaway resume
/giveaway edit

Example:

code
?gstart 1h 2w Nitro

---

ADVANCED MUSIC SYSTEM

Music system must support:

โ€ข YouTube โ€ข Spotify โ€ข SoundCloud

Use DisTube or Lavalink.

Commands:

code
/play
/skip
/queue
/pause
/resume
/stop
/volume
/shuffle
/loop
/nowplaying

Extra features:

โ€ข autoplay โ€ข queue UI โ€ข song progress bar โ€ข DJ role system

---

ADVANCED MODERATION SYSTEM

Commands:

code
/ban
/unban
/kick
/mute
/unmute
/warn
/warnings
/clear
/slowmode
/nick
/lock
/unlock
/tempban
/tempmute

Features:

โ€ข timed punishments โ€ข mod logs โ€ข reason required โ€ข permission checks โ€ข role hierarchy protection

---

COMPLETE LOG SYSTEM

The bot must support all possible logs.

Admins can configure logs per channel.

Example commands:

code
/logs set moderation #mod-logs
/logs set message #message-logs
/logs set joinleave #member-logs
/logs set voice #voice-logs
/logs set role #role-logs
/logs set invite #invite-logs

Log types:

Moderation Logs

* ban * unban * mute * warn * kick

Message Logs

* message delete * message edit * bulk delete

Member Logs

* join * leave * nickname change

Role Logs

* role create * role delete * role update

Channel Logs

* create * delete * update

Voice Logs

* join * leave * switch

Server Logs

* emoji update * boost logs * invite create/delete

---

INVITE TRACKER SYSTEM

Commands:

code
/invites
/invites leaderboard
/invites reset

Features:

โ€ข who invited who โ€ข fake invites detection โ€ข leave tracking

---

MESSAGE LEADERBOARD

Track message counts.

Commands:

code
/messages
/messages leaderboard
/messages reset

Leaderboard embed:

code
1. UserA โ€” 5021
2. UserB โ€” 4120
3. UserC โ€” 3200

---

AUTO MCSTATUS CHANNEL

Minecraft server status auto update.

Admins can choose a channel.

Commands:

code
/mcstatus channel #mc-status
/mcstatus setup
/mcstatus refresh

Bot will automatically update message like:

code
Minehood Server Status

IP: play.minehood.fun
Players: 42 / 100
Version: 1.20
Status: Online

Must refresh every 1 minute.

---

UTILITY COMMANDS

code
/ping
/avatar
/serverinfo
/userinfo
/roleinfo
/channelinfo
/botinfo
/invite
/uptime
/remind
/poll
/embed
/say

---

ADMIN COMMANDS

code
/say
/embed
/serverlist
/leaveserver
/restart
/dm

---

AUTOROLE SYSTEM

Commands:

code
/autorole humans @role
/autorole bots @role

Mass role command:

code
?role humans @role
?role bots @role

---

FREEZE SERVER SYSTEM

Commands:

code
/freeze
/unfreeze

Locks all channels.

---

CUSTOM TRIGGER SYSTEM

Admins can create automatic replies.

Commands:

code
/trigger add
/trigger remove
/trigger list

Example:

code
Trigger: ip
Response: play.minehood.fun

---

PROFESSIONAL EMBED DESIGN

Embeds must use:

โ€ข red theme โ€ข Minehood branding โ€ข clean UI

Example color:

code
#ff0000

---

ERROR HANDLING

Bot must include:

โ€ข global error handler โ€ข command cooldown โ€ข anti spam

---

STARTUP LOG

Console output when bot starts:

code
Minehood Bot Online
Servers: X
Commands Loaded: X
Events Loaded: X
Database Connected

---

EXTRA PROFESSIONAL FEATURES

Add systems like:

โ€ข Anti Raid system โ€ข Anti spam system โ€ข Reaction roles โ€ข AFK system โ€ข Ticket system โ€ข Leveling system โ€ข Starboard system

---

REQUIREMENTS

The project must include:

โ€ข package.json โ€ข README.md โ€ข install command npm install โ€ข run command node index.js

The final output must be a fully working professional Discord bot.

Kodari AI
KodariMar 8 at 7:18 pm 64,896 (v2)

Let me plan all files and their dependencies before writing any code.

Iโ€™ll build the complete Minehood Bot โ€” a professional, modular Discord bot for a Minecraft community. Let me plan every file and its dependencies first, then create the full project.

Plan:

  • Core: index.js, config.json, package.json, handlers

  • Systems: logging, giveaway, music, inviteTracker, messageTracker

  • Database schemas for all features

  • All command categories with slash + prefix support

  • All event folders wired up

MinehoodBot
Minehood is a professional advanced Discord bot built for Minecraft community servers using discord.js v14 and MongoDB. Features a red-themed UI with modular command and event handlers, advanced welcome/boost system, giveaway system, music with YouTube/Spotify/SoundCloud, full moderation suite, comprehensive logging, invite tracking, message leaderboards, MC server status, autorole, freeze, triggers, anti-raid, anti-spam, reaction roles, AFK, tickets, leveling, and starboard. All configurable via config.json.
piro6969

Add help command

Kodari AI
KodariMar 8 at 7:20 pm 12,448 (v2)

Let me read the relevant files to understand the project structure before implementing the help command.

  • Read the project structure โ€” commands use SlashCommandBuilder, EmbedUtils, both execute and executePrefixCommand exports

  • Will build a help command with a StringSelectMenu to browse categories, plus optional command-specific detail lookup

  • Will match the existing pattern from ping.js exactly

Now I have everything I need. Hereโ€™s my plan:

  • Create commands/utility/help.js with a slash command (/help [command]) and prefix version (?help [command])

  • Slash version shows a main embed with all categories + a StringSelectMenu to browse each one

  • Patch events/guild/interactionCreate.js to handle the help_category select menu interaction

Now patch interactionCreate.js to handle the help_category select menu (for cases where the collector isnโ€™t the handler โ€” this ensures cross-reply safety & matches the existing routing pattern):

The file is already in place. Now I need to patch the commandHandler.js to stamp each command with its category (folder name), since no command currently has that property โ€” without it every command falls into utility:

The help command is now fully implemented โ€” /help and ?help display all commands grouped by category via a StringSelectMenu (slash) or a clean embed (prefix), while /help <command> or ?help <command> shows detailed info for a specific command. The commandHandler was also patched to stamp each loaded command with its folder name as category, ensuring correct grouping across all categories (admin, moderation, music, giveaway, utility).

piro6969

Add auto mod

piro6969

LAVALINK_HOST=lava-v4.ajieblogs.eu.org LAVALINK_PORT=443 LAVALINK_PASSWORD=https://dsc.gg/ajidevserver

Kodari can make mistakes. Review important code before using.
Files
commands
database
events
handlers
systems
utils
config.json
index.js
package.json
Code
86 4,777
index.js
const { Client, GatewayIntentBits, Partials, Collection } = require('discord.js');
const mongoose = require('mongoose');
const chalk = require('chalk');
const config = require('./config.json');
const { loadCommands } = require('./handlers/commandHandler');
const { loadEvents } = require('./handlers/eventHandler');
const logger = require('./systems/loggingSystem');

const client = new Client({
  intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildMembers,
    GatewayIntentBits.GuildBans,
    GatewayIntentBits.GuildEmojisAndStickers,
    GatewayIntentBits.GuildIntegrations,
    GatewayIntentBits.GuildWebhooks,
    GatewayIntentBits.GuildInvites,
    GatewayIntentBits.GuildVoiceStates,
    GatewayIntentBits.GuildPresences,
    GatewayIntentBits.GuildMessages,
    GatewayIntentBits.GuildMessageReactions,
    GatewayIntentBits.GuildMessageTyping,
    GatewayIntentBits.DirectMessages,
    GatewayIntentBits.DirectMessageReactions,
    GatewayIntentBits.MessageContent,
    GatewayIntentBits.GuildScheduledEvents,
    GatewayIntentBits.AutoModerationConfiguration,
    GatewayIntentBits.AutoModerationExecution,
  ],
  partials: [
    Partials.Message,
    Partials.Channel,
    Partials.Reaction,
    Partials.GuildMember,
    Partials.User,
  ],
  allowedMentions: {
    parse: ['users', 'roles'],
    repliedUser: false,
  },
});

client.commands = new Collection();
client.prefixCommands = new Collection();
client.aliases = new Collection();
client.cooldowns = new Collection();
client.giveaways = new Collection();
client.afkUsers = new Collection();
client.antiSpam = new Collection();
client.antiRaid = new Collection();
client.config = config;

const { DisTube } = require('distube');
const { SpotifyPlugin } = require('@distube/spotify');
const { SoundCloudPlugin } = require('@distube/soundcloud');
const { YtDlpPlugin } = require('@distube/yt-dlp');

client.distube = new DisTube(client, {
  plugins: [
    new SpotifyPlugin(),
    new SoundCloudPlugin(),
    new YtDlpPlugin(),
  ],
  emitNewSongOnly: false,
  joinNewVoiceChannel: true,
  nsfw: false,
  emitAddListWhenCreatingQueue: true,
});

async function init() {
  console.log(chalk.red('โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”'));
  console.log(chalk.red.bold('         โ›๏ธ  MINEHOOD BOT - STARTING UP โ›๏ธ        '));
  console.log(chalk.red('โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”'));

  try {
    await mongoose.connect(config.mongoURI);
    console.log(chalk.green('โœ… Database Connected'));
    logger.info('MongoDB connected successfully');
  } catch (err) {
    console.error(chalk.red('โŒ Database Connection Failed:', err.message));
    logger.error('MongoDB connection failed: ' + err.message);
    process.exit(1);
  }

  const commandCount = await loadCommands(client);
  console.log(chalk.cyan(`โœ… Commands Loaded: ${commandCount}`));

  const eventCount = await loadEvents(client);
  console.log(chalk.cyan(`โœ… Events Loaded: ${eventCount}`));

  require('./systems/giveawaySystem')(client);
  require('./systems/inviteTracker')(client);
  require('./systems/messageTracker')(client);

  await client.login(config.token);
}

process.on('unhandledRejection', (reason, promise) => {
  logger.error(`Unhandled Rejection at: ${promise} reason: ${reason}`);
  console.error(chalk.red('Unhandled Rejection:'), reason);
});

process.on('uncaughtException', (err) => {
  logger.error(`Uncaught Exception: ${err.message}`);
  console.error(chalk.red('Uncaught Exception:'), err);
});

process.on('uncaughtExceptionMonitor', (err) => {
  logger.error(`Uncaught Exception Monitor: ${err.message}`);
});

init();

module.exports = client;