Don't get discouraged, that's the worst thing you can do bro. Learning to not blame yourself after a relapse is an important step.
Don't be so harsh on yourself, you can't stop an addiction in a single shot, just go for your goals and as you success in them just set another goal and so on.