Skip to content

cuappdev/discord-bot

Repository files navigation

Discord Minecraft whitelist bot

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.

Setup

Copy .env.template to .env and set:

  • Discord: DISCORD_BOT_TOKEN, optional DISCORD_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.

Docker

Build and run with docker compose. The compose file expects BOT_IMAGE_TAG in the environment (see .github/workflows/deploy.yml).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors