Skip to content

Commit

Permalink
Moderation 2025-01-04
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Jan 3, 2025
1 parent 9a8bcac commit 47f48d1
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 19 deletions.
11 changes: 8 additions & 3 deletions antiabuse/antirude/profile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import re

_strings = [
"1488",
"cervix",
"chink",
"chinks",
Expand All @@ -12,11 +13,13 @@
"coalburners",
"coon",
"cunny",
"cunny",
"cunny-pilled",
"cunnypilled",
"cutmaxxer",
"dicked",
"dicking",
"edtwt",
"groom me",
"heil",
"kike",
"kill my self",
Expand All @@ -32,10 +35,10 @@
"kys",
"loli",
"lolicon",
"nigg",
"nigga",
"nigge",
"niggas",
"nigger",
"niggerlicious",
"niggers",
"rape",
"rapeable",
Expand All @@ -55,6 +58,8 @@
"tnd",
"troon",
"troons",
"unrape",
"unrapeable",
"you will never be a woman",
"you'll never be a woman",
"ywnbaw",
Expand Down
25 changes: 15 additions & 10 deletions antiabuse/normalize/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,46 @@
"a[s5$]{2}": "ass",
"b": "be",
"btch": "bitch",
"c+u+m+": "cum",
"c+v+m+": "cum",
"c0ck": "cock",
"c0cksucker": "cocksucker",
"cok": "cock",
"c+[uv]+m+": "cum",
"c+[uv]+m+s+": "cums",
"cvmming": "cumming",
"cvms": "cums",
"cvmshot": "cumshot",
"ejakulate": "ejaculate",
"fck": "fuck",
"fcked": "fucked",
"fck": "fuck",
"fcking": "fucking",
"fk": "fuck",
"fked": "fucked",
"fk": "fuck",
"fking": "fucking",
"fuckin": "fucking",
"fuk": "fuck",
"fuked": "fucked",
"fuk": "fuck",
"fuking": "fucking",
"fvck": "fuck",
"fvcked": "fucked",
"fvck": "fuck",
"fvcking": "fucking",
"l0li": "loli",
"ngger": "nigger",
"nggr": "nigger",
"nigge": "nigger",
"nigg": "nigger",
"p0rn": "porn",
"p[e3]d[o0]": "pedo",
"pissin": "pissing",
"r[a4]p[e3]-?able": "rapeable",
"r[a4]p[e3]": "rape",
"r": "are",
"sxy": "sexy",
"u": "you",
"ur": "your",
"un-?r[a4]p[e3]-?able": "unrapeable",
"un-?r[a4]p[e3]": "unrape",
"urself": "yourself",
"wh0re": "whore",
"ur": "your",
"u": "you",
"wh0res": "whores",
"wh0re": "whore",
}


Expand Down
23 changes: 23 additions & 0 deletions antiabuse/normalize/test_init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import unittest
from antiabuse.normalize import normalize_string

class TestNormalizeString(unittest.TestCase):

def test_normalize_string(self):
self.assertEqual(normalize_string("fu"), "unrapeable")

self.assertEqual(normalize_string("ccvvvmmm"), "cum")

self.assertEqual(normalize_string("r4p3"), "rape")

self.assertEqual(normalize_string("a55"), "ass")

self.assertEqual(normalize_string("𝖓𝖎𝖌𝖌𝖊𝖗"), "nigger")

self.assertEqual(normalize_string("𝖓𝖎𝖌𝖌𝖊"), "nigger")

self.assertEqual(normalize_string("unr4pe-able"), "unrapeable")


