mirror of
https://github.com/hypervortex/VH-Bombsquad-Modded-Server-Files
synced 2025-11-07 17:36:08 +00:00
137 lines
2.5 KiB
Python
137 lines
2.5 KiB
Python
# ported from ankit scripts
|
|
# need to update in future with easy to add custom list and more deep analysis .
|
|
# working on other features rn, will update this later , for now lets use this
|
|
#recreated by SARA
|
|
import re
|
|
|
|
blacklist_word = [
|
|
"fuck",
|
|
"shit",
|
|
"bitch",
|
|
"asshole",
|
|
"cunt",
|
|
"dick",
|
|
"cock",
|
|
"pussy",
|
|
"whore",
|
|
"bastard",
|
|
"slut",
|
|
"motherfucker",
|
|
"douchebag",
|
|
"wanker",
|
|
"asshat",
|
|
"twat",
|
|
"bollocks",
|
|
"crap",
|
|
"damn",
|
|
"goddamn",
|
|
"hell",
|
|
"bugger",
|
|
"arse",
|
|
"prick",
|
|
"idiot",
|
|
"moron",
|
|
"loser",
|
|
"jerk",
|
|
"dipshit",
|
|
"dumbass",
|
|
"nigger",
|
|
"retard",
|
|
"fucktard",
|
|
"douche",
|
|
"fuckface",
|
|
"fuckhead",
|
|
"shithead",
|
|
"cockhead",
|
|
"dickhead",
|
|
"asshead",
|
|
"bitchass",
|
|
"cuntface",
|
|
"pisshead",
|
|
"assclown",
|
|
"bullshit",
|
|
"piss off",
|
|
"suck",
|
|
"sucker",
|
|
"fuck off",
|
|
"jackass",
|
|
"son of a bitch",
|
|
"arsehole",
|
|
"fuckwit",
|
|
"asswipe",
|
|
"turd",
|
|
"fuckface",
|
|
"fucknut",
|
|
"shitface",
|
|
"shitbag",
|
|
"shit-for-brains",
|
|
"dickwad",
|
|
"dickweed",
|
|
"piss off",
|
|
"motherfucking",
|
|
"cockgobbler",
|
|
"twatwaffle",
|
|
"cumstain",
|
|
"fuckery",
|
|
"fucker",
|
|
"fucked",
|
|
"shitstorm",
|
|
"shitshow",
|
|
"bullshit",
|
|
"bullshitter",
|
|
"clusterfuck",
|
|
"cunthammer",
|
|
"cuntlicker",
|
|
"cumdumpster",
|
|
"fucktastic",
|
|
"shitload",
|
|
"shitbag",
|
|
"shitfaced",
|
|
"shitload",
|
|
"shitfucker",
|
|
"fuckface",
|
|
"fucknugget",
|
|
"fuckstick",
|
|
"fucktard",
|
|
"fuckup",
|
|
"motherfucker",
|
|
"motherfucking",
|
|
"motherfucked",
|
|
"motherfuck",
|
|
"motherfucks",
|
|
"pissed off",
|
|
"pissed",
|
|
"pissing",
|
|
"pisses",
|
|
"pisshead",
|
|
"pisshead",
|
|
"pissed off",
|
|
"son of a bitch",
|
|
"son of a whore",
|
|
"son of a cunt",
|
|
"son of a dick",
|
|
"son of an ass",
|
|
"twat",
|
|
"twat",
|
|
"twatted",
|
|
"twatting",
|
|
"twats",
|
|
"whore",
|
|
"whore",
|
|
"whored",
|
|
"whoring",
|
|
"whores",
|
|
"ass",
|
|
# Add more words as needed
|
|
]
|
|
|
|
def censor(message):
|
|
profane_list = blacklist_word
|
|
pattern = "|".join(r"\b{}\b".format(re.escape(word)) for word in profane_list)
|
|
censored_message = re.sub(
|
|
pattern,
|
|
lambda match: "*" * len(match.group()),
|
|
message,
|
|
flags=re.IGNORECASE
|
|
)
|
|
return censored_message
|