dude, it's better to prevent things than to contain it afterward
go to therapy (group or 1-on-1) if that's you're type of thing, or just be around friends and don't be afraid to open up.
i've been plagued with anxiety, depression, and a family history of substance abuse that i've been trying to work through forever. the stresses of school on top of all that (i went to a school notorious for suicide from the stress on its students) just really made me snap quickly. and taking a page out of my dad's book, i just drank whenever i could with whatever money i could get. there were days where i didn't get out of bed, days where all i did was drink 151 straight, days i completely fucking forget, and long nights of delirium tremens. don't carry it alone man. we're here for you, and there are just as many people in the real world you can turn to. just don't start down that path; it's hard to recover from completely.