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.
7dtd_ChatBridge
- Relay 7 Days to Die chat into Discord.
- Send Discord messages into the game server.
- Surface server activity for staff and community members.
Components Overview
New Module: 7dtd_ChatBridge
NEWGameToDiscord (chat-message), DiscordToGame (discord-message), PlayerDisconnected (player-disconnected), resetRegions (log), serverStatusChange (server-status-changed), PlayerConnected (player-connected). Added 1 scheduled task: serverStatus. Added 1 function: utils. New configuration options: sendPlayerConnected, sendPlayerDisconnected, includePartyChat, includeFriendsChat, filterCommands, commandPrefixes, filterSystemMessages, useMonitoring, monitoringChannelId, showPlayerDetails.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 (10)
Send Player Connected
Send a notification to Discord when a player connects to the server.
trueSend Player Disconnected
Send a notification to Discord when a player disconnects from the server.
trueInclude Party Chat
When enabled (true), party/team chat messages will be sent to Discord.
falseInclude Friends Chat
When enabled (true), friends chat messages will be sent to Discord.
falseFilter Commands
When enabled (true), command messages starting with command prefixes will NOT be sent to Discord.
trueCommand Prefixes
List of prefixes that identify commands to filter (e.g., '/', '$', '#'). Only used if Filter Commands is enabled.
["/"]Filter System Messages
When enabled, messages that don't come from actual players (such as server announcements, automated notifications, death messages, and other game-generated text) will NOT be sent to the main Discord channel. These system messages will still be visible in the monitoring channel if monitoring is enabled.
falseEnable Monitoring Channel
When enabled (true), filtered messages will be sent to a separate monitoring channel.
falseMonitoring Channel ID
Discord channel ID for monitoring messages. Required if monitoring is enabled.
Show Player Details
Show Steam profile and Takaro profile links in join/leave notifications.
falseUI 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 (6)
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
DiscordToGame
Function Implementation
DiscordToGame Hook Function
JAVASCRIPTEvent Details
PlayerDisconnected
Function Implementation
PlayerDisconnected Hook Function
JAVASCRIPTEvent Details
PlayerConnected
Function Implementation
PlayerConnected Hook Function
JAVASCRIPTEvent Details
System Events
resetRegions
Description
Pattern Match
Region reset completeThis hook only triggers when the event data matches this regular expression pattern.
Function Implementation
resetRegions Hook Function
JAVASCRIPTEvent Details
serverStatusChange
Description
Function Implementation
serverStatusChange 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.
Scheduled Jobs (1)
These jobs run automatically on a schedule defined by cron expressions. Each job executes JavaScript code at specific times or intervals.
serverStatus
Description
Schedule Details
Cron Expression
Human-Readable Schedule
Every 30 minutes
Function Implementation
serverStatus Function
JAVASCRIPTCron Expression Format
Each field can contain numbers, ranges (1-5), lists (1,3,5), or wildcards (*). Use */n for intervals (e.g., */5 for every 5 units).
About Scheduled Jobs
Cron jobs allow your module to execute code automatically on a schedule. Each job has a cron expression that defines when it runs, and a JavaScript function that executes at those times. Jobs run server-side and can perform maintenance tasks, send notifications, or update game state automatically.
Functions (1)
Reusable JavaScript functions that can be imported and used by other module components like commands, hooks, and cron jobs. These promote code reuse and modularity.
utils
Function Implementation
utils Function
JAVASCRIPTImport Usage
About Module Functions
Functions are reusable JavaScript components that can be imported and used by commands, hooks, and cron jobs within your module. They promote code reuse, improve maintainability, and allow you to organize complex logic into modular pieces. Functions must be exported with proper ES6/CommonJS syntax to be importable by other components.







































