local d=require(script.Parent:WaitForChild("\085\116\105\108"))function ProcessMessage(d,D,P)if(string.sub(d,1,4)):lower()=="\047\099\108\115"or(string.sub(d,1,6)):lower()=="\047\099\108\101\097\114"then local d=D:GetCurrentChannel()if d then d:ClearMessageLog()end return true end return false end return{[d.KEY_COMMAND_PROCESSOR_TYPE]=d.COMPLETED_MESSAGE_PROCESSOR,[d.KEY_PROCESSOR_FUNCTION]=ProcessMessage}
--!nonstrict
--	// FileName: ClearMessages.lua
--	// Written by: TheGamer101
--	// Description: Command to clear the message log of the current channel.

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

function ProcessMessage(message, ChatWindow, ChatSettings)
	if string.sub(message, 1, 4):lower() == "/cls" or string.sub(message, 1, 6):lower() == "/clear" then
		local currentChannel = ChatWindow:GetCurrentChannel()
		if (currentChannel) then
			currentChannel:ClearMessageLog()
		end
		return true
	end
	return false
end

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