diff --git a/code/modules/DMAPI/yawnDMAPI.dm b/code/modules/DMAPI/yawnDMAPI.dm new file mode 100644 index 0000000000..6e9ef94167 --- /dev/null +++ b/code/modules/DMAPI/yawnDMAPI.dm @@ -0,0 +1,8 @@ +/datum/server_tools_command/who + name = "players" //the string to trigger this command on a chat bot. e.g. TGS3_BOT: do_this_command + help_text = "Will broadcast the current player count" //help text for this command + required_parameters = 0 //number of parameters required for this command + admin_only = FALSE //set to TRUE if this command should only be usable by registered chat admins + +/datum/server_tools_command/who/Run(sender, params) + SERVER_TOOLS_CHAT_BROADCAST("[SERVER_TOOLS_CLIENT_COUNT]") \ No newline at end of file diff --git a/vorestation.dme b/vorestation.dme index d7943c36d7..92190c050a 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -1608,6 +1608,7 @@ #include "code\modules\detectivework\tools\uvlight.dm" #include "code\modules\DMAPI\st_commands.dm" #include "code\modules\DMAPI\st_interface.dm" +#include "code\modules\DMAPI\yawnDMAPI.dm" #include "code\modules\economy\Accounts.dm" #include "code\modules\economy\Accounts_DB.dm" #include "code\modules\economy\ATM.dm"