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

by Limon
for 7 Days to Die
Connect 7 Days to Die server chat with Discord through Takaro. This module helps admins keep game chat, Discord discussion, player activity, and server updates visible in one community channel.
Use this module to:
  • Relay 7 Days to Die chat into Discord.
  • Send Discord messages into the game server.
  • Surface server activity for staff and community members.
communityTakaro v0.0.24
(2 versions available)

Components Overview

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

New Module: 7dtd_ChatBridge

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

sendPlayerConnectedboolean
Send Player Connected

Send a notification to Discord when a player connects to the server.

Default: true
sendPlayerDisconnectedboolean
Send Player Disconnected

Send a notification to Discord when a player disconnects from the server.

Default: true
includePartyChatboolean
Include Party Chat

When enabled (true), party/team chat messages will be sent to Discord.

Default: false
includeFriendsChatboolean
Include Friends Chat

When enabled (true), friends chat messages will be sent to Discord.

Default: false
filterCommandsboolean
Filter Commands

When enabled (true), command messages starting with command prefixes will NOT be sent to Discord.

Default: true
commandPrefixesarray
Command Prefixes

List of prefixes that identify commands to filter (e.g., '/', '$', '#'). Only used if Filter Commands is enabled.

Default: ["/"]
filterSystemMessagesboolean
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.

Default: false
useMonitoringboolean
Enable Monitoring Channel

When enabled (true), filtered messages will be sent to a separate monitoring channel.

Default: false
monitoringChannelIdstring
Monitoring Channel ID

Discord channel ID for monitoring messages. Required if monitoring is enabled.

showPlayerDetailsboolean
Show Player Details

Show Steam profile and Takaro profile links in join/leave notifications.

Default: false

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 (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

4 hooks

GameToDiscord

chat-messageEvent Type
Function Implementation

GameToDiscord Hook Function

JAVASCRIPT
Event Details
Event Type:chat-message
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

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

System Events

2 hooks

resetRegions

logEvent Type
Description
reset regions hook
Pattern Match
Region reset complete

This hook only triggers when the event data matches this regular expression pattern.

Function Implementation

resetRegions Hook Function

JAVASCRIPT
Event Details
Event Type:log
Trigger:Pattern Match Required
Category:System Events

serverStatusChange

server-status-changedEvent Type
Description
hook for server status
Function Implementation

serverStatusChange Hook Function

JAVASCRIPT
Event Details
Event Type:server-status-changed
Trigger:Automatic
Category:System 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.

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

*/30 * * * *Schedule

Description

the server status cronjob

Schedule Details

Cron Expression
*/30 * * * *
Human-Readable Schedule

Every 30 minutes

Function Implementation

serverStatus Function

JAVASCRIPT

Cron Expression Format

minute hour day-of-month month day-of-week

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

functionReusable Component

Function Implementation

utils Function

JAVASCRIPT

Import Usage

Import: import { utils } from './utils';

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.