Roofied by accident??

So my buddy was smoking weed and doing edibles and later we shared a coke and he said it tasted weird and then I drank it all. That night was not a good night. I was off the chain...major headache and drowsiness next day. Anybody know wtf happened to me?