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.
discord-7d2d-status-bridge
Components Overview
Hook Update: monitorJoin
privateBloodMoonNoticeOnFirstJoin, privateBloodMoonTodayMessage. Updated 1 hook implementation.New Module: discord-7d2d-status-bridge
NEWserverstats. Added 6 hooks: discordChatRelay (discord-message), gameChatRelay (chat-message), monitorJoin (player-connected), monitorLeave (player-disconnected), monitorDeath (player-death), monitorServerStatus (server-status-changed). Added 2 scheduled tasks: updateStatus, bloodMoonMonitor. Added 1 function: discord-7d2d-status-helpers. New configuration options: language, chatChannelId, monitoringChannelId, relayDiscordToGame, relayGameToDiscord, monitorJoins, monitorLeaves, monitorDeaths, joinMessageTemplate, leaveMessageTemplate, deathMessageTemplate, deathWithReasonMessageTemplate, serverStartingMessageTemplate, serverOfflineMessageTemplate, emptyPlayerListText, unknownPlayerText, updateStatusMessage, statusTemplate, bloodMoonIcon, timeConsoleCommand, hordeIntervalDays, firstHordeDay, bloodMoonStartHour, bloodMoonEndHour, bloodMoonTodayMessage, bloodMoonStartingMessage, bloodMoonEndingMessage.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 (29)
Built-in message preset. Any non-empty message override takes precedence.
enDiscord channel ID for player chat relay.
Discord channel ID for system/death/join/leave/blood moon/status messages.
Relay messages from the Discord chat channel into game chat.
trueRelay in-game chat messages to the Discord chat channel.
truetruetruetruePrivately notify the first player online when the persisted Blood Moon phase is today or starting.
falseOptional join-message override. Placeholder: {player}.
Optional leave-message override. Placeholder: {player}.
Optional death-message override. Placeholder: {player}.
Optional death-message override when a reason is available. Placeholders: {player}, {reason}.
Optional server-online message override. Placeholder: {serverName}.
Optional server-offline message override. Placeholder: {serverName}.
Optional text shown when no players are online.
Optional fallback when an event has no player name.
Update one persistent bot message with current server status instead of posting a new status every tick.
trueOptional server-status override. Placeholders: {onlinePlayers}, {playerList}, {day}, {time}, {bloodMoonIcon}, {serverName}.
⭒ 🩸gettime77224Optional blood-moon-day message override.
Optional private first-player Blood Moon notice override. The selected language preset is used when empty.
Optional blood-moon-starting message override.
Optional blood-moon-ending message override.
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.
Commands (1)
These commands can be executed by players in-game. Each command has a trigger word, optional arguments, and executes JavaScript code on the server.
About Module Commands
Commands allow players to interact with your module through chat. Each command has a trigger word that players type (prefixed with /), optional arguments for parameters, and a JavaScript function that executes when the command is used. Arguments are automatically validated and passed to the function.
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
discordChatRelay
Description
Function Implementation
discordChatRelay Hook Function
JAVASCRIPTEvent Details
gameChatRelay
Description
Function Implementation
gameChatRelay Hook Function
JAVASCRIPTEvent Details
monitorJoin
Description
Function Implementation
monitorJoin Hook Function
JAVASCRIPTEvent Details
monitorLeave
Description
Function Implementation
monitorLeave Hook Function
JAVASCRIPTEvent Details
System Events
monitorServerStatus
Description
Function Implementation
monitorServerStatus Hook Function
JAVASCRIPTEvent Details
Custom Events
monitorDeath
Description
Function Implementation
monitorDeath 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 (2)
These jobs run automatically on a schedule defined by cron expressions. Each job executes JavaScript code at specific times or intervals.
updateStatus
Description
Schedule Details
Cron Expression
Human-Readable Schedule
Every 5 minutes
Function Implementation
updateStatus 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).
bloodMoonMonitor
Description
Schedule Details
Cron Expression
Human-Readable Schedule
Every minute
Function Implementation
bloodMoonMonitor 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.
discord-7d2d-status-helpers
Function Implementation
discord-7d2d-status-helpers 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.








































