Whenever any of my students gripe about a detention I give, I remind them that it isn't supposed to be convenient and that they shouldn't have committed whatever infraction that earned it if they couldn't stay.
Maybe losing your hours at work/losing your job will prevent you from skipping class again.
Maybe losing your hours at work/losing your job will prevent you from skipping class again.