ALWAYS use a double boiler when making butter, it sounds like you cooked it wayyyy too much. If it even starts to turn at all brown, immediatly take it off the heat. Getting it hot enough to turn destroys all the thc, leaving you with burnt butter and plant matter, yech.

You live you learn, good luck next time. When you do it right, the taste is unbelievable, as well as the high.

Also, it takes roughly 2 hours for the thc to be dumped into your blood stream from your liver - depending on how much you have in your stomache, so you may have gotten stoned in your sleep.