A Wigan 37-year-old who admitted assault and harassment has been given a community punishment.