automod-toggle is an app that allows subreddit moderators to add AutoModerator rules that will be automatically toggled on and off based on a set schedule. This is useful for subreddits that want to have different rules enabled/disabled at scheduled intervals.
Adding a new toggled rule is pretty straightforward:
Navigate to the main page of your subreddit and find the "About Community" the sidebar on the right of the page.

To the left of the "Mod Tools" button, you will see "AutoMod Toggle" in the dropdown menu. This is called the subreddit context menu.

You should see a form appear like this:

There are 4 fields to fill out:
0 0 * * * would toggle the
rule on at midnight every day. More information on cron schedules can be found in
the Cron Expressions section at the bottom of the About section.1 hour, 12 hours, 3 days, 1 week, etc.type: submission
action: remove
The following rule would be invalid:# type: submission
# action: remove
If you need a rule to be disabled for a specific time frame, consider inverting the schedule. See
the Examples
at the bottom of the About section for some examples. The rule will be automatically commented out when it is toggled
off. You can add multiple rules seperated by ---. You can find more information on AutoModerator
rules here.To edit a rule, you can modify it in the AutoModerator configuration wiki page. Refrain from modifying the rule while it is toggled off (commented out) as it may cause the rule to be toggled on in a bad state. It is strongly recommended to only edit the rule when it is not commented out. Note: do not edit the lines above and below the rule as it will break the toggling functionality.
To delete a rule, navigate to the subreddit context menu and use the "Remove AutoModerator Toggled Block" option. This will remove the rule from the AutoModerator configuration and cancel the toggling schedule.
WARNING: Do not manually remove it from the AutoModerator configuration wiki page. This will cause the app to try and toggle the rule on and off and may cause issues.
Cron expressions are used to define a schedule for something to happen. In this app, it is used to define the time that a rule will be toggled on. The duration will determine how long the rule will stay enabled. The time is based on Universal Coordinated Time (UTC). A great tool to help you understand and build cron expressions is Cron Expression Generator & Explainer.
A cron expression is a string that is made up of 5 fields that represent the following:
* * * * *
| | | | |
| | | | +---- Day of the week (0 - 7) (Sunday is 0 or 7, Monday is 1, Tuesday is 2 and so on)
| | | +------ Month of the year (1 - 12)
| | +-------- Day of the month (1 - 31)
| +---------- Hour of the day (0 - 23)
Each field can be a one of the following (lets use the day of the week field as an example):
5 (Every Friday)1-5 (Every day-of-week from Monday through Friday)1,3,5 (Every Monday, Wednesday, and Friday)* (Every day of the week)*/2 (Every 2nd day of the week. This would be equivalent to Sunday, Tuesday, Thursday, and Saturday.)1-5/2 (every 2nd value from 1 to 5. This would be equivalent to Monday, Wednesday, and Friday.)The following examples are in the UTC timezone.
0 0 * * *
0 6 * * 1
0 6 * * 1,3
0 6 * * *
0 0 1 * *
Here are some examples of how you might use the app to schedule rules.
Let's say you need a rule that is enabled every night from 12am to 8am CST. You would fill out the form like this:
Night Rule0 6 * * *8 hoursLet's say you need a rule that is enabled every Monday, Wednesday, and Friday at 12am CST for 24 hours. You would fill out the form like this:
MWF Rule0 6 * * 1,3,524 hoursLet's say you need a rule that enabled from Thursday 5pm CST (11pm UTC) to Saturday at 12am CST (6am UTC). You would fill out the form like this:
Friday Rule59 22 * * 4 This is off by 1 minute to avoid the rule being toggled off and on at the same time.31 hoursBut you also want a rule that is active for the remainder of week (the inverse of the previous rule). You would fill out the form like this:
Non-Friday Rule0 6 * * 6137 hoursIn this example, the Friday Rule would be enabled every Thursday at 5pm CST (11pm UTC) and stay enabled until Saturday
at 12am CST (6am UTC). The Non-Friday Rule would be enabled every Saturday at 12am CST (6am UTC) and stay enabled for
137 hours (the duration until Thursday at 5pm CST (11pm UTC)).
If you have any feedback or suggestions for AutoModerator Toggle, file a bug report or feature request on the GitHub page.
Lil_SpazJoekp
CreatorApp identifier
automod-toggle
Version
1.1.3
Last updated
Dec 19, 2024
Send feedback