Waalaikumussalam.
In my own opinion and to my best level of understanding. He said it as a joke and didnt mean it. From where I come from, divorce is not regarded until it is done in writting.
But in this case, I would say you are not divorced, and that is because it was not said intentionally.