mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-15 20:16:36 +00:00
[AB-84] adding templates for profanity filter
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
<module>webservices</module>
|
<module>webservices</module>
|
||||||
<module>logging</module>
|
<module>logging</module>
|
||||||
<module>invite-filter</module>
|
<module>invite-filter</module>
|
||||||
|
<module>profanity-filter</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
36
abstracto-modules/profanity-filter/pom.xml
Normal file
36
abstracto-modules/profanity-filter/pom.xml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<parent>
|
||||||
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
|
<artifactId>abstracto-modules</artifactId>
|
||||||
|
<version>1.2.8-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>profanity-filter</artifactId>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<finalName>profanity-filter-templates-${project.version}</finalName>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||||
|
<id>zip</id>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>.</outputDirectory>
|
||||||
|
<directory>${project.basedir}/src/main/resources</directory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
<#include "full_member_info">
|
||||||
|
<#include "abstracto_color">,
|
||||||
|
<#include "member_author">
|
||||||
|
<@member_author member=member/>,
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "profanities_response_embed_true_profanities_field_title"/>",
|
||||||
|
"value": "${truePositives?c}",
|
||||||
|
"inline": "true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "profanities_response_embed_false_profanities_field_title"/>",
|
||||||
|
"value": "${falsePositives?c}",
|
||||||
|
"inline": "true"
|
||||||
|
}<#if recentPositiveReports?size gt 0>
|
||||||
|
,
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"value": "",
|
||||||
|
"inline": "true"
|
||||||
|
},
|
||||||
|
<#list recentPositiveReports as report><#assign report=report>
|
||||||
|
{
|
||||||
|
<#assign reportIndex>${report?index + 1}</#assign>
|
||||||
|
"name": "<@safe_include "profanities_response_embed_true_profanities_report_field_value"/>",
|
||||||
|
"value": "[<@safe_include "profanities_response_embed_true_profanities_link_field_title"/>](${report.jumpUrl})",
|
||||||
|
"inline": "true"
|
||||||
|
}<#sep>,</#list>
|
||||||
|
</#if>
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
<#include "full_member_info">
|
||||||
|
<#include "abstracto_color">,
|
||||||
|
"description": "<@safe_include "profanityListener_report_embed_description"/>",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "profanityListener_report_embed_member_field_title"/>",
|
||||||
|
"value": "<@full_member_info member=profaneMessage.member/>",
|
||||||
|
"inline": "true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "profanityListener_report_embed_message_link_field_title"/>",
|
||||||
|
"value": "[${profaneMessage.channel.name?json_string}](${profaneMessage.jumpUrl?json_string})",
|
||||||
|
"inline": "true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "profanityListener_report_embed_profanity_type_field_title"/>",
|
||||||
|
"value": "${profanityGroupKey}",
|
||||||
|
"inline": "true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "profanityListener_report_embed_message_content_field_title"/>",
|
||||||
|
"value": "${profaneMessage.contentRaw}",
|
||||||
|
"inline": "true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
<module>webservices</module>
|
<module>webservices</module>
|
||||||
<module>logging</module>
|
<module>logging</module>
|
||||||
<module>invite-filter</module>
|
<module>invite-filter</module>
|
||||||
|
<module>profanity-filter</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
36
translations/profanity-filter/pom.xml
Normal file
36
translations/profanity-filter/pom.xml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<parent>
|
||||||
|
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
||||||
|
<artifactId>translations</artifactId>
|
||||||
|
<version>1.2.8-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>profanity-filter</artifactId>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<finalName>profanity-filter-translations-${project.version}</finalName>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
15
translations/profanity-filter/src/main/assembly/assembly.xml
Normal file
15
translations/profanity-filter/src/main/assembly/assembly.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||||
|
<id>zip</id>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>.</outputDirectory>
|
||||||
|
<directory>${project.basedir}/src/main/resources</directory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Shows a overview over the profanities of a member
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
Shows the profanities of a member, split into true and false profanities. True profanities were confirmed by the profanity vote.
|
||||||
|
Additionally, the 3 most recent profanity reports are displayed (if there are any)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The member to show profanities for.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
False positives
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
True positives
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Link
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity report ${reportIndex}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Messages getting checked for profanities
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity filter
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity filter
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The amount of votes necessary to decide a profanity report. Default: ${defaultValue}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The channel in which detected profanities should be logged to. Currently: ${currentTarget}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity might have been used
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Member
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Message content
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Message link
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Profanity type
|
||||||
Reference in New Issue
Block a user