I always try to lift my friends spirits, because I know how it is to be down and depressed. It definitely helps having friends do their best to help lift my spirits
If that’s the only reason someone likes you, screw them. They can appreciate it, but their opinion of you shouldn’t depend on it. And your opinion of yourself shouldn’t depend on it either! How we treat other people is way more important, and you seem to do that pretty damn well afaik