Takaro module library
Takaro Modules
Takaro is a game server management platform for running, automating, and moderating multiplayer communities. These modules install into Takaro to add server automation, Discord workflows, economy systems, and moderation tools.
chatbridge
- Relay in-game chat to Discord.
- Send Discord messages back into the server where supported.
- Keep players and staff connected even when they are outside the game.
Components Overview
New Module: chatbridge
NEWPlayerDisconnected (player-disconnected), PlayerConnected (player-connected), DiscordToGame (discord-message), GameToDiscord (chat-message). New configuration options: sendPlayerConnected, sendPlayerDisconnected, onlyGlobalChat, filterCommands, filterSystemMessages, useMonitoring, monitoringChannelId.Configuration
Configure this module using the schemas below. The JSON schema defines the data structure, while the UI schema customizes how the configuration form is displayed.
Configuration Schema
Configuration Properties (7)
Send player connected
Send a message when a player connects.
trueSend player disconnected
Send a message when a player disconnects.
trueOnly global chat
Only relay messages from global chat (no team chat or private messages)
trueFilter commands
Don't relay command messages (/command) to Discord
falseFilter system messages
Don't relay system messages to Discord
falseEnable monitoring channel
Send commands and system messages to a separate monitoring channel
falseMonitoring channel ID
Discord channel ID for monitoring messages (only used if monitoring is enabled)
UI Schema
No UI schema defined. Configuration form will use default rendering.
About Configuration Schemas
The Configuration Schema defines the structure and validation rules for module settings. The UI Schema customizes how the configuration form is displayed in the Takaro interface, including field ordering, labels, and input types.
Hooks (4)
These hooks respond to various game events automatically. Each hook executes JavaScript code when its specific event type occurs, allowing modules to react to player actions, system changes, and more.
Real-time Events
PlayerConnected
Function Implementation
PlayerConnected Hook Function
JAVASCRIPTEvent Details
DiscordToGame
Function Implementation
DiscordToGame Hook Function
JAVASCRIPTEvent Details
GameToDiscord
Function Implementation
GameToDiscord Hook Function
JAVASCRIPTEvent Details
About Module Hooks
Hooks allow your module to respond automatically to game events like player actions, server status changes, and chat messages. Each hook has an event type that determines when it triggers, optional regex patterns for filtering specific events, and a JavaScript function that executes when the conditions are met. Hooks are grouped by category for better organization.







































