Got messed up last night, please pray for me, I have nowhere to go, my wife has had enough of me, I feel terrible
Go to a meeting.
Prayer isn't working. Get your a$$ to a meeting. And then another and then another and keep going. Show your wife that you actually mean it this time by putting in actual work instead praying/crossing your fingers or whatever. Help is there, for free, with nothing expected in return.
Call a detox it looks as if you have 30+ asking for help If you want to stop that’s your first step
Has your wife had enough of you, or has she had enough of your current state of mind? That's a question that will only be answered when you are clear minded and show her that you are worth fixing and that your relationship matters. It's doubtful that she married you under these circumstances, so assuming that she's completely done is a bad path to take with the frame of mind that you seem to be in currently.
Take care of yourself, everything happens for a reason. Keep in mind that a favorable out some isn't always going to be your preferred outcome also. Take any blessing that you can get.
Thank y’all