A regional police officer will have to complete community work and mental health treatment after he admitted to misconduct in public office.