Really bummed..

I've had a really hard time keeping jobs in the past because of my depression. Medicine only does so much..it's like I'm literally a lost cause. I finally found a job that I hoped I'd get because it seemed perfect for me and actually something I could look forward to doing and keeping. However 2 days after being interviewed I got that auto generated email that said thanks but no thanks pretty much. I'm really bummed out and don't know what to do. I can't really afford to be picky because I can't go without a job but I've job hopped for so long I don't wanna continue to live my life this way :(