Auto-capping-machine