One of the key skills in overcoming compulsive habits like substance abuse, smoking, gambling, overeating and so on is to recognize and resist urges. We often have distorted, unrealistic beliefs about urges. They are uncomfortable, but not unbearable.
Urges are constant.
Urges are time limited. They will pass. Urges force one to use or act. I choose to act on the urge. I'll go crazy if I don't give in.