Files
CHOMPStation2/code/modules/webhooks/webhook_roundstart.dm
CHOMPStation2StaffMirrorBot 2c9453b5c3 [MIRROR] var/global/list -> GLOB. conversion (#11193)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-07-16 00:24:42 +02:00

17 lines
488 B
Plaintext

/decl/webhook/roundstart
id = WEBHOOK_ROUNDSTART
// Data expects a "url" field pointing to the current hosted server and port to connect on.
/decl/webhook/roundstart/get_message(var/list/data)
. = ..()
var/desc = "Gamemode: **[GLOB.master_mode]**\n"
desc += "Players: **[GLOB.player_list.len]**"
if(data && data["url"])
desc += "\nAddress: <[data["url"]]>"
.["embeds"] = list(list(
"title" = "Round has started.",
"description" = desc,
"color" = COLOR_WEBHOOK_DEFAULT
))