Skip to content

Fix for 403 error because of bot posts #512

Answered by 573rn
573rn asked this question in Bugs and Issues
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 573rn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant