msg = msg:lower()for keyword in pairs(mas) do if msg:match(keyword) then -- the message contains this keyword break endend