One of the things I grew up with after my mom got sober when I was 9 was "never get to hungry, too angry, too lonely, too tired" which seems to address this pretty directly. AA also serves as an outreach, as a safety net of other sober people to talk to when you're dealing with those emotionally driven cravings.