revanced-discord-bot
revanced-discord-bot copied to clipboard
feat: use `censor` to cure names with slurs
If this PR is not complete yet, mark it as a draft.
It is complete
IMO the word ass should be excluded from the list, as it filters benign words such as pass and class, which, given the context of the server, are to be expected in nicknames/usernames.
I dont believe words like that will be effected, but I'm all for excluding ass
@oSumAtrIX can you review?
IMO the word ass should be excluded from the list, as it filters benign words such as pass and class, which, given the context of the server, are to be expected in nicknames/usernames.
I dont believe words like that will be effected, but I'm all for excluding ass
use censor::*;
fn main() {
let censor = Censor::Standard;
println!("{}", censor.check("passport"));
}
from my testing, this code returns true. But anyway, such edge-cases are limited pretty much just to the word ass
, I've done some grepping through dictionaries and couldn't find a similar case for other blacklisted words.
@Ushie Please check if everything works correctly.