From 85204d4ff5c1fbe523213634bbcdb6e46aae9cc1 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Sun, 10 May 2020 14:04:08 -0400 Subject: [PATCH] Adds a couple chat commands to tgs chatbot --- code/modules/tgs/includes.dm | 1 + code/modules/tgs/v5/chat_commands.dm | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 code/modules/tgs/v5/chat_commands.dm diff --git a/code/modules/tgs/includes.dm b/code/modules/tgs/includes.dm index b3c1728f34..764adbc3a9 100644 --- a/code/modules/tgs/includes.dm +++ b/code/modules/tgs/includes.dm @@ -14,6 +14,7 @@ #include "v5\_defines.dm" #include "v5\api.dm" #include "v5\commands.dm" +#include "v5\chat_commands.dm" #include "v5\undef.dm" /* diff --git a/code/modules/tgs/v5/chat_commands.dm b/code/modules/tgs/v5/chat_commands.dm new file mode 100644 index 0000000000..bc73602861 --- /dev/null +++ b/code/modules/tgs/v5/chat_commands.dm @@ -0,0 +1,15 @@ +/datum/tgs_chat_command/status + name = "status" + help_text = "Shows the current production server status" + admin_only = FALSE + +/datum/tgs_chat_command/status/Run(datum/tgs_chat_user/sender, params) + return "```Players logged in: [GLOB.clients.len] - Round Duration: [roundduration2text()]```" + +/datum/tgs_chat_command/parsetest + name = "parsetest" + help_text = "Shows the current production server status" + admin_only = FALSE + +/datum/tgs_chat_command/parsetest/Run(datum/tgs_chat_user/sender, params) + return "```You passed:[params]```"