Connects your Minecraft guild chat (Hypixel) to a Discord server in real time. Messages sent in-game appear in Discord and vice versa. Guild events are also relayed automatically.
Features:
- Real-time bidirectional message relay (Minecraft ↔ Discord)
- Guild event detection — joins, leaves, promotions, kicks, mutes...
- Discord slash commands to manage the guild directly from Discord
- Webhook integration with player avatars for authentic message display
- Multi-guild support (multiple Minecraft guilds in separate Discord channels)
- Inter-guild communication (cross-guild message relay)
- Automatic reconnection with exponential backoff
- Node.js >= 22.0.0
- A Discord bot token (with message content intent + slash commands)
- A Minecraft account (Microsoft) with access to the target guild
- Guild officer/admin permissions on the Minecraft server
# 1. Clone the repository
git clone https://github.com/FrenchLegacy/Minecraft-Bridge-Chat.git
cd Minecraft-Bridge-Chat
# 2. Install dependencies
npm install
# 3. Configure
cp config/settings.example.json config/settings.json
# Edit config/settings.json with your credentials
# 4. Start
npm start
# Development mode (auto-reload)
npm run devdocker-compose up -dCopy config/settings.example.json to config/settings.json and fill in the following:
{
"app": {
"token": "YOUR_DISCORD_BOT_TOKEN",
"clientId": "YOUR_BOT_CLIENT_ID",
"serverDiscordId": "YOUR_DISCORD_SERVER_ID"
}
}{
"guilds": [{
"name": "MyGuild",
"id": "myguild",
"enabled": true,
"server": {
"serverName": "Hypixel",
"host": "mc.hypixel.net",
"port": 25565,
"version": "1.8.9"
},
"account": {
"email": "bot_email@example.com",
"authMethod": "microsoft",
"sessionPath": "./data/auth-cache",
"reconnection": {
"enabled": true,
"maxRetries": 5,
"retryDelay": 30000,
"exponentialBackoff": true
}
},
"ranks": ["Member", "Officer", "Co-Leader", "Leader"]
}]
}Set the Discord channel IDs and webhook URLs for chat and staff channels in each guild config.
Other config files (no editing required for basic use):
config/patterns.json— regex patterns for message/event detectionconfig/templates.json— message formatting templates
| Command | Description |
|---|---|
/ping |
Bot latency |
/help |
List available commands |
/serverinfo |
Connected server info |
/guild list <guild> <type> |
List guild members |
/guild invite <guild> <player> |
Invite a player |
/guild kick <guild> <player> <reason> |
Kick a player |
/guild promote/demote <guild> <player> |
Manage ranks |
/guild mute/unmute <guild> <player> |
Moderation |
/guild setrank <guild> <player> <rank> |
Set a rank directly |
/guild info <guild> |
Guild info |
/guild execute <guild> <command> |
Run an arbitrary guild command |
src/
├── main.js # Entry point
├── config/ # Config loading & validation
├── discord/ # Discord bot & bridge
│ ├── bridge/BridgeCoordinator.js # Message relay logic
│ ├── client/commands/ # Slash commands
│ └── client/senders/ # Webhook & message senders
├── minecraft/ # Minecraft bot
│ ├── client/parsers/ # Chat & event parsing
│ └── servers/HypixelStrategy.js # Hypixel-specific handling
└── shared/ # Logger, formatter, inter-guild
Bot not connecting to Minecraft — Check credentials, Microsoft auth, and that the account has guild access.
Messages not bridging — Verify webhook URLs and check logs for parsing errors.
Commands not working — Ensure the bot has the required Discord permissions and guild officer role in-game.
