skip spam

pull/225/head
Aevann 2024-03-24 19:35:39 +02:00
parent 60094a22cd
commit ace38ae0c7
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ def soyjak_mentions_task():
for thing in data:
text = f'<blockquote><p>{thing["comment"]}</p></blockquote>'
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")))