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_triviaTime

by Limon
for 7 Days to Die
Run scheduled trivia games on 7 Days to Die servers with Takaro rewards and leaderboards. 7dtd_triviaTime asks configurable questions, accepts player answers, and rewards correct responses through currency or items.
Use this module to:
  • Ask trivia questions from custom lists or the Open Trivia Database.
  • Configure categories, difficulty, and question types.
  • Reward players for correct answers.
  • Track trivia scores and reset leaderboards when needed.
  • Add a recurring community minigame between larger server events.
Good fit for 7 Days to Die communities that want chat-based trivia, player engagement, and lightweight reward events managed through Takaro.

Module details

Limon_triviaTime: Interactive Trivia Game System

The Limon_triviaTime module transforms your gaming server with an engaging trivia game system that automatically poses questions and rewards correct answers. This enhanced version supports both the Open Trivia Database API and custom questions.

Key Benefits:

  • Dual Question Sources: Choose between Open Trivia Database API or custom questions
  • Rich Category Selection: Access to 20+ categories from the API including General Knowledge, Science, Sports, History, and more
  • Difficulty Control: Easy, Medium, and Hard difficulty levels
  • Flexible Question Types: Support for True/False and Multiple Choice questions
  • Flexible Reward System: Choose between currency or item rewards for winners
  • Automated Scheduling: Set trivia events to run at specified intervals
  • Player Engagement Tool: Keeps your community active and entertained
  • Simple Answer Validation: Easy command-based answer submission system

Features:

  • Open Trivia Database API integration with 4000+ verified questions
  • Configurable question database with pre-populated examples as fallback
  • Dual reward types (currency or items)
  • Customizable item quality and quantity settings
  • Permission-based participation control
  • Automated trivia scheduling with cron jobs
  • Real-time feedback on incorrect answers
  • Server-wide announcements for winners
  • HTML entity decoding for proper question display
  • Session token support to prevent duplicate questions
Ideal for server administrators looking to increase player retention and build community through interactive gameplay elements. Works seamlessly with existing Takaro economy and item systems.
communityTakaro v0.2.1
(2 versions available)

Components Overview

1
config
3
commands
0
hooks
1
Cron Jobs
0
functions
2
permissions

New Module: 7dtd_triviaTime

NEW
July 28, 2025
Updated to version latest. Added 3 commands: playerAnswer, triviaboard, triviareset. Added 1 scheduled task: TriviaTime. New permissions: TRIVIA_PARTICIPATE, TRIVIA_RESET_LEADERBOARD. New configuration options: questionSource, apiCategory, apiDifficulty, apiType, rewardType, rewardAmount, rewardItems, questions, triviaStartSound, correctAnswerSound, wrongAnswerSound.

Command Update: playerAnswer

July 27, 2025
Updated 1 command implementation.

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

questionSourceenum
Question Source

Choose between Open Trivia Database API or custom questions

Default: api
Allowed values (2):
apicustom
apiCategoryarray
API Categories

Categories for Open Trivia Database questions (select multiple or 'any')

Default: ["any"]
Constraints: uniqueItems
apiDifficultyenum
API Difficulty

Difficulty level for Open Trivia Database questions

Default: any
Allowed values (4):
anyeasymediumhard
apiTypeenum
Question Type

Type of questions from API

Default: any
Allowed values (3):
anymultipleboolean
rewardTypeenum
Reward Type

Choose Currency, Items, or Both (random)

Default: currency
Allowed values (3):
currencyitemsboth
rewardAmountnumber
Reward Amount

Currency reward amount

Default: 100
Constraints: min: 1, max: 100000
rewardItemsarrayitem
Items

Items to give as rewards

Constraints: uniqueItems
questionsarray
Custom Questions (Fallback)

Used when API is unavailable or question source is set to custom

Default: [{"question":"What is the capital of France?","answer":"Paris"},{"question":"What is the largest planet in our solar system?","answer":"Jupiter"}]
triviaStartSoundstring
Trivia Start Sound

Sound to play to all players when a new trivia question is posted (leave empty to disable)

Default: ui_click
correctAnswerSoundstring
Correct Answer Sound

Sound to play to all players when someone answers correctly (leave empty to disable)

Default: ui_unlock
wrongAnswerSoundstring
Wrong Answer Sound

Sound to play to the player when they answer incorrectly (leave empty to disable)

Default: ui_denied

UI Schema

No configuration properties defined. This module uses default settings.

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

These commands can be executed by players in-game. Each command has a trigger word, optional arguments, and executes JavaScript code on the server.

playerAnswer

/answerTrigger Command

Description

Submit your answer to the current trivia question

Arguments (1)

answer
stringPosition 0
Help: provide an answer
Default: ""

Function Implementation

playerAnswer Function

JAVASCRIPT

Usage Example

Player types: /answer <answer>

triviaboard

/triviaboardTrigger Command

Description

No help text available

Function Implementation

triviaboard Function

JAVASCRIPT

Usage Example

Player types: /triviaboard

triviareset

/triviaresetTrigger Command

Description

No help text available

Function Implementation

triviareset Function

JAVASCRIPT

Usage Example

Player types: /triviareset

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.

Scheduled Jobs (1)

These jobs run automatically on a schedule defined by cron expressions. Each job executes JavaScript code at specific times or intervals.

TriviaTime

0 0 * * *Schedule

Schedule Details

Cron Expression
0 0 * * *
Human-Readable Schedule

Daily at midnight

Function Implementation

TriviaTime 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.

Permissions (2)

These permissions control who can access different features of this module. Administrators can assign these permissions to roles, allowing fine-grained access control.

General Permissions

2 permissions

Participate in Trivia

TRIVIA_PARTICIPATEPermission Key
Description

Allows players to participate in trivia games

Permission Details
Full Key:TRIVIA_PARTICIPATE
Can Have Count:No
Category:General

Reset Trivia Leaderboard

TRIVIA_RESET_LEADERBOARDPermission Key
Description

Allows resetting the trivia leaderboard scores

Permission Details
Full Key:TRIVIA_RESET_LEADERBOARD
Can Have Count:No
Category:General

About Module Permissions

Permissions control access to module features and functionality. Each permission has a unique key for identification, a friendly name for display, and a description explaining what it allows. Some permissions are countable, meaning they can have numeric values or limits assigned. Administrators assign these permissions to user roles to control who can use different module features.