This Discord bot allows users to whitelist themselves on a Minecraft server through a simple interaction.
- Create Whitelist Button: Use the /create-whitelist-button command to create an embed and button.
- Interactive Modal: A modal will open for users to enter their Minecraft username.
- Role Management: Automatically adds a designated role to users upon successful whitelisting.
git clone https://github.com/skredev/discord-minecraft-whitelist-bot.git
cd minecraft-whitelist-bot
Install the required packages:
pnpm install
Create a .env file in the root of the project and fill it out based on the provided .env.template:
TOKEN=""
RCON_IP=""
RCON_PORT=""
RCON_PASSWORD=""
WHITELIST_ROLE_ID=""
- TOKEN: Your Discord bot token.
- RCON_IP: The IP address of your Minecraft server.
- RCON_PORT: The RCON port (default is usually 25575).
- RCON_PASSWORD: The password for RCON access.
- WHITELIST_ROLE_ID: The role ID for the whitelist role to be added to users. This is optional.
First, enable RCON in your Minecraft server's server.properties file and set a password.
pnpm run dev