By stepping out of my comfort (discomfort) zone and committing to regular meetings.
Getting involved in my group and honoring my commitments.
Buddy up with someone who attends regularly and follow them to meetings. It's easier with a friend.
Get into AA service work !! That will cure you !! Ask your sponsor to volunteer you to speak at neighboring groups.
Regular attendance and working the Steps, you will realize that "God is doing for you what you cannot do for yourself"
Soon... old bad habits will become new good habits. When I develop a new habit, doing the right thing is a lot easier.
All the best, V
Bob R