JackDotJS / OptiBot

(DISCONTINUED) The original Discord bot for OptiFine. https://discord.gg/3mMpcwW
1 stars 0 forks source link

OptiBot Filters #111

Open JackDotJS opened 4 years ago

JackDotJS commented 4 years ago

Filters chat messages based on regular expressions or basic strings. This is an expanded version of the "StopModReposts Link Detector" from legacy versions of OptiBot

Example format:

{
   filter: "bad word",
   action: 0,
   reason: "bad words are not allowed on this server"
}

filter

String OR RegExp.

action

Number.

This is a number simply to allow for additional functionality in the future.

reason

String. Self-explanatory.

Stereo528 commented 4 years ago

I'm guessing this would only work for words like fa**ot, and the nword, not fuck? (and StopModReposts things)

JackDotJS commented 4 years ago

simple, commons swears won't be filtered (because honestly who gives a shit), i only used it as an example

i forgot to mention, kirby on discord also provided me a VERY useful list of regex-based filters for common slurs, should help for those who try to get around this system.

https://docs.google.com/spreadsheets/d/1QPkDDl9AsdllDN2k8oBKKlueohcQktRv28671ieeZj4/edit#gid=0

MrCheeze446 commented 4 years ago

https://docs.google.com/document/d/1h0mlu3L94M-QUdKQluxegVnX87oy-QmNYDFhWUZ331E/edit?usp=sharing file has been deleted fake OF site list

JackDotJS commented 4 years ago

I think a "mass ping" filter could also be added to this, but that may require accepting entire functions as filters.

This could probably use some kind of auto-mute, when a user is mass spamming pings/any other filtered phrase.

JackDotJS commented 4 years ago

Should probably add "fake discord" links, such as dlcordapp.com and dircordapp.com

JackDotJS commented 4 years ago

also add grabify.link. this is an IP grabber/link shortener in one.