Hey welcome to the forum, and appreciate you being so open here about what’s happening at this temporary moment in your life.
As someone who’s been through bankruptcy I can tell you that it’s not all that bad, and in many ways kind of a relief. HOWEVER, you should do everything you possibly can do avoid it due to how many negative things happen in your life for the years that follow.
It sounds like you’re already at acceptance. That @AdminJanePlane had some solid advice about GA + 1-800-Gambler free counseling, and that’s a good place to start the healing process. You need to find a greater purpose, you need to get better for future you No Zero Days : The Three You’s.
The tip is start today, the trick is it get’s better with every day that passes of you being addiction free. You got this! We’re here to help support you.