[MIRROR] Makes roundstart webhook not metagame.

This commit is contained in:
Chompstation Bot
2021-05-27 16:45:24 +00:00
parent bbafe17f3b
commit 9084f7a1e0

View File

@@ -0,0 +1,16 @@
/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: **[global.master_mode]**\n"
desc += "Players: **[global.player_list.len]**"
if(data && data["url"])
desc += "\nAddress: <[data["url"]]>"
.["embeds"] = list(list(
"title" = "Round has started.",
"description" = desc,
"color" = COLOR_WEBHOOK_DEFAULT
))