Logically I see several things you can do.
The primary thing I see most people advising you to do is
DISTRACTING YOU FROM YOUR ADDICTION, for example
I have been stressed with school, and basic things like that.
I find that its best for me to find comfort in something that takes my mind off the stress
such as Family, Games, or sports.
If you can find something to distract you, I have a strong feeling you will become immune to your addictions.
In other words DISTRACT YOURSELF WITH SOMETHING THAT IS BENEFICIAL