I don't talk much when when I'm feeling lonely, so what I do is listen to music that will soothe my mood or take a nap.
One may feel lonely when he/she is alone in some place at some time. In this case, I would like to do some reading or listen to music. Alternatively, if there are some strangers around me, I would pick up a topic and start a conversation. However, one is also likely to feel lonely even if she/he is surrounded by a group of friends. That should be called psychologically lonely. I did have had such kind of experience. In this case, I would choose to read people around me or just walk away. Share a funny saying: Revelry (revel) is a group of people´s loneliness while the loneliness is one's revelry (revel).
When I am alone, I start walking around the rooms. Then take a chair, sit, with few sips of lemonade soothes me to be with myself. This way, I get some time to think upon myself.
Listening to music, playing games, watching movies, surfing the net and drink few beers the same time But sometimes i think everyone need to be alone with himself.
Catch up with your hobbies!! Or the best way to relax yourself, go to sleep without putting an alarm. When you get up go to the mirror and smile at yourself. Do you really need someone to be cheerful??!!
The answer is in your hands my friend, because if you are happy and you know just clap your hands. Anyway, I read books, sing my hearts out, write a story, draw something and a lot more.