So I opened my scriptures. I found Matthew 22:36-40, which reads
Jesus said unto him, Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy mind.
On these two commandments hang all the law and the prophets.
Then I realized something. If God loves us, everything he asks of us is meant to make us happy. And if these two commandments are the greatest things he asks us to live by, they will make us the happiest.
I still felt lonely afterwards, but it wasn't nearly as bad, because I had a solution. That solution is love.