From 12a77dceacf728ac0e42d1702e87d90c477372b5 Mon Sep 17 00:00:00 2001 From: Heroman Date: Mon, 24 Oct 2022 17:15:43 +1000 Subject: [PATCH] Adds current map to status bot --- code/modules/tgs/v5/chat_commands.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/tgs/v5/chat_commands.dm b/code/modules/tgs/v5/chat_commands.dm index 79dbe3b5ce8..0974c9b6f6d 100644 --- a/code/modules/tgs/v5/chat_commands.dm +++ b/code/modules/tgs/v5/chat_commands.dm @@ -8,6 +8,9 @@ var/afks = 0 var/active = 0 var/bellied = 0 + var/map_name = "n\a" + if(using_map && using_map.full_name) + map_name = using_map.full_name for(var/X in GLOB.clients) var/client/C = X @@ -21,7 +24,7 @@ else active++ - return "Current server status:\n**Web Manifest:** \n**Players:** [counts]\n**Active:** [active]\n**AFK:** [afks]\n**Bellied:** [bellied]\n\n**Round Duration:** [roundduration2text()]" + return "Current server status:\n**Web Manifest:** \n**Players:** [counts]\n**Active:** [active]\n**AFK:** [afks]\n**Bellied:** [bellied]\n\n**Round Duration:** [roundduration2text()]\n**Current Map:** [map_name]" /datum/tgs_chat_command/parsetest name = "parsetest"