GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Add watchlist for users (and subreddits?) #104

Open Pf441 opened 3 years ago

Pf441 commented 3 years ago

Some users require a specific surveillance, especially if they transcribe several posts with major issues. Since we have already a "random post ping" feature, it would be useful to over-ride the random poll and trigger the notification to Slack regardless of the random value if the user is in a watchlist. This feature could also be useful if we need to check also transcriptions from certain subreddits in the future (repeated formatting issues, ...).

Now: if random() > threshold: trigger_notification_to_slack(message)

Proposed:

if random() > threshold or message.user in watchlist_users or message.subreddit in watchlist_subreddits: trigger_notification_to_slack(message)

This feature requires also Slack hooks to allow the addition (or removal) of users from the watchlist through a specific command.

P.S.: the "subreddit watchlist" feature is less important than the "user watchlist" one.