chatBridge
Connect chat to other services like Discord.
Hooks
- DiscordToGame - Regex: , Event Type:
discord-message
- GameToDiscord - Regex: , Event Type:
chat-message
- PlayerConnected - Regex: , Event Type:
player-connected
- PlayerDisconnected - Regex: , Event Type:
player-disconnected
Config variables
- sendPlayerConnected boolean - Send a message when a player connects.
- sendPlayerDisconnected boolean - Send a message when a player disconnects.
- onlyGlobalChat boolean - Only relay messages from global chat. (no team chat or private messages)
Step-by-step guide
Step 1: Connect Discord in Global Settings
- Go to Global Game Server Settings > Discord
- Click Add connection
- Complete Discord authorization to allow Takaro to:
- Access your username, avatar and banner
- Access your email address
- Know what servers you're in
Step 2: Add Takaro Bot to Your Server
- Click Invite Discord bot in the same Global Settings page
- Select your server from the dropdown
- Authorize the bot permissions:
- Add a bot to a server
- Create commands
Step 3: Enable Your Discord Server
- Still in Global Settings, find the "Guilds" section
- Toggle ON your Discord server (e.g., "Limon's server")
Step 4: Get Discord Channel ID
- Go to your Discord server
- Right-click on the channel you want to use for the chat bridge
- Click Copy Channel ID at the bottom of the menu
- If you don't see this option, make sure Developer Mode is enabled in Discord settings
Step 5: Install and Configure ChatBridge
-
Go to your game server's modules
-
Find and click "Install" on the ChatBridge module
-
Configure the settings:
User Config
- Send Player Connected: Toggle to announce joins
- Send Player Disconnected: Toggle to announce leaves
- Only Global Chat: Toggle to filter private/team chat
System Config
- Enable the module
- Set up Hooks:
- DiscordToGame: Enable and paste your copied Discord Channel ID
- PlayerDisconnected: Enable to track disconnects
- GameToDiscord: Enable game-to-Discord chat
- PlayerConnected: Enable to track connects
Step 6: Save Configuration
- Click "Install module" to save all settings