This is pseudocode/js(ish). I got annoyed seeing a bunch of threads recently that were just dumb so I wrote this on my way home from work on the train, if I had the time I'd write an actual web crawler that auto responds lol. I wrote it in a way that non programmers should be able to read it and still get a laugh 
const uselesstPosts = [
"more powerful",
"strongest rifle",
"strongest gun",
"best PCP",
"make stronger",
];
const readTheRules = [
"how to post in classifieds",
"can't post in classifieds",
"can't dm",
"can't message"
];
let readTheRulesMessage =
"Please read the rules, this is low effort, this won't count towards your 10 post minimum. No one will trust you anyway with garbage contributions";
let lazyMessage =
"Explain (in detail) your use case so members of the community can respond appropriately";
const isTooShort = (text)=> {
if (text.length < 80) {
return true;
}
};
const checker = (textBody, testPhrases, message) => {
for (let i = 0; i < testPhrases.length; i++) {
if (textBody.includes(testPhrases && isTooShort(textBody))) {
Thread.createPost(message);
}
}
};
checker(textBody, uselesstPosts, lazyMessage);
checker(textBody, readTheRules, readTheRulesMessage);
const uselesstPosts = [
"more powerful",
"strongest rifle",
"strongest gun",
"best PCP",
"make stronger",
];
const readTheRules = [
"how to post in classifieds",
"can't post in classifieds",
"can't dm",
"can't message"
];
let readTheRulesMessage =
"Please read the rules, this is low effort, this won't count towards your 10 post minimum. No one will trust you anyway with garbage contributions";
let lazyMessage =
"Explain (in detail) your use case so members of the community can respond appropriately";
const isTooShort = (text)=> {
if (text.length < 80) {
return true;
}
};
const checker = (textBody, testPhrases, message) => {
for (let i = 0; i < testPhrases.length; i++) {
if (textBody.includes(testPhrases && isTooShort(textBody))) {
Thread.createPost(message);
}
}
};
checker(textBody, uselesstPosts, lazyMessage);
checker(textBody, readTheRules, readTheRulesMessage);
Last edited: