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