I often talk about sober muscles.
No one starts lifting weights at 300 pounds. You work up to it.
I put a lot of thought into the invites I accepted and the things I did.
I avoided things I knew would involve mass consumption of alcohol - in fact I avoided events with alcohol at all, for a while
I didn't stay home and mope tho.
I wet to museums and art galleries, I went to cafes, I went on walks and picnics, I got back into hobbies.
I hung out with friends who would no sooner drink at lunch than rob a bank.
Slowly and surely I built up sober muscles - and when I knew I could go anywhere and not let anything or anyone sway me to drink...I knew I was ready for that big 300 pound lift,
Probably took me 6 months of judicious socialising to get to that surety - might take you shorter or longer, but you'll know