Fix for 403 error because of bot posts #512
-
In regex enter:
This works specifically with a GPT bot on the server I'm in. (?!\s*$) = Whitespace: the bot in my server often posts posts that are only whitespace, aka: no characters at all. This skips posts with no input. (?!.*\bwarn\b) = The other post the bot makes contains the word "Warn", this skips all posts that contain the word "Warn" Replace these with whatever unique words or phrases the bot in the server you are trying to avoid uses. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answer in OP:
This works specifically with a GPT bot on the server I'm in. (?!\s*$) = Whitespace: the bot in my server often posts posts that are only whitespace, aka: no characters at all. This skips posts with no input. (?!.*\bwarn\b) = The other post the bot makes contains the word "Warn", this skips all posts that contain the word "Warn" Replace these with whatever unique words or phrases the bot in the server you are trying to avoid uses. |
Beta Was this translation helpful? Give feedback.
Answer in OP:
^(?!\s*$)(?!.*\bwarn\b).*$
This works specifically with a GPT bot on the server I'm in.
(?!\s*$) = Whitespace: the bot in my server often posts posts that are only whitespace, aka: no characters at all. This skips posts with no input.
(?!.*\bwarn\b) = The other post the bot makes contains the word "Warn", this skips all posts that contain the word "Warn"
Replace these with whatever unique words or phrases the bot in the server you are trying to avoid uses.