TypeScript Discord.js bot that registers /whitelist and /unwhitelist slash commands, syncs with a Minecraft server over Pterodactyl (WebSocket console), resolves names via Mojang, and stores per-Discord-user slots in MongoDB.
Copy .env.template to .env and set:
- Discord:
DISCORD_BOT_TOKEN, optionalDISCORD_GUILD_ID(guild-scoped commands if set; otherwise global). - Database:
DATABASE_URI - Pterodactyl:
PTERODACTYL_URL,PTERODACTYL_SERVER_ID,PTERODACTYL_API_KEY
Run: npm install then npm run dev or npm start.
Build and run with docker compose. The compose file expects BOT_IMAGE_TAG in the environment (see .github/workflows/deploy.yml).