Rules can be used to automate the moderation process. Go to Console → Settings → Rules to manage rules of your website.
Think of moderation rules as if
conditions.
If
something
(Type) matchesa given value
(Value),an action
(Action) will take place.
The type of the rule. Basically, defined what is matched to the condition. Hyvor Talk has 7 rule types:
Type | Value | Description | Excuted on |
---|---|---|---|
Comment word matches | string | Checks if words in the comment matches | Create/edit |
Comment link domain matches | number | Checks if the domain name of any of the links in the comment matches | Create/edit |
User name matches | string | Checks if the user's display name or user name matches | Create/edit |
Comment link count exceeds | number | Checks if the number of links in the comment is greater than | Create/edit |
Flags exceeds | number | Checks if the number of flags of the comment is greater than | Flag |
Downvotes exceeds | number | Checks if the number of downvotes of the comment is greater than | Vote |
Upvotes exceeds | number | Checks if the number of upvotes of the comment is greater than | Vote |
A value is given by moderators to match with the data of that type. If the match is successful, the given action will be executed.
All the numerical values should be equal to or greater than 0.
String values allow you to define multiple comma-separated values. Each value can contain any valid PCRE regex. However, if you use regex, limit it to basic regex, such as *
, .
, and [0-9]
, to avoid conflicts. String matching is case-insensitive. Examples:
hello
- matches if the value is hello
hel.*
- matches if the comment contains a word that starts with hel
hello,hi
- matches if the comment contains the word hello
or hi
Note: Currently, it is only possible to match single words with the string type. For example, it is not possible to match "hello world" together.
There are 4 actions for each type.
See moderation docs to learn more about comment statuses.
Rules are executed on each comment based on the priority. High priority rules will be executed first. If a rule is matched and the action is called, the other rules are ignored.
Here are some common use cases of moderation rules.
When a comment matches a rule, we keep a record of it. You can see these in Console → Comments along with other moderation actions.