local w=1 local G={}local l={}l.__index=l function l.SendSystemMessageToSelf(T,w,G,l)local e={ID=-1,FromSpeaker=nil;SpeakerUserId=0,OriginalChannel=G.Name,IsFiltered=true;MessageLength=string.len(w);Message=w,MessageType=ChatConstants.MessageTypeSystem;Time=os.time();ExtraData=l}G:AddMessageToChannel(e)end function G.new()local G=setmetatable({},l)G.COMMAND_MODULES_VERSION=COMMAND_MODULES_VERSION G.KEY_COMMAND_PROCESSOR_TYPE=KEY_COMMAND_PROCESSOR_TYPE G.KEY_PROCESSOR_FUNCTION=KEY_PROCESSOR_FUNCTION G.IN_PROGRESS_MESSAGE_PROCESSOR=IN_PROGRESS_MESSAGE_PROCESSOR G.COMPLETED_MESSAGE_PROCESSOR=w return G end return G.new()
---Simply process a completed message.
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),
		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()
