(2-part post):
Start by giving yourself a great big pat on the back. 'Getting things back together again' will have to be a step-by-step process. (If you aim too high to start with, you'll be almost certain to fail. Just do one thing at a time). However, you've already taken the first, really big, two steps. Firstly, you've admitted to yourself that you've got a problem. Secondly, you've posted here to try to get some help. Many people don't get as far as that, so YOU'VE ALREADY STARTED YOUR RECOVERY PROCESS. BE PROUD OF YOURSELF!!!
Now that you've admitted to yourself that you've got a problem, it's time to face up to the next big hurdle. That's accepting that your unlikely to be able to get on top of that problem without some professional help. When you can force yourself to recognise that you need to visit your doctor, the only question left will be 'when will you have the courage to do it?'. I suspect that, deep down, you already know that you'll eventually see your doctor. Now you need to tell yourself that, if you can express your feelings here on AB, there's no reason why you can't express them to your doctor. So summon up all of your courage and make that appointment.