The min post length site setting should work here.
See Discourse Akismet Anti-Spam, and also search for spam in your site settings to see other useful settings, like the newuser spam host threshold and the allowed spam host domains may be helpful here.