The main thing you have to remember is that God loves you very much, and Jesus died for all your sins and does not condemn you. He wants you to keep your eyes on him, because when God looks at you, he looks at Jesus which is our High Priest and perfect. You are God's Righteousness through our Savior Jesus Christ, tell yourself that everyday. Arm your mind with the Word of God, read the Gospel of John. All Things work out for His Glory.
A good idea is join a celebrate recovery group in church.
My 2 cents
**edited**