local W=1 local Q={}local i={}i.__index=i function i.SendSystemMessageToSelf(f,W,Q,i)local F={ID=-1,FromSpeaker=nil;SpeakerUserId=0,OriginalChannel=Q.Name;IsFiltered=true,MessageLength=string.len(W),MessageLengthUtf8=utf8.len(utf8.nfcnormalize(W));Message=W;MessageType=ChatConstants.MessageTypeSystem,Time=os.time(),ExtraData=i}Q:AddMessageToChannel(F)end function Q.new()local Q=setmetatable({},i)Q.COMMAND_MODULES_VERSION=COMMAND_MODULES_VERSION Q.KEY_COMMAND_PROCESSOR_TYPE=KEY_COMMAND_PROCESSOR_TYPE Q.KEY_PROCESSOR_FUNCTION=KEY_PROCESSOR_FUNCTION Q.IN_PROGRESS_MESSAGE_PROCESSOR=IN_PROGRESS_MESSAGE_PROCESSOR Q.COMPLETED_MESSAGE_PROCESSOR=W return Q end return Q.new()

local COMPLETED_MESSAGE_PROCESSOR = 1

local module = {}
local methods = {}
methods.__index = methods

function methods:SendSystemMessageToSelf(message, channelObj, extraData)
	local messageData =
	{
		ID = -1,
		FromSpeaker = nil,
		SpeakerUserId = 0,
		OriginalChannel = channelObj.Name,
		IsFiltered = true,
		MessageLength = string.len(message),
		MessageLengthUtf8 = utf8.len(utf8.nfcnormalize(message)),
		Message = message,
		MessageType = ChatConstants.MessageTypeSystem,
		Time = os.time(),
		ExtraData = extraData,
	}

	channelObj:AddMessageToChannel(messageData)
end

function module.new()
	local obj = setmetatable({}, methods)

	obj.COMMAND_MODULES_VERSION = COMMAND_MODULES_VERSION

	obj.KEY_COMMAND_PROCESSOR_TYPE = KEY_COMMAND_PROCESSOR_TYPE
	obj.KEY_PROCESSOR_FUNCTION = KEY_PROCESSOR_FUNCTION

	obj.IN_PROGRESS_MESSAGE_PROCESSOR = IN_PROGRESS_MESSAGE_PROCESSOR
	obj.COMPLETED_MESSAGE_PROCESSOR = COMPLETED_MESSAGE_PROCESSOR

	return obj
end

return module.new()
