mirror of
https://github.com/Sean-S-Wang/christian_crusader_discord.git
synced 2026-01-08 22:17:54 -05:00
Excluded apostrophes in regular expression so contractions are okay, and also added more bad words
This commit is contained in:
@@ -1 +1 @@
|
||||
{"fuck": "frick", "f\u00fcck": "frick", "fucker": "falcon", "fucking": "falconing", "dick": "duck", "bitching": "blipping", "lmao": "lmbo", "motherfucker": "motherfricker", "shit": "poop", "bitch": "blip", "hell": "heck", "ass": "butt", "asshole": "butthole", "bastard": "custard", "damn": "dang", "dammit": "dangit", "damnit": "dangit", "cunt": "punt", "biatch": "bleach", "smd": "smp", "bitches": "beaches", "tit": "bit", "tits": "bits", "lmfao": "lmfba", "whore": "princess", "slut": "butt", "shitter": "digger", "penis": "thing", "penises": "things"}
|
||||
{"fuck": "frick", "f\u00fcck": "frick", "fucker": "falcon", "fucking": "falconing", "dick": "duck", "bitching": "blipping", "lmao": "lmbo", "motherfucker": "motherfricker", "shit": "poop", "bitch": "blip", "hell": "heck", "ass": "butt", "asshole": "butthole", "bastard": "custard", "damn": "dang", "dammit": "dangit", "damnit": "dangit", "cunt": "punt", "biatch": "bleach", "smd": "smp", "bitches": "beaches", "tit": "bit", "tits": "bits", "lmfao": "lmfba", "whore": "princess", "slut": "butt", "shitter": "digger", "penis": "thing", "penises": "things", "fucked": "screwed", "dammit" : "dangit", "goddammit": "dangnabbit", "shitty": "poopy", "bitchy": "blippy", "fucky": "screwy", "assy": "butty"}
|
||||
|
||||
@@ -130,7 +130,7 @@ async def on_message(message):
|
||||
]
|
||||
message_string = message.content
|
||||
# regex pattern for stripping out non-alphanumeric and non-spaces
|
||||
pattern = re.compile(r"([^\s\w]|_)+")
|
||||
pattern = re.compile(r"([^\s\w^']|_)+")
|
||||
# Initialize bad word count
|
||||
bad_word_count = 0
|
||||
# Take out everything except alpha-numeric and spaces
|
||||
|
||||
Reference in New Issue
Block a user