created by kungming2 on 22/04/2021 at 18:00 UTC
5 upvotes, 0 top-level comments (showing 0)
The release of version v2.2 Laurel brings a new tool for moderators to use: Flair schedule enforcing! (I swapped around the Laurel/Maple versions set out in my roadmap[1].)
1: https://www.reddit.com/r/AssistantBOT/comments/kg3ndg/artemis_future_version_roadmap/
On some subreddits, it's desirable to restrict some types of posts to certain weekdays to "theme" them or prevent the overuse of some kinds of posts. For example, a subreddit may have:
With flair schedule enforcing, Artemis will *remove* a post with a scheduled weekday *unless* it's posted on that specific weekday(s).
1. First off, Artemis has to have the `posts`/"Manage Posts and Comments" moderator permission, which it will already have as part of `Strict` mode. After all, the bot can't remove posts if it doesn't have that authority.
2. Enable advanced configuration[2]. Flair schedule enforcing is an advanced configuration setting[3].
3. Fill out the `flair_schedule` portion of the page and update the bot with those settings.
`flair_schedule` is a dictionary that may have up to seven keys, corresponding to three-letter abbreviations of weekdays in *title case*. That is to say, `Sun`, `Mon`, etc. Note that you can have as few as one or as many as seven weekdays in this dictionary. Please exclude periods (`.`).
2: https://www.reddit.com/r/AssistantBOT/wiki/advanced#wiki_tutorial
3: https://www.reddit.com/r/AssistantBOT/wiki/advanced#wiki_flair_schedule
Each weekday accepts a *list* of *flair IDs* (not CSS classes!). Post flair IDs are easily accessible via New Reddit: go to `new.reddit.com/r/SUBREDDIT/about/postflair` and click `Copy ID` to get the specific flair ID of a single post flair. Flair IDs are always in the form of `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`.
Therefore, a proper `flair_schedule` setting may look something like this:
flair_schedule: Sun: - XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Wed: - XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
A flair ID can be associated with more than one weekday - placing it under `Sat` and `Sun` would restrict it to weekends.
Artemis determines weekdays with a pretty lenient spread - in terms of time zones, it ranges from Auckland, New Zealand (UTC +12/13) to Hawaii (UTC -10), effectively meaning that there are more than 24 hours in a weekday. Therefore, it's possible that a post will be approved when it's slightly before or after the weekday in your own physical area.
For ease of set-up, the boundaries of this spread is not configurable.
Users whose posts are removed by the bot for being on an unscheduled day will get the following message (example provided):
Hey there u/USERNAME,
Thanks for submitting your post to r/SUBREDDIT! This community asks that posts flaired as **Flair** only be submitted on the following weekdays:
* **Saturday, Sunday**
Your post has been removed as it is currently **Wednesday**, and feel free to check out r/SUBREDDIT's community rules for more information. Please re-submit your Flair post on a suitable scheduled weekday and
thank you for stopping by!
There's nothing here!