if __name__ == '__main__':
unittest.main()
19 changes: 19 additions & 0 deletions banned-club.sql
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ VALUES
('breed me'),
('brenton tarrant'),
('brenton tarrant fanclub'),
('brocon'),
('broke ass mf'),
('broke ass nigga'),
('brown people beater'),
Expand Down Expand Up @@ -575,11 +576,13 @@ VALUES
('cum maxxer'),
('cummaxxer'),
('cummaxxing'),
('cummer'),
('cum metal'),
('cummies'),
('cumming'),
('cummm'),
('cummmm'),
('cummy'),
('cumnation'),
('cum on me'),
('cum shot'),
Expand Down Expand Up @@ -614,6 +617,8 @@ VALUES
('cuuum'),
('cyno sexer'),
('dat nigga'),
('dead hooker'),
('dead hooker enthusiast'),
('death'),
('death to america'),
('death to israel'),
Expand Down Expand Up @@ -674,10 +679,12 @@ VALUES
('deport women'),
('dick'),
('dick cheese'),
('dicked'),
('dick enlargement'),
('dickgirl'),
('dick growth club'),
('dickhead'),
('dicking'),
('dick n balls'),
('dick owner'),
('dickriders'),
Expand Down Expand Up @@ -1545,6 +1552,7 @@ VALUES
('i love ass'),
('i love boobs'),
('i love creeps'),
('i love cum'),
('i love dick'),
('i love drinking cum'),
('i love feet'),
Expand Down Expand Up @@ -1959,6 +1967,7 @@ VALUES
('kinda anorexic'),
('kinda horny'),
('kinda retarded'),
('king therapist'),
('kkk'),
('kms'),
('knife play'),
Expand Down Expand Up @@ -2168,18 +2177,22 @@ VALUES
('nigga'),
('nigga beamer'),
('nigga bowser'),
('niggacado'),
('niggacel'),
('nigga chan'),
('nigga gaming'),
('niggagaming'),
('niggah'),
('nigga hater'),
('nigga kun'),
('niggalink'),
('nigga love'),
('niggamaxxing'),
('nigga penis'),
('niggarapist'),
('niggas'),
('niggastyle'),
('niggatech'),
('nigga vaping'),
('nigger'),
('nigger beater'),
Expand Down Expand Up @@ -2423,6 +2436,7 @@ VALUES
('raghead'),
('rag heads'),
('ragheads'),
('rap3 me'),
('rape'),
('rapeable'),
('rapebait'),
Expand All @@ -2431,8 +2445,10 @@ VALUES
('rape bunny'),
('rapebunny'),
('rapebutnotinanindianway'),
('rapechad'),
('raped'),
('rapefag'),
('rapegang'),
('rape in india'),
('rapeinindia'),
('rape in india today'),
Expand Down Expand Up @@ -2467,6 +2483,7 @@ VALUES
('rapetoy'),
('rape victim'),
('rapevictim'),
('rapewaffen'),
('rape women'),
('rapewomen'),
('raping'),
Expand Down Expand Up @@ -2706,6 +2723,7 @@ VALUES
('starvemaxxing'),
('straight sex'),
('straight shota'),
('struggle snuggle'),
('stupid and retarded'),
('stupid faggot little cocksucker'),
('subbiest bitch ever'),
Expand Down Expand Up @@ -2858,6 +2876,7 @@ VALUES
('unless you trynna fuck'),
('uoh'),
('uohhh'),
('uoohh'),
('uoooooooooooooooooooooooooooooooooooooooh'),
('use me'),
('veiny dick'),
Expand Down
2 changes: 1 addition & 1 deletion service/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

class IntroRateLimit(Enum):
NONE = 0
UNVERIFIED = 30
UNVERIFIED = 20
BASICS = 40
PHOTOS = 100

Expand Down
6 changes: 6 additions & 0 deletions service/chat/rude/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@
"beastial",
"beastiality",
"bellend",
"benis",
"bestiality",
"bitch",
"blow job",
"blow jobs",
"blowjob",
"blowjobs",
"boobies",
"breasts",
"bukkake",
"butt fuck",
Expand Down Expand Up @@ -112,6 +114,8 @@
"deep throated",
"deepthroat",
"dick",
"dicked",
"dicking",
"dildo",
"dildos",
"do it raw",
Expand Down Expand Up @@ -418,6 +422,8 @@
"tug job",
"tug-job",
"tugjob",
"unrape",
"unrapeable",
"use me",
"use you",
"vagina",
Expand Down
2 changes: 1 addition & 1 deletion test/functionality4/xmpp-rate-limit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ test_rate_limit () {
}

test_rate_limit \
30 \
20 \
1 \
'<duo_message_blocked id="id999" reason="rate-limited-1day" subreason="unverified-basics"/>'

Expand Down
5 changes: 1 addition & 4 deletions test/unit/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ else
fi

"${sudos[@]}" docker exec "$("${sudos[@]}" docker ps | grep chat- | cut -d ' ' -f 1)" \
python3 -m unittest discover -s antiabuse/antirude

"${sudos[@]}" docker exec "$("${sudos[@]}" docker ps | grep chat- | cut -d ' ' -f 1)" \
python3 -m unittest discover -s antiabuse/antispam
python3 -m unittest discover -s antiabuse

"${sudos[@]}" docker exec "$("${sudos[@]}" docker ps | grep chat- | cut -d ' ' -f 1)" \
python3 -m unittest discover -s service/chat
Expand Down

0 comments on commit 47f48d1

Please sign in to comment.