Skip to content

Commit

Permalink
Moderation
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Dec 23, 2024
1 parent 7d21482 commit fc5b557
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions banned-club.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2514,6 +2514,8 @@ VALUES
('shedtwt'),
('she''s mine now bitch'),
('she took the fucking kids'),
('shit skin'),
('shitskin'),
('shooter'),
('shoot me'),
('shota'),
Expand Down
2 changes: 1 addition & 1 deletion service/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

PORT = sys.argv[1] if len(sys.argv) >= 2 else 5443

MAX_INTROS_PER_DAY = 35
MAX_INTROS_PER_DAY = 50

# TODO: Tables to migrate to monolithic DB:
#
Expand Down
7 changes: 7 additions & 0 deletions service/chat/offensive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"c+v+m+": "cum",
"c0ck": "cock",
"c0cksucker": "cocksucker",
"cok": "cock",
"cvmming": "cumming",
"cvms": "cums",
"cvmshot": "cumshot",
Expand All @@ -43,11 +44,13 @@
"p0rn": "porn",
"pissin": "pissing",
"r": "are",
"sxy": "sexy",
"u": "you",
"ur": "your",
"urself": "yourself",
"wh0re": "whore",
"wh0res": "whores",
"a[s5\\$]{2}": "ass",
}


Expand Down Expand Up @@ -204,6 +207,7 @@
"foot job",
"footjob",
"fuck you",
"fuck your ass",
"fuck your asshole",
"fuck your brains out",
"fuck your face",
Expand Down Expand Up @@ -244,6 +248,7 @@
"hit it raw",
"hoe",
"hoes",
"homo",
"horniest",
"horny",
"hotsex",
Expand Down Expand Up @@ -376,8 +381,10 @@
"shag",
"shagging",
"shemale",
"shit skin",
"shitdick",
"shitfuck",
"shitskin",
"shota",
"shotacon",
"skank",
Expand Down
3 changes: 3 additions & 0 deletions service/chat/offensive/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
class TestIsOffensive(unittest.TestCase):

def test_offensive_strings(self):
self.assertTrue(
is_offensive("fuk your as$"))

self.assertTrue(
is_offensive("go fk urself please"))

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 @@ -6,7 +6,7 @@ cd "$script_dir"
source ../util/setup.sh
mapfile -t greetings < ../fixtures/greetings.txt

max_intros_per_day=35
max_intros_per_day=50

set -xe

Expand Down

0 comments on commit fc5b557

Please sign in to comment.