One of the first things that one needs to do to get out of depression, and probably for other mental illnesses too, is to love yourself again.
Nobody's perfect. We all make mistakes. We all do things that we wish we hadn't.
But long as you're trying to make the world a better place than you found, you're not trying to be a jerk or an asshole, you try to treat everybody with some kindness and dignity, well, then, you're an okay person and worthy of love.
A playlist of end-of-depression songs including Bob Marley's "Could You Be Loved" and Lipstick Homicide's "Isn't It Glorious":