Here are some tips for you to consider:
Tell yourself that to gamble is to enjoy the entertainment only.
Rekindle an old hobby.
Do something different.
Plan to prevent boredom.
Find ways to help you cope better with stress.
Determine your self-sabotage triggers.
If you feel that you are trapped in gambling problems/issues, please seek help from Responsible Gambling Experts at BeGambleAware and GamCare.