Configurations

The plugin is highly configurable via the K4-GOTV.json file. Below is a breakdown of the key configuration sections

General Settings

Setting

Description

Default Value

DemoDirectory

Directory where demos are stored. (Starting from csgo/)

"discord_demos"

DefaultFileName

Default name format for recorded demos.

"demo"

DeleteEveryDemoFromServerAfterServerStart

Delete all stored demos on server start.

false

LogUploads

Log demo upload events to the console.

true

LogDeletions

Log demo deletion events.

true

DeleteDemoAfterUpload

Remove the demo file after successful upload.

true

DeleteZippedDemoAfterUpload

Remove the ZIP file after successful upload.

true

RegularFileNamingPattern

Naming pattern for standard demos.

"{fileName}_{map}_{date}_{time}"

CropRoundsFileNamingPattern

Naming pattern for cropped round demos.

"{fileName}_{map}_round{round}_{date}_{time}"

MinimumDemoDuration

Minimum demo duration in seconds before being processed.

5.0

Auto Record Settings

Setting

Description

Default Value

Enabled

Enable automatic recording.

false

CropRounds

Start a new demo for each round.

false

RecordWarmup

Record warmup rounds.

true

StopOnIdle

Stop recording if the server is inactive.

false

IdlePlayerCountThreshold

Minimum player count to keep recording.

0

IdleTimeSeconds

Time before stopping the recording due to inactivity.

300

Discord Integration

Setting

Description

Default Value

WebhookURL

Discord webhook URL for notifications.

""

WebhookName

Webhook username for messages.

"CSGO Demo Bot"

WebhookAvatar

Webhook avatar URL.

""

MessageText

Default message text in notifications.

"@everyone New CSGO Demo Available!"

EmbedTitle

Title of the embed message.

"New CSGO Demo Available"

WebhookUploadFile

Upload the demo directly to Discord. (Fails above limit exceeding)

true

ServerBoost

Discord Nitro boost level affecting file size limits.

0

FTP/SFTP Integration

Setting

Description

Default Value

Enabled

Enable FTP upload.

false

Host

FTP server address.

""

Port

FTP port.

21

Username

FTP username.

""

Password

FTP password.

""

RemoteDirectory

Destination directory for uploads.

"/"

UseSftp

Use SFTP instead of FTP.

false

Mega Integration

Setting

Description

Default Value

Enabled

Enable Mega upload.

false

Email

Mega account email.

""

Password

Mega account password.

""

Demo Request Settings

Setting

Description

Default Value

Enabled

Enable demo request feature. (Using !demo - Automatically enabled crop-rounds and auto-record)

false

PrintAll

Broadcast requests to all players.

true

DeleteUnused

Delete unrequested demos.

true

Database Settings

Setting

Description

Default Value

Enable

Enable database storage of demo records.

false

Host

Database host.

"localhost"

Port

Database port.

3306

Name

Database name.

""

Username

Database username.

""

Password

Database password.

""

SslMode

SSL mode for database connection.

"preferred"

TablePrefix

Prefix for database tables.

""


Last updated

Was this helpful?