You don't always need people to not be lonely. Animals tend to work, but also just going out and doing something may keep your mind off of the friends you can't be with. But there's always other people, don't forget that. Yes, people may annoy you, yet not all of them are annoying