Halve the offsite notifs spam (#83)

don't notify for /u/Automoderator messages

Co-authored-by: official-techsupport <official_techsupport@protonmail.com>
Reviewed-on: rDrama/rDrama#83
Co-authored-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>
Co-committed-by: official-techsupport <official-techsupport@noreply.fsdfsd.net>
master
official-techsupport 2023-01-13 11:36:10 +00:00 committed by Aevann
parent f133868215
commit 0f4e66c070
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ def get_mentions(cache:Cache, queries:Iterable[str], reddit_notifs_users=False):
for thing in data:
if thing['subreddit'] in exclude_subreddits: continue
if 'bot' in thing['author'].lower(): continue
if 'AutoModerator' == thing['author']: continue
after = max(after, thing["created_utc"]) if thing["created_utc"] else after
if kind == 'comment':
body = thing["body"].replace('>', '> ')