I think you have to do other fun things besides gambling. you can spend time with friends or family because I believe it would be more fun than gambling. you can also use other ways to earn money other than gambling, for example such as trading and mining bitcoin
I do believe that day job could solve gambling addiction aside from using most of your time with your family. When you have a job, your way of thinking is different compared when you are just sitting in front of your computer or have nothing to dedicate your efforts to. the busier your mind is, the smaller the chance that you have time to think about gambling.