DUXPLIMA Documentation

Alerts

Action lines for each moment of a run, and the Discord webhook.

A run that finishes at four in the morning has nobody watching. effects in config.conf says what each moment does. Nothing is on by default: a backup is not news to a player.

MomentWhen
startedThe run began
doneIt finished and reached every storage
partialIt finished but did not reach every storage
failedIt failed
refusedIt never ran: another run was in flight, or the disk would have dropped below the floor
VerbPayload
[broadcast]A line to everybody
[console]A command as the console, which is how a webhook or a Discord relay is reached
[sound]Played to everybody the line before reached
[message]The same as broadcast here, since a run belongs to nobody in particular

A text starting with @ names a line of the messages files, rendered for each reader in their own language. A line can carry <set>, <state>, <size>, <bytes>, <duration>, <storages> and <detail>.

effects {
  done   = ["[broadcast] <gray>The <set> backup finished: <size> in <duration>.", "[sound] BLOCK_NOTE_BLOCK_PLING"]
  failed = ["[broadcast] <red>The <set> backup failed: <detail>"]
}

Discord

KeyDefaultMeaning
discord.webhook-url""A webhook; the URL is a credential, keep it in ${...}
discord.on-successfalsePost when a run succeeds
discord.on-failuretruePost when a run fails

Nothing is ever sent to us. The server's operator gets the alert.

Related: config.conf