GrafeasGroup / blossom

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

Add command to force unclaim a post from a user #446

Closed TimJentzsch closed 2 years ago

TimJentzsch commented 2 years ago

Relevant issue: Closes #417

Description:

This adds a new Slack command, @Blossom unclaim <reddit_url>, which will forcably unclaim the given submission from the user.

It is confirmed that the submission is claimed (and not completed), then a message is sent in response. It contains the submission title, subreddit and the user to unclaim from, as well as two buttons to either confirm or cancel the action. When confirmed, the submission is silently unclaimed from the user and the Slack message updated in confirmation.

NOTE: This introduces a new UNCLAIM_REDDIT_FLAIR_ID env variable that needs to be set.

Checklist: