[A cat] will make itself the companion of your hours of work, of loneliness, or of sadness.
or simply: