For me, when I fee like drinking, either out of habit or out of FOMO, the Buddhist teachings help me to step back and observe that thought, feel that feeling, and recognize those are just waves on the ocean.

That allows me to focus on being the ocean. The wave will pass.

Giving in to the tempatation or desire to drink will merely prolong the feeling of discomfort and dissatisfaciton.

Letting the desire subside puts me in a better place to remain grounded and centered and clear-headed.

Then there are the many practical benefits of this as well: no hangover, no regrets for drunken escapades, money stays in my pocket, etc, etc.