I started writing a script that filters lazy/dumb posts and auto responds

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);
 
Last edited:
We alway want new younger blood in our hobby. Most posts like

more powerful",
"strongest rifle",
"strongest gun",
"best PCP",
"make stronger"

are new airgun enthusiasts or the younger generations and just getting into airguns. Best thing is to explain things to them. And encourage them. The young and new will keep this awesome hobby alive.
 
We alway want new younger blood in our hobby. Most posts like

more powerful",
"strongest rifle",
"strongest gun",
"best PCP",
"make stronger"

are new airgun enthusiasts or the younger generations and just getting into airguns. Best thing is to explain things to them. And encourage them. The young and new will keep this awesome hobby alive.

1. I like how positive you are, this put a smile on my face and reminded me to slow down for a moment.
2. Even in an annoyed state I think the auto response I initially wrote is actually pretty kind, “Explain (in detail) your use case so members of the community can respond appropriately". If you look at some of my more recent posts from (I think) earlier today I gave a much more in depth explanation to someone with that question.
3. I am one of those younger guys, my concern is the people starting one sentence threads about “power” are 15/16 yr old high schoolers who saved up enough money to buy an AEA .50 and are going to order one online (unfortunately saying this will probably completely railroad what I was hoping would just be a meme thread). Maybe a fresh thread if we’re going to delve into that topic…?

Edit (addition) - I think a recent post by a member who said he’s 21 might be evidence of my theory. If I recall correctly it was well written and thoughtful with sufficient detail to allow for really solid feedback from members. Gonna hit the sack, have a good night AGN
 
Last edited:
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);
You joined Oct 19, 2022, and we are boring you already? Sorry.
tim
 
My mistake I though "a bunch of threads recently that were just dumb" were boring you.
tim
Something the older generations are 100% right about is the importance of communicating face to face, or by talking. So much is lost looking at text on a screen. You seem well versed in the sport/hobby, I hope I can learn from you and thank you for your understanding, I was worried I may have come across the wrong way :)

Also, although I do think this thread is addressing something real, it was originally posted as a meme.