From ace38ae0c7a05e4dea92e130b416b184c8b469c0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 24 Mar 2024 19:35:39 +0200 Subject: [PATCH] skip spam --- files/helpers/offsite_mentions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/offsite_mentions.py b/files/helpers/offsite_mentions.py index 646e87f32..0edf2dac3 100644 --- a/files/helpers/offsite_mentions.py +++ b/files/helpers/offsite_mentions.py @@ -131,6 +131,7 @@ def soyjak_mentions_task(): for thing in data: text = f'

{thing["comment"]}

' if 'erdrama' in text.lower(): continue + if 'rdrama won' in text.lower(): continue permalink = thing['url'] text = f'New site mention\n\n{permalink}\n\n{text}' created_utc = int(time.mktime(time.strptime(thing['date'].split('.')[0], "%Y-%m-%dT%H:%M:%S")))