mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-03-21 19:23:41 +00:00
* Begin * Begin 2 * move to tsx * fix that UI * fix gib * bunch of fixes * fix this one * Nicer ahelp bot text formatting * clean up all inputs * . * fix MC tab * fix ore spawn * with rare * More filter stuff * Cleaned up world * Fix * ummm * . * fix that * . * Begin * Begin 2 * move to tsx * fix that UI * fix gib * bunch of fixes * fix this one * clean up all inputs * Nicer ahelp bot text formatting * . * fix MC tab * fix ore spawn * with rare * More filter stuff * Cleaned up world * Fix * Added missing props * useContext fix * . --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
27 lines
926 B
Plaintext
27 lines
926 B
Plaintext
/decl/webhook/roundend
|
|
id = WEBHOOK_ROUNDEND
|
|
|
|
// Data expects three numerical fields: "survivors", "escaped", "ghosts", "clients"
|
|
/decl/webhook/roundend/get_message(var/list/data)
|
|
. = ..()
|
|
var/desc = "A round of **[SSticker.mode ? SSticker.mode.name : "Unknown"]** (Round ID: [GLOB.round_id ? GLOB.round_id : "No database"]) has ended.\n\n"
|
|
if(data)
|
|
var/s_escaped = "Escaped"
|
|
if(!emergency_shuttle.evac)
|
|
s_escaped = "Transferred"
|
|
if(data["survivors"] > 0)
|
|
desc += "Survivors: **[data["survivors"]]**\n"
|
|
desc += "[s_escaped]: **[data["escaped"]]**\n"
|
|
else
|
|
desc += "There were **no survivors**.\n\n"
|
|
desc += "Ghosts: **[data["ghosts"]]**\n"
|
|
desc += "Players: **[data["clients"]]**\n"
|
|
desc += "Round duration: **[roundduration2text()]**"
|
|
|
|
.["embeds"] = list(list(
|
|
// "title" = global.end_credits_title,
|
|
"title" = "Round Has Ended",
|
|
"description" = desc,
|
|
"color" = COLOR_WEBHOOK_DEFAULT
|
|
))
|