I deal with loneliness the same way I'd deal with any addiction. I tell myself I just need to get through one minute at a time, then one hour and then one day. It's not even a whole 24h, I only have to be awake for 16h and I can get through that. Tomorrow doesn't matter, because I might not have to wake up again. If I do, I'll handle it then.

This allows me to not add any further worry/anxiety/pain to the day. when it hurts, I get by, and when the pain stops for a few hours, I enjoy the things I have available to me - walks on the beach, substance abuse (chocolate), reading, watching TV. I tend to watch the same shows over and over, it's almost like having friends, but they never leave. I do try to talk to one human being at least once a week even if it's online, just to make sure my voice still works. It's important to realise that nothing really matters in the end. There's no viva committee at the end that will pass/fail you. Serving your time on earth is the only thing that matters. Once the time is passed, you never have to serve it again.