Re-program your mind with the truth of the Word of God about who you are and about what you've done. T - Trust a friend. Y - Yell for joy whenever you get it right. Celebrate your victories. AA is famous for this.
Sobriety is celebrated, marked off.
I know men who carry medals in their pocket that demark 15 years of sobriety. Celebrate the grace of God, not out of pride, but out of gratefulness and realization of your continuing need for His powerful Presence in your life. IF you fail, get up and start over. They are possible for you because of what Jesus Christ did at the Cross.