{{define "cp_automod_legacy"}} {{template "cp_head" .}} {{template "cp_alerts" .}}
{{template "automod_legacy_general" .}}
{{template "automod_legacy_spam" .}}
{{template "automod_legacy_mention" .}}
{{template "automod_legacy_invite" .}}
{{template "automod_legacy_banned_words" .}}
{{template "automod_legacy_banned_websites" .}}
{{template "cp_footer" .}} {{end}} {{define "automod_legacy_general"}}
{{checkbox "Enabled" "automod-enabled" "Enable basic automoderator" .AutomodConfig.Enabled}}

Basic automod

This is the basic automod with limited funcitonality, if you want more flexibility then use automodv2, altough it's quite a bit more complex

The automoderator helps to perform mundane and repetitive duties on servers. It deals with the following cases:

TIP: The ban and kick message from the moderation settings will be used when the bot kicks and bans.

Check out the documentation for more info: docs.yagpdb.xyz/automoderator.

If you need any help setting up a rule, join the support server above.

{{end}} {{define "automod_legacy_spam"}}
{{mTemplate "automod_legacy_common_fields" "Guild" .ActiveGuild "Rule" .AutomodConfig.Spam "Name" "Spam"}}

Number of messages sent within the time frame below for it to be triggered:

The timeframe to check messages from.

Something decent to just protect from raw spam could be five messages within two seconds. Normal users won't come near that, and it would target spammers.

{{end}} {{define "automod_legacy_mention"}}
{{mTemplate "automod_legacy_common_fields" "Guild" .ActiveGuild "Rule" .AutomodConfig.Mention "Name" "Mention"}}

The number of mentions in a message for it to trigger.
If it's set to 5, then someone mentioning five people or more would trigger this.

{{end}} {{define "automod_legacy_invite"}}
{{mTemplate "automod_legacy_common_fields" "Guild" .ActiveGuild "Rule" .AutomodConfig.Invite "Name" "Invite"}}
{{end}} {{define "automod_legacy_links"}}
{{mTemplate "automod_legacy_common_fields" "Guild" .ActiveGuild "Rule" .AutomodConfig.Links "Name" "Links"}}
{{end}} {{define "automod_legacy_banned_words"}}
{{mTemplate "automod_legacy_common_fields" "Guild" .ActiveGuild "Rule" .AutomodConfig.Words "Name" "Words"}}

Built in lists

{{checkbox "Words.BuiltinSwearWords" "Words-BuiltinSwearWords" `Ban builtin swear words (list of swear words here)` .AutomodConfig.Words.BuiltinSwearWords}}

Separate entries by spaces or lines, this is case insensitive and it only checks against words.

{{end}} {{define "automod_legacy_banned_websites"}}
{{mTemplate "automod_legacy_common_fields" "Guild" .ActiveGuild "Rule" .AutomodConfig.Sites "Name" "Sites"}} {{checkbox "Sites.GoogleSafeBrowsingEnabled" "automod-google-safebrowsing" `Enable Google safebrowsing integration` .AutomodConfig.Sites.GoogleSafeBrowsingEnabled}}

Detects sites that contains malware, scams, and other dangerous sites


Seperate entries by spaces or lines
Only type the host. For example, if you want to block Google, you would add google.com, NOT https://google.com.
This will also ban all subdomains of the site, for example, if you ban google.com then fun.google.com will also be banned.

{{end}} {{define "automod_legacy_common_fields"}}
{{checkbox (joinStr "" .Name ".Enabled") (joinStr "" .Name ".Enabled") "Enabled" .Rule.Enabled}}

When this many minutes have passed without any violations, the users violations are forgotten, maximum is one month (44640 minutes).


Punish based on number of violations >:O. (Punishment is disabled if set below 1.)

A warning and message deletion will always be issued if the rule is broken.



{{end}}