Not an easy task. From experience:
- Recruit human moderators you trust.
- Post clear rules with no room for interpretation. Be specific.
- Post what the sanctions are if people break the rules.
- Enforce those rules.
- Apply the rules fairly and transparently.
- Encourage the use of Discourse’s post flagging system.
Good luck!