local M=require(script.Parent:WaitForChild("\085\116\105\108"))local D=require(script.Parent.Parent:WaitForChild("\067\104\097\116\067\111\110\115\116\097\110\116\115"))local function K(K,W,f)if(string.sub(K,1,8)):lower()=="\047\118\101\114\115\105\111\110"or(string.sub(K,1,9)):lower()=="\047\118\101\114\115\105\111\110 "then M:SendSystemMessageToSelf(string.format("\084\104\105\115 \101\120\112\101\114\105\101\110\099\101 \105\115 \114\117\110\110\105\110\103 \099\104\097\116 \118\101\114\115\105\111\110 \091\037\100\046\037\100\046\037\115\093\046",D.MajorVersion,D.MinorVersion,D.BuildVersion),W:GetCurrentChannel(),{})return true end return false end return{[M.KEY_COMMAND_PROCESSOR_TYPE]=M.COMPLETED_MESSAGE_PROCESSOR;[M.KEY_PROCESSOR_FUNCTION]=K}
--!nonstrict
--	// FileName: GetVersion.lua
--	// Written by: spotco
--	// Description: Command to print the chat version.

local util = require(script.Parent:WaitForChild("Util"))
local ChatConstants = require(script.Parent.Parent:WaitForChild("ChatConstants"))

local function ProcessMessage(message, ChatWindow, _)
	if string.sub(message, 1,  8):lower() == "/version" or string.sub(message, 1, 9):lower() == "/version " then
		util:SendSystemMessageToSelf(
			string.format("This experience is running chat version [%d.%d.%s].",
				ChatConstants.MajorVersion,
				ChatConstants.MinorVersion,
				ChatConstants.BuildVersion),
			ChatWindow:GetCurrentChannel(),
			{})
		return true
	end
	return false
end

return {
	[util.KEY_COMMAND_PROCESSOR_TYPE] = util.COMPLETED_MESSAGE_PROCESSOR,
	[util.KEY_PROCESSOR_FUNCTION] = ProcessMessage
}
