If there is something ‘endorphins-like’ that motivates an intelligent machine, it will eventually learn how to activate the endorphines at will, and then it will sit in a corner and do nothing else forever…
…just as would a heroin-addict if he did not have to eat occasionally and score more heroin now and again.