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

by Limon
Bridge game server chat and Discord so community managers can keep conversations connected across channels. This module demonstrates Takaro Discord integration with game chat relay, configurable channels, and server activity visibility.
Use this module to:
  • 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.
communityTakaro main

Components Overview

1
config
0
commands
4
hooks
0
Cron Jobs
0
functions
0
permissions

New Module: chatbridge

NEW
August 6, 2025
Updated to version latest. Added 4 hooks: PlayerDisconnected (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)

sendPlayerConnectedboolean
Send player connected

Send a message when a player connects.

Default: true
sendPlayerDisconnectedboolean
Send player disconnected

Send a message when a player disconnects.

Default: true
onlyGlobalChatboolean
Only global chat

Only relay messages from global chat (no team chat or private messages)

Default: true
filterCommandsboolean
Filter commands

Don't relay command messages (/command) to Discord

Default: false
filterSystemMessagesboolean
Filter system messages

Don't relay system messages to Discord

Default: false
useMonitoringboolean
Enable monitoring channel

Send commands and system messages to a separate monitoring channel

Default: false
monitoringChannelIdstring
Monitoring 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

4 hooks

PlayerDisconnected

player-disconnectedEvent Type
Function Implementation

PlayerDisconnected Hook Function

JAVASCRIPT
Event Details
Event Type:player-disconnected
Trigger:Automatic
Category:Real-time Events

PlayerConnected

player-connectedEvent Type
Function Implementation

PlayerConnected Hook Function

JAVASCRIPT
Event Details
Event Type:player-connected
Trigger:Automatic
Category:Real-time Events

DiscordToGame

discord-messageEvent Type
Function Implementation

DiscordToGame Hook Function

JAVASCRIPT
Event Details
Event Type:discord-message
Trigger:Automatic
Category:Real-time Events

GameToDiscord

chat-messageEvent Type
Function Implementation

GameToDiscord Hook Function

JAVASCRIPT
Event Details
Event Type:chat-message
Trigger:Automatic
Category:Real-time Events

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.