mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-26 11:21:23 +00:00
[AB-71] adding templates for anti raid module
changing button style in assignable role place to secondary for better contrast
This commit is contained in:
37
abstracto-modules/anti-raid/pom.xml
Normal file
37
abstracto-modules/anti-raid/pom.xml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<?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>
|
||||||
|
<artifactId>abstracto-modules</artifactId>
|
||||||
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
|
<version>1.2.16-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>anti-raid</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>anti-raid-templates-${project.version}</finalName>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
15
abstracto-modules/anti-raid/src/main/assembly/assembly.xml
Normal file
15
abstracto-modules/anti-raid/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,16 @@
|
|||||||
|
{
|
||||||
|
<#include "moderation_action_color">,
|
||||||
|
<#assign mentionCount=mentionCount/>
|
||||||
|
<#assign memberMention=memberDisplay.memberMention/>
|
||||||
|
"description": "<@safe_include "massPing_mute_notification_embed_description"/>",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "massPing_mute_notification_embed_message_content_field_title"/>",
|
||||||
|
"value": "${messageContent?json_string}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "massPing_mute_notification_embed_message_link_field_title"/>",
|
||||||
|
"value": "[<@safe_include "massPing_mute_notification_embed_message_link_field_value"/>](${messageLink})"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"label": "${role.description?json_string}",
|
"label": "${role.description?json_string}",
|
||||||
"id": "${role.componentId}",
|
"id": "${role.componentId}",
|
||||||
"buttonStyle": "primary",
|
"buttonStyle": "secondary",
|
||||||
<#if role.emoteMarkDown??>
|
<#if role.emoteMarkDown??>
|
||||||
"emoteMarkdown": "${role.emoteMarkDown?json_string}",
|
"emoteMarkdown": "${role.emoteMarkDown?json_string}",
|
||||||
</#if>
|
</#if>
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
<module>invite-filter</module>
|
<module>invite-filter</module>
|
||||||
<module>profanity-filter</module>
|
<module>profanity-filter</module>
|
||||||
<module>voice-channel-context</module>
|
<module>voice-channel-context</module>
|
||||||
|
<module>anti-raid</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
39
translations/anti-raid/pom.xml
Normal file
39
translations/anti-raid/pom.xml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<?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>
|
||||||
|
<artifactId>translations</artifactId>
|
||||||
|
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
||||||
|
<version>1.2.16-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<artifactId>anti-raid</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>anti-raid-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/anti-raid/src/main/assembly/assembly.xml
Normal file
15
translations/anti-raid/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 @@
|
|||||||
|
Anti raid
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The min level of members to get muted automatically because of a mass mention. Only considered when the feature 'experience' is enabled. Default: ${defaultValue}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The channel in which mass ping mutes should be logged to. Currently: ${currentTarget}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
${memberMention} was muted for mentioning ${mentionCount} members.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Message content
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Message link
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Jump!
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
<module>invite-filter</module>
|
<module>invite-filter</module>
|
||||||
<module>profanity-filter</module>
|
<module>profanity-filter</module>
|
||||||
<module>voice-channel-context</module>
|
<module>voice-channel-context</module>
|
||||||
|
<module>anti-raid</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
Reference in New Issue
Block a user