The Drake & Josh alum pleaded guilty last month to attempted endangering children and disseminating matter harmful to juveniles