<human>: Can you give me the gist of the text in a nutshell?

After a month of no contact I texted my ex saying I hope he's doing great. He responded back and forth saying he's not doing well, he's lonely, he realized he fucked up and that he still has strong feelings for me, and pushing to see if i met someone new. I am no longer interested in dating him, so I just acted supportive and said we can definitely be friends whenever he's ready. He got upset that I didn't directly to respond to him admitting his feelings, and said I ruined his night. 

Now I feel terrible, because I had good intentions and he got really upset. What can I do to help him feel better? Is it best I just don't respond or contact him again unless he's ready to talk to me himself?
<bot>: Contacted my ex to be nice and tell him I hope he's doing well, but he got upset because it was clear I'm only interested in being friends.