mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-04 00:37:19 +00:00
Compare commits
21 Commits
templates-
...
templates-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
049e5b0a1c | ||
|
|
1241571048 | ||
|
|
f6ed141328 | ||
|
|
d58633803c | ||
|
|
8a1c2a595f | ||
|
|
42e17c2251 | ||
|
|
dc268ac643 | ||
|
|
5da19ef286 | ||
|
|
e392219f4c | ||
|
|
379d633b22 | ||
|
|
67ed830920 | ||
|
|
0e9071945d | ||
|
|
34fbf8aea1 | ||
|
|
bd72f93e1f | ||
|
|
a41045e5fd | ||
|
|
a8f256827c | ||
|
|
388bea7859 | ||
|
|
61dd7ee589 | ||
|
|
b6dfca2266 | ||
|
|
30eadf6352 | ||
|
|
e505b181e6 |
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
<#macro member_author member> "author": { "name": "<@member_user_name member=member/>", "avatar": "${member.user.effectiveAvatarUrl}" }</#macro>
|
||||
<#macro member_display_author member> "author": { "name": "<@member_display_user_name member=member/>", "avatar": "<@member_display_avatar member=member/>" }</#macro>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<#macro member_display_avatar member><#if member.memberAvatarUrl?has_content>${member.memberAvatarUrl?json_string}<#else>${member.userAvatarUrl?json_string}</#if></#macro>
|
||||
@@ -1 +1,2 @@
|
||||
<#macro member_user_name member>${member.effectiveName?json_string}#${member.user.discriminator}</#macro>
|
||||
<#macro member_display_user_name member><#if member.nickname?has_content>${member.nickname?json_string}<#else>${member.userName?json_string}</#if>#${member.discriminator}</#macro>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "addProfanityRegex_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "addToChannelGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "clearCache_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "createChannelGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "createProfanityGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "deleteChannelGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "deleteProfanityGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "disableChannelGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "disableFeature_available_features_text">"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "disableFeature_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "disableMode_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "disablePosttarget_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "enableChannelGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "enableFeature_available_features_text">"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2,7 +2,8 @@
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "enableFeature_feature_dependencies_text">"
|
||||
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "enableFeature_feature_dependencies_text"><#if validationText?has_content>
|
||||
${validationText}</#if>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "enableFeature_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "enableMode_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "enablePosttarget_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
<#assign templateKey=templateKey>
|
||||
<#assign serverId=guild.id>
|
||||
<#include "getCustomTemplate_file_name_text">
|
||||
@@ -1,4 +1,9 @@
|
||||
{
|
||||
<#assign templateKey=templateKey>
|
||||
"additionalMessage": "<@safe_include "getCustomTemplate_response_embed_text"/>"
|
||||
"additionalMessage": "<@safe_include "getCustomTemplate_response_embed_text"/>",
|
||||
"files": [
|
||||
{
|
||||
"fileName": "${templateKey}.ftl"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,9 @@
|
||||
{
|
||||
<#assign templateKey=templateKey>
|
||||
"additionalMessage": "<@safe_include "getTemplate_response_embed_text"/>"
|
||||
"additionalMessage": "<@safe_include "getTemplate_response_embed_text"/>",
|
||||
"files": [
|
||||
{
|
||||
"fileName": "${templateKey}.ftl"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "makeAffected_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "makeImmune_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "posttarget_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "removeFromChannelGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "removeProfanityRegex_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "resetConfig_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "resetTemplate_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "setConfig_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "setEmote_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "setTemplate_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<#assign featureName><#include "feature_${featureConfig.feature.key}"></#assign><#include "feature_setup_cancellation_message">
|
||||
<#assign featureName><#include "feature_${featureKey}"></#assign><#include "feature_setup_cancellation_message">
|
||||
@@ -1 +1 @@
|
||||
<#assign featureName><#include "feature_${featureConfig.feature.key}"></#assign><#include "feature_setup_completion_message">
|
||||
<#assign featureName><#include "feature_${featureKey}"></#assign><#include "feature_setup_completion_message">
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<#list actionConfigs as actionConfig><#assign actionConfig=actionConfig/>
|
||||
<#assign param=actionConfig.object.templateModel>
|
||||
<@safe_include "${actionConfig.object .templateName}"/>
|
||||
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
],
|
||||
"buttons": [
|
||||
{
|
||||
"label": "<@safe_include "feature_setup_confirmation_confirm_button_title"/>",
|
||||
"id": "${confirmButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "<@safe_include "feature_setup_confirmation_cancel_button_title"/>",
|
||||
"id": "${cancelButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
<#list actionConfigs as actionConfig><#assign actionConfig=actionConfig/>
|
||||
<#assign param=actionConfig.templateModel>
|
||||
<@safe_include "${actionConfig.templateName}"/>
|
||||
|
||||
</#list>
|
||||
@@ -1 +1 @@
|
||||
<#assign postTargetKey>${param.postTargetKey}</#assign><#assign channel>${param.channel.asMention}</#assign><@safe_include "feature_setup_post_target_action_display"/>
|
||||
<#assign postTargetKey>${param.postTargetKey}</#assign><#assign channel>${param.channelAsMention}</#assign><@safe_include "feature_setup_post_target_action_display"/>
|
||||
@@ -5,6 +5,7 @@
|
||||
"description": "
|
||||
<#list effects as effect>
|
||||
`${effect}` <@safe_include "effect_type_${effect}_description"/>
|
||||
<#else><#include "showEffects_response_no_effects">
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign parameterName=model.parameterName>
|
||||
<#include "slash_command_parameter_missing_exception_text">
|
||||
35
abstracto-modules/custom-command/pom.xml
Normal file
35
abstracto-modules/custom-command/pom.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>custom-command</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<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>custom-command-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,3 @@
|
||||
{
|
||||
"additionalMessage": "${additionalText?json_string}"
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign rolls=rolls?join(", ")>
|
||||
<#assign uniqueNumbers=uniqueNumbers>
|
||||
<#assign bid=bid>
|
||||
<#assign toBank=toBank>
|
||||
<#assign toJackpot=toJackpot>
|
||||
<#assign currentJackpot=currentJackpot>
|
||||
<#assign won=won>
|
||||
<#if won>
|
||||
"description": "<@safe_include "creditGamble_response_win_text.ftl"/>"
|
||||
<#else>
|
||||
"description": "<@safe_include "creditGamble_response_text"/>"
|
||||
</#if>
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<#assign credits=entry.credits>
|
||||
<#assign rank=entry.rank>
|
||||
<#assign userId=entry.memberDisplay.userId>
|
||||
<#assign memberDisplay><#if entry.member?has_content><@member_user_name member=entry.member/><#else>${userId?c}</#if></#assign>
|
||||
#${rank} - ${credits} credits - ${memberDisplay}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<#list entries as entry><#assign entry=entry><@safe_include "creditLeaderboard_rank_entry"/>\n</#list>
|
||||
<#assign entry=ownRank><@safe_include "creditLeaderboard_rank_entry"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<#include "creditLeaderboard_no_user_found">"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign credits=entry.credits>
|
||||
<#assign rank=entry.rank>
|
||||
<#assign userId=entry.memberDisplay.userId>
|
||||
<#assign memberDisplay><#if entry.member?has_content><@member_user_name member=entry.member/><#else>${userId?c}</#if></#assign>
|
||||
"description": "<@safe_include "credits_response_description"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign currentCredits=currentCredits>
|
||||
<#assign rank=leaderboardPosition>
|
||||
<#assign gainedCredits=gainedCredits>
|
||||
"description": "<@safe_include "payday_response_text"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<#list rows as row><#assign row=row>
|
||||
<#if row?index = 1>><#else> </#if><#list row as item><#assign item=item>${item}</#list>
|
||||
</#list>
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
<#assign newCredits=newCredits>
|
||||
<#assign bid=bid>
|
||||
<#assign oldCredits=oldCredits>
|
||||
<#assign winnings><#if winnings gt 0>${winnings}<#else>0</#if></#assign>
|
||||
<#assign factor=factor>
|
||||
<#assign rows=rows>
|
||||
<#assign outcomeKey=outComeKey>
|
||||
<#assign board><#include "slots_board_display"/></#assign>
|
||||
"additionalMessage": "~~\n~~<@safe_include "slots_outcome_description"/>"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "transferCredits_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "not_enough_wealth_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign retryDuration>${fmtDuration(model.tryAgainDuration)}</#assign>
|
||||
<#include "payday_cooldown_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign retryDuration>${fmtDuration(model.tryAgainDuration)}</#assign>
|
||||
<#include "payday_cooldown_exception_text">
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>experience-tracking</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "disableExpForRole_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "disableExpGain_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "enableExpForRole_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "enableExpGain_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "expScale_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "setExpRole_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>moderation</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.4.3</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -16,10 +16,12 @@
|
||||
"name": "<@safe_include "ban_log_banning_user_field_title"/>",
|
||||
"value": "<@full_member_info member=banningMember/>"
|
||||
},
|
||||
<#if commandMessage?has_content>
|
||||
{
|
||||
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
|
||||
"value": "[${commandMessage.channel.name?json_string}](${commandMessage.jumpUrl})"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "ban_log_reason_field_title"/>",
|
||||
"value": "${reason?json_string}"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "ban_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "decayAllWarnings_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "decayWarnings_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "deleteNote_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "deleteWarning_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "editInfraction_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
<#assign exitOnly=innerModel.entries?size lt 5/>
|
||||
"embedConfigs": [
|
||||
<#assign chunks=innerModel.entries?chunk(4)>
|
||||
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "infractions_response_entry"><#sep>,</#list>
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"restrictUser": true
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<#include "format_instant">
|
||||
<#assign decayed=infraction.decayed/>
|
||||
<#assign infractionId=infraction.infractionId/>
|
||||
<#assign type=infraction.type/>
|
||||
<#assign reason=infraction.reason/>
|
||||
<#assign infractionUserText><#if infraction.infractionUser.memberMention??>${infraction.infractionUser.memberMention}(${infraction.infractionUser.userId?c})<#else>${infraction.infractionUser.userId?c}</#if></#assign>
|
||||
<#assign infractionCreatorUserText><#if infraction.infractionCreationUser.memberMention??>${infraction.infractionCreationUser.memberMention}(${infraction.infractionCreationUser.userId?c})<#else>${infraction.infractionCreationUser.userId?c}</#if></#assign>
|
||||
<#assign infractionDate><@format_instant_date_time instant=infraction.creationDate/></#assign>
|
||||
<#assign parameterText><#list infraction.parameters?keys as key><@safe_include "infraction_parameter_${type}_${key}_label"/>: ${infraction.parameters[key]}</#list></#assign>
|
||||
<#include "infractions_infraction_entry_text">
|
||||
|
||||
<#if decayed>
|
||||
<#assign decayDate><@format_instant_date_time instant=infraction.decayDate/></#assign>
|
||||
<#include "infractions_infraction_is_decayed">
|
||||
</#if>
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "moderation_action_color">,
|
||||
"description": "<@safe_include "infractions_no_infractions_found_text"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<#list row as infraction><#assign infraction=infraction><@safe_include "infractions_infraction_entry"/>\n</#list>"
|
||||
}
|
||||
],
|
||||
"buttons": [
|
||||
<#include "paginator_buttons">
|
||||
]
|
||||
}
|
||||
@@ -17,10 +17,12 @@
|
||||
"name": "<@safe_include "kick_log_kicking_user_field_title"/>",
|
||||
"value": "<@full_member_info member=member/>"
|
||||
},
|
||||
<#if messsage?has_content>
|
||||
{
|
||||
"name": "<@safe_include "kick_log_jump_link_field_title"/>",
|
||||
"value": "[${channel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "kick_log_reason_field_title"/>",
|
||||
"value": "${reason?json_string}"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "kick_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,14 @@
|
||||
{
|
||||
<@member_author member=mutedUser/>,
|
||||
"title": {
|
||||
"title": "<@safe_include "mute_log_title"/>"
|
||||
<#if durationChanged>
|
||||
"title": "<@safe_include "mute_log_title_mute_changed"/>"
|
||||
<#elseif muteEnded>
|
||||
"title": "<@safe_include "mute_log_title_unmuted"/>"
|
||||
<#elseif muted>
|
||||
"title": "<@safe_include "mute_log_title_muted"/>"
|
||||
</#if>
|
||||
|
||||
},
|
||||
<#include "moderation_action_color">,
|
||||
"fields": [
|
||||
@@ -14,18 +21,23 @@
|
||||
"name": "<@safe_include "mute_log_muted_user_field_title"/>",
|
||||
"value": "<@full_member_info member=mutedUser/>"
|
||||
},
|
||||
<#if mutingUser?has_content>
|
||||
{
|
||||
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
|
||||
<#if muted>
|
||||
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
|
||||
<#elseif muteEnded>
|
||||
"name": "<@safe_include "mute_log_unmuting_user_field_title"/>",
|
||||
</#if>
|
||||
"value": "<@full_member_info member=mutingUser/>"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
|
||||
"value": "[${contextChannel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
}
|
||||
</#if>
|
||||
<#if reason?has_content>,
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
|
||||
"value": "${reason?json_string}"
|
||||
},
|
||||
}
|
||||
</#if>
|
||||
<#if muted && !durationChanged>,
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
|
||||
"value": "${fmtDuration(muteDuration)}"
|
||||
@@ -34,11 +46,18 @@
|
||||
"name": "<@safe_include "mute_log_muted_until_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=muteTargetDate/>"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "<@safe_include "mute_log_mute_id_footer"/>"
|
||||
},
|
||||
"timeStamp": "${muteDate}"
|
||||
</#if>
|
||||
<#if durationChanged>,
|
||||
{
|
||||
"name": "<@safe_include "mute_log_new_mute_time_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=muteTargetDate/>"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_old_mute_time_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=oldMuteTargetDate/>"
|
||||
}
|
||||
</#if>
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "mute_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
<#include "full_member_info">
|
||||
<#include "format_instant">
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#if unMutedUser?has_content>
|
||||
<#include "member_author">
|
||||
<@member_author member=unMutedUser/>,
|
||||
</#if>
|
||||
"title": {
|
||||
"title": "<@safe_include "unMute_log_title"/>"
|
||||
},
|
||||
<#include "moderation_action_color">,
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "unMute_log_unmuted_user_field_title"/>",
|
||||
<#if unMutedUser?has_content>
|
||||
"value": "<@full_member_info member=unMutedUser/>"
|
||||
<#else>
|
||||
"value": "<@safe_include "user_left_server"/> (${mute.mutedUser.userReference.id?c})"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_muting_user_field_title"/>",
|
||||
<#if mutingUser?has_content>
|
||||
"value": "<@full_member_info member=mutingUser/>"
|
||||
<#else>
|
||||
"value": "<@safe_include "user_left_server"/> (${mute.mutingUser.userReference.id?c})"
|
||||
</#if>
|
||||
},
|
||||
<#if messageUrl??>
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
|
||||
"value": "[Link](${messageUrl})"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "unMute_log_muted_since_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=mute.muteDate/>"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
|
||||
"value": "${fmtDuration(muteDuration)}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
|
||||
"value": "${mute.reason?json_string}"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
<#assign muteId=mute.muteId.id/>
|
||||
"text": "<@safe_include "mute_log_mute_id_footer"/>"
|
||||
},
|
||||
"timeStamp": "${unmuteDate}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "purge_initial_message_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "slowmode_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "unBan_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "unMute_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "userNote_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -19,10 +19,12 @@
|
||||
"value": "<@full_member_info member=member/>"
|
||||
},
|
||||
</#if>
|
||||
<#if message?has_content>
|
||||
{
|
||||
"name": "<@safe_include "warn_log_warn_location_field_title"/>",
|
||||
"value": "[${channel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "warn_log_warn_reason_field_title"/>",
|
||||
"value": "${reason?json_string}"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "warn_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<#include "mute_role_has_not_been_setup_exception_text">
|
||||
@@ -1 +0,0 @@
|
||||
<#include "note_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "user_note_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "warn_not_found_exception_text">
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "reactionReport_cooldown_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"id": "${modalId}",
|
||||
"title": "<@safe_include "reactionReport_modal_title"/>",
|
||||
"textInputs": [
|
||||
{
|
||||
"placeHolder": "<@safe_include "reactionReport_modal_context_placeholder"/>",
|
||||
"id": "${inputComponentId}",
|
||||
"position": 1,
|
||||
"label": "<@safe_include "reactionReport_modal_context_label"/>",
|
||||
"style": "paragraph",
|
||||
"maxLength": 2000,
|
||||
"required": false
|
||||
}
|
||||
]
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user