How do you deal with someone who just wants to be negative?

I have this friend, he’s having a rough go of it at the moment and I’m sympathetic to what he’s going through. My first instinct in a lot of these situations is to try to point to the bright side but he has specifically told me “Don’t show me the bright side, it doesn’t work.” Like… fine, okay, you’re allowed to be sad but you can’t expect me to drown in your hopelessness with you when I’m sure there are ways to make your life better that you’re purposely ignoring just to wallow in your misery. He’ll do this for weeks on end of just hitting me up to tell me how sad he is and ask for comfort and I’m getting tired of it but I don’t want to be mean and just tell him to fuck off over it either. He’s not a bad guy, he just doesn’t know how to process feelings and I know it’s not my job to teach that to him, not that I could even if I wanted to. Boundaries have been set but I need a way to deal with this that doesn’t hurt his feelings. How would you handle this?
How do you deal with someone who just wants to be negative?
Post Opinion