Not to sound callous but as of now I would say your sobriety is more important than a friends wedding. If you must go though I would definitely put a plan in place now and follow through with it. The suggestion above of going to the actual wedding then passing on the reception is a good one. Good luck and hope you get through this.