I've done the same thing -- I would say the worst, most hurtful things, things that weren't even true and I would never even think of saying if I wasn't drunk.
The unbearable shame and guilt made me drink even more and I ended up in a downward spiral of misery that just got worse and worse.
My best hope of never doing that again is getting and staying sober and I got help for it.
Welcome to SR. If you want the same thing, this is a great place to start with lots of support and information.