[MIRROR] Ports Nebula's Discord Webhook Integration

This commit is contained in:
Chompstation Bot
2021-05-27 16:35:07 +00:00
parent bbafe17f3b
commit 34143b83cf
27 changed files with 2800 additions and 14 deletions

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: **[SSticker.mode.name]**\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
))