Damn did I get screwed, my own fault though

Sorry this happened to you.
Disconnecting and reconnecting the battery may reset the moon roof so you can try to "re-learn" the end points.
There may be a circuit breaker tripped, that you will have to look up.
IF there are limit switches or some sort of potentiometer feedback, they may not be sending a signal or a faulty or noisy signal to the controller.
If it's not seeing any feedback change, it is supposed to stop to prevent damage to the motor because it can't "see" any response to what it thinks it's trying to do.