mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-19 13:10:22 +00:00
[AB-217] adding profanity regex related templates
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
<#include "success_color">,
|
||||||
|
"description": "
|
||||||
|
<#list profanityGroups as profanityGroup><#assign profanityGroup=profanityGroup/>
|
||||||
|
<#assign profanityGroupName>${profanityGroup.groupName?json_string}</#assign>
|
||||||
|
<@safe_include "showProfanityConfig_group_description"/>
|
||||||
|
|
||||||
|
<#list profanityGroup.profanities as profanity>
|
||||||
|
<#assign profanityRegexName>${profanity.regexName?json_string}</#assign><#assign profanityRegex>${profanity.regex?json_string}</#assign><#if profanity.replacement??><#assign profanityReplacement>${profanity.replacement?json_string}</#assign></#if>
|
||||||
|
<@safe_include "showProfanityConfig_profanity_regex_display"/>
|
||||||
|
|
||||||
|
<#else>
|
||||||
|
<@safe_include "showProfanityConfig_no_profanity_regex"/>
|
||||||
|
</#list>
|
||||||
|
<#else>
|
||||||
|
<@safe_include "showProfanityConfig_no_profanity_groups"/>
|
||||||
|
</#list>
|
||||||
|
"
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "profanity_group_exists_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "profanity_group_not_found_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "profanity_regex_exists_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "profanity_regex_not_found_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Creates a profanity regex with optional replacement in a profanity group
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
This command can be used to create a profanity regex which can be used to detect and replace profanities (or any text).
|
||||||
|
A profanity regex consists of a profanity name (to identify it), a [regex](https://docs.oracle.com/javase/tutorial/essential/regex/) and an optional replacement.
|
||||||
|
The name of a regex is unique within its profanity group.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name of the profanity group this profanity regex should be added to
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name which should identify this regex
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The regex which should find the words to replace
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The optional replacement string, if not provided, found text will be replaced with ""
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Creates a profanity group
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
This command can be used to create a profanity group. This profanity group can then be used to group profanity regexes together.
|
||||||
|
The name needs to be unique per server and deleting the group deletes all of the profanities in this group.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name which should identify this profanity group on this server
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Deletes a profanity group
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Deletes the profanity group and all the profanity regexes which are associated with it.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name of the profanity group to delete
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Deletes a profanity regex
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Deletes a profanity regex in a specified profanity group identified by its name.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name of the profanity group in which the profanity regex to delete is in
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name of the profanity regex to delete
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Shows an overview about the current profanity check configuration
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
This command is used to show the profanity groups and the profanity regexes in this server.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity group: ${profanityGroupName}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
No configuration
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
No profanity regexes
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
${profanityRegexName}: `${profanityRegex}` <#if profanityReplacement??>replaced with ${profanityReplacement}</#if>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity group exists already.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity group not found
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity regex already exists
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity regex not found
|
||||||
Reference in New Issue
Block a user