Compare commits

..

93 Commits

Author SHA1 Message Date
Sheldan
62e6d50b12 [maven-release-plugin] prepare release templates-1.4.18 2023-07-09 23:16:15 +02:00
Sheldan
c8f2ebe7d7 [AB-98] removing test string 2023-07-09 23:10:38 +02:00
Sheldan
5a63f0a8de [AB-98] adding templates for twitch feature 2023-07-09 23:09:34 +02:00
Sheldan
4810352160 [AB-90] extracting add option button label to template 2023-06-04 21:58:05 +02:00
Sheldan
ee4a39f871 [maven-release-plugin] prepare for next development iteration 2023-06-04 21:16:06 +02:00
Sheldan
4a80d0ca71 [maven-release-plugin] prepare release templates-1.4.17 2023-06-04 21:16:02 +02:00
Sheldan
7e99db3733 [AB-90] adding poll functionality 2023-06-04 21:10:55 +02:00
Sheldan
9373b07c8a [AB-xx] making description for slow mode parameter shorter 2023-05-18 23:33:58 +02:00
Sheldan
af436715f5 [maven-release-plugin] prepare for next development iteration 2023-05-18 22:52:04 +02:00
Sheldan
4f8c4d0062 [maven-release-plugin] prepare release templates-1.4.16 2023-05-18 22:52:00 +02:00
Sheldan
7300dccfc7 [AB-93] adapting templates causing an message attachment to use new behaviour 2023-05-18 22:33:36 +02:00
Sheldan
892de1bcd3 [AB-92] fixing modmail already exists template 2023-05-18 01:23:03 +02:00
OneNormalUsername
993d5a2873 Various minor wording updates (#11)
Co-authored-by: Sheldan <5037282+Sheldan@users.noreply.github.com>
2023-04-14 16:51:28 +02:00
Sheldan
d9f65184e7 [AB-xxx] fixing help text for feature modes parameter 2023-03-29 23:53:01 +02:00
Sheldan
4e963d6767 [AB-xxx] fixing showing the user id with "," for warnings output 2023-03-19 16:47:52 +01:00
Sheldan
a3d125b67d [AB-91] adding direct link to open weather map in the output of the weather command 2023-03-19 10:55:36 +01:00
Sheldan
c6aa854aa3 [maven-release-plugin] prepare for next development iteration 2023-03-19 00:13:09 +01:00
Sheldan
318b41ae3d [maven-release-plugin] prepare release templates-1.4.15 2023-03-19 00:13:05 +01:00
Sheldan
e05f774500 [AB-89] adding templates for weather command feature 2023-03-19 00:04:06 +01:00
Sheldan
b6a2dd2da7 [AB-xxx] adding comma as separator for emote stats 2023-03-12 13:51:05 +01:00
Sheldan
1b8717a5aa [AB-xxx] changing logic for author names and avatars to be more considerate between user and member avatar
limiting roles for userinfo and features for server info to lower values
2023-03-05 13:49:46 +01:00
Sheldan
4bcc4260d1 [maven-release-plugin] prepare for next development iteration 2023-02-26 10:57:04 +01:00
Sheldan
fcadb4260b [maven-release-plugin] prepare release templates-1.4.14 2023-02-26 10:56:59 +01:00
Sheldan
dba30f80f2 [AB-85] adding template for suggestion thread name
not showing suggestion votes in the update message in case reactions are used for suggestions
2023-02-26 10:53:27 +01:00
Sheldan
acb65e49b2 [AB-84] adding suggestion text, vote percentages and emotes to suggestion update message 2023-02-25 18:34:27 +01:00
Sheldan
f934f1d2f9 [maven-release-plugin] prepare for next development iteration 2023-02-04 15:45:43 +01:00
Sheldan
a6b57310e3 [maven-release-plugin] prepare release templates-1.4.13 2023-02-04 15:45:39 +01:00
Sheldan
e4eb86da33 [AB-83] changing suggestion auto evaluation text to be relative and adapting naming
adding emotes to suggestion buttons
adding missing configuration setup template
2023-02-04 15:45:10 +01:00
Sheldan
28c26cf966 [maven-release-plugin] prepare for next development iteration 2023-02-04 14:51:22 +01:00
Sheldan
0e220001ed [maven-release-plugin] prepare release templates-1.4.12 2023-02-04 14:51:17 +01:00
Sheldan
e9adccb06a [AB-20] adding templates for experience level up notification config command 2023-01-28 13:12:44 +01:00
Sheldan
36d9996c02 [maven-release-plugin] prepare for next development iteration 2023-01-12 01:36:41 +01:00
Sheldan
54e12e3d0a [maven-release-plugin] prepare release templates-1.4.11 2023-01-12 01:36:37 +01:00
Sheldan
801bdddac9 [AB-xxx] fixing rank template for low experience 2022-12-21 15:48:07 +01:00
Sheldan
6b60228313 [maven-release-plugin] prepare for next development iteration 2022-12-21 13:25:56 +01:00
Sheldan
70e6b76e7b [maven-release-plugin] prepare release templates-1.4.10 2022-12-21 13:25:51 +01:00
Sheldan
0bc7105b62 [AB-xxx] adding level progress to rank command 2022-12-21 01:39:10 +01:00
Sheldan
3eb08360ec [AB-xxx] fixing template for serverinfo output 2022-12-20 13:17:53 +01:00
Sheldan
1089292fd7 [maven-release-plugin] prepare for next development iteration 2022-12-10 16:56:00 +01:00
Sheldan
c419ea3928 [maven-release-plugin] prepare release templates-1.4.9 2022-12-10 16:55:56 +01:00
Sheldan
646225d46a [AB-77] adding templates for reaction report failure in case of interactions 2022-12-10 13:06:35 +01:00
Sheldan
43a91d974b [maven-release-plugin] prepare for next development iteration 2022-12-02 21:22:12 +01:00
Sheldan
e4eba1e726 [maven-release-plugin] prepare release templates-1.4.8 2022-12-02 21:22:08 +01:00
Sheldan
95b9b3ba3b [AB-66] adapting invalid mine board configuration message 2022-12-02 21:21:33 +01:00
Sheldan
50d5954d6b [maven-release-plugin] prepare for next development iteration 2022-12-02 01:37:27 +01:00
Sheldan
a6cc2931d0 [maven-release-plugin] prepare release templates-1.4.7 2022-12-02 01:37:23 +01:00
Sheldan
c03514873e [AB-66] adding templates for mine game 2022-12-02 01:30:02 +01:00
Sheldan
471d171da6 [AB-xxx] adding missing template for suggestion config setup 2022-11-20 19:59:54 +01:00
Sheldan
67d64af318 [maven-release-plugin] prepare for next development iteration 2022-11-20 19:55:04 +01:00
Sheldan
3e76d39f58 [maven-release-plugin] prepare release templates-1.4.6 2022-11-20 19:55:00 +01:00
Sheldan
88ea5c8e17 [AB-25] adding templates for level up notification and setup of experience 2022-11-20 17:23:25 +01:00
Sheldan
f273bd0872 [AB-76] adding auto evaluation text to suggestion template 2022-11-11 00:07:01 +01:00
Sheldan
3b471e2daf [AB-74] adding more output to transfer commands output 2022-11-09 22:54:02 +01:00
Sheldan
6a187c9016 [maven-release-plugin] prepare for next development iteration 2022-10-27 20:54:44 +02:00
Sheldan
95cba127b8 [maven-release-plugin] prepare release templates-1.4.5 2022-10-27 20:54:40 +02:00
Sheldan
1dfb6e2517 [AB-75] adding templates for thread reader command and feature 2022-10-22 14:56:43 +02:00
Sheldan
1f5336728a [maven-release-plugin] prepare for next development iteration 2022-10-16 12:37:38 +02:00
Sheldan
5ec86f0647 [maven-release-plugin] prepare release templates-1.4.4 2022-10-16 12:37:34 +02:00
Sheldan
c020e9353f [AB-71] fixing spoiled attachments not being considered when embedding, we now spoil the link text instead 2022-10-06 00:37:21 +02:00
Sheldan
319850ff39 [AB-73] adding scheduled target date of reminder to reminder notification 2022-10-06 00:11:08 +02:00
Sheldan
34e255b87a [AB-72] adding joined reminders to reminder list
refactored reminders model
2022-10-06 00:01:36 +02:00
Sheldan
71870a4a98 [maven-release-plugin] prepare for next development iteration 2022-08-28 23:29:37 +02:00
Sheldan
049e5b0a1c [maven-release-plugin] prepare release templates-1.4.3 2022-08-28 23:29:33 +02:00
Sheldan
1241571048 [AB-65] adding ability to join a reminder via button
adding reminder text to slash button reminder
2022-08-28 23:14:27 +02:00
Sheldan
f6ed141328 [AB-69] adapting template of userinfo command 2022-08-27 14:45:18 +02:00
Sheldan
d58633803c [AB-68] adding message context label for mock context command 2022-08-25 00:33:35 +02:00
Sheldan
8a1c2a595f [maven-release-plugin] prepare for next development iteration 2022-08-01 23:03:08 +02:00
Sheldan
42e17c2251 [maven-release-plugin] prepare release templates-1.4.2 2022-08-01 23:03:04 +02:00
Sheldan
dc268ac643 fixing emote stats and reaction report related templates 2022-08-01 23:00:09 +02:00
Sheldan
5da19ef286 [maven-release-plugin] prepare for next development iteration 2022-07-27 22:18:19 +02:00
Sheldan
e392219f4c [maven-release-plugin] prepare release templates-1.4.1 2022-07-27 22:18:15 +02:00
Sheldan
379d633b22 adding suggest exception templates 2022-07-27 22:14:09 +02:00
Sheldan
67ed830920 [AB-xxx] fixing template for reaction reports with attachments 2022-07-25 18:15:09 +02:00
Sheldan
0e9071945d [maven-release-plugin] prepare for next development iteration 2022-07-23 10:48:13 +02:00
Sheldan
34fbf8aea1 [maven-release-plugin] prepare release templates-1.4.0 2022-07-23 10:48:09 +02:00
Sheldan
bd72f93e1f [AB-53] economy related templates
adding custom command module
2022-07-23 10:44:05 +02:00
Sheldan
a41045e5fd [AB-52] help infractions command templates
adding templates for infraction
updating templates for reaction reports
creating templates for message report context menu
fixing show effects command for no effects configured
reworking muting embed templates
adding templates for edit infractions
2022-07-18 21:56:01 +02:00
Sheldan
a8f256827c [AB-xx] fixing template for warn decay message 2022-07-04 18:30:54 +02:00
Sheldan
388bea7859 [maven-release-plugin] prepare for next development iteration 2022-06-20 00:10:43 +02:00
Sheldan
61dd7ee589 [maven-release-plugin] prepare release templates-1.4.0.RC1 2022-06-20 00:10:39 +02:00
Sheldan
b6dfca2266 [AB-365] adding and updating templates for slash commands 2022-05-29 19:30:01 +02:00
Sheldan
30eadf6352 [AB-358] refactoring templates and setting new 1.4 version 2022-05-17 00:35:50 +02:00
Sheldan
e505b181e6 [maven-release-plugin] prepare for next development iteration 2022-05-15 17:50:20 +02:00
Sheldan
ab80220944 [maven-release-plugin] prepare release templates-1.3.2 2022-05-15 17:50:16 +02:00
Sheldan
33bdfd29a1 [AB-xxx] adding macro for defaulting easier in case of null values 2022-05-15 13:08:47 +02:00
Sheldan
6a76cd3c61 [AB-xxx] moving the original link hint 2022-02-12 23:30:07 +01:00
Sheldan
1f449750f8 [AB-xxx] adding hint to show where the original link for a message embed is 2022-02-12 23:08:33 +01:00
Sheldan
f39c25e5fc [maven-release-plugin] prepare for next development iteration 2022-02-12 11:46:32 +01:00
Sheldan
a2d15ea9b1 [maven-release-plugin] prepare release templates-1.3.1 2022-02-12 11:46:28 +01:00
Sheldan
d1657c3b8a [AB-xxx] moving utility module template to core 2022-02-11 18:45:54 +01:00
Sheldan
120d30049a [AB-347] adding multiple and generic attachment support to modmail templates
fixing modmail notification template
2021-12-25 16:30:25 +01:00
Sheldan
6ea28f2424 [AB-352] changed templates for mutes/user notes/warns after models changed
reduced warnings displayed at once
placed reason for warnings at different position
2021-12-24 23:42:31 +01:00
Sheldan
60e37b4ef2 [maven-release-plugin] prepare for next development iteration 2021-12-24 13:50:06 +01:00
557 changed files with 1918 additions and 281 deletions

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.3.0</version>
<version>1.4.18</version>
<build>
<plugins>

View File

@@ -0,0 +1 @@
<#macro default_template_if_null value="" template_key=""><#if value?has_content>${value}<#else><#include "${template_key}"></#if></#macro>

View File

@@ -1 +1,4 @@
<#include "member_avatar">
<#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_member_name member=member/>", "avatar": "<@member_display_avatar member=member/>" }</#macro>
<#macro member_display_user_author member> "author": { "name": "<@member_display_user_name member=member/>", "avatar": "<@member_display_user_avatar member=member/>" }</#macro>

View File

@@ -0,0 +1,2 @@
<#macro member_display_avatar member><#if member.memberAvatarUrl?has_content>${member.memberAvatarUrl?json_string}<#else>${member.userAvatarUrl?json_string}</#if></#macro>
<#macro member_display_user_avatar member>${member.userAvatarUrl?json_string}</#macro>

View File

@@ -1 +1,3 @@
<#macro member_user_name member>${member.effectiveName?json_string}#${member.user.discriminator}</#macro>
<#macro member_display_member_name member><#if member.nickname?has_content>${member.nickname?json_string}<#else>${member.userName?json_string}</#if>#${member.discriminator}</#macro>
<#macro member_display_user_name member>${member.userName?json_string}#${member.discriminator}</#macro>

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "addProfanityRegex_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "addToChannelGroup_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "clearCache_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "createChannelGroup_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "createProfanityGroup_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "deleteChannelGroup_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "deleteProfanityGroup_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "disableChannelGroup_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -1,8 +0,0 @@
{
"embeds": [
{
<#include "abstracto_color">,
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "disableFeature_available_features_text">"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "disableFeature_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "disableMode_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "disablePosttarget_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "enableChannelGroup_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -1,8 +0,0 @@
{
"embeds": [
{
<#include "abstracto_color">,
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "enableFeature_available_features_text">"
}
]
}

View File

@@ -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>"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "enableFeature_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "enableMode_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "enablePosttarget_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -1,3 +0,0 @@
<#assign templateKey=templateKey>
<#assign serverId=guild.id>
<#include "getCustomTemplate_file_name_text">

View File

@@ -1,4 +1,10 @@
{
<#assign templateKey=templateKey>
"additionalMessage": "<@safe_include "getCustomTemplate_response_embed_text"/>"
"additionalMessage": "<@safe_include "getCustomTemplate_response_embed_text"/>",
"files": [
{
"fileName": "${templateKey}.ftl",
"fileContent": "${templateContent?json_string}"
}
]
}

View File

@@ -1,4 +1,10 @@
{
<#assign templateKey=templateKey>
"additionalMessage": "<@safe_include "getTemplate_response_embed_text"/>"
"additionalMessage": "<@safe_include "getTemplate_response_embed_text"/>",
"files": [
{
"fileName": "${templateKey}.ftl",
"fileContent": "${templateContent?json_string}"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "makeAffected_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "makeImmune_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "posttarget_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "removeFromChannelGroup_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "removeProfanityRegex_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "resetConfig_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "resetTemplate_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "setConfig_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "setEmote_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "setTemplate_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -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">

View File

@@ -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">

View File

@@ -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
}
}
]
}

View File

@@ -1,5 +0,0 @@
<#list actionConfigs as actionConfig><#assign actionConfig=actionConfig/>
<#assign param=actionConfig.templateModel>
<@safe_include "${actionConfig.templateName}"/>
</#list>

View File

@@ -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"/>

View File

@@ -5,6 +5,7 @@
"description": "
<#list effects as effect>
`${effect}` <@safe_include "effect_type_${effect}_description"/>
<#else><#include "showEffects_response_no_effects">
</#list>
"
}

View File

@@ -0,0 +1,2 @@
<#assign parameterName=model.parameterName>
<#include "slash_command_parameter_missing_exception_text">

View 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.18</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>

View 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>

View File

@@ -0,0 +1,3 @@
{
"additionalMessage": "${additionalText?json_string}"
}

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -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>
}
]
}

View File

@@ -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}

View File

@@ -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"/>"
}
]
}

View File

@@ -0,0 +1,7 @@
{
"embeds": [
{
"description": "<#include "creditLeaderboard_no_user_found">"
}
]
}

View File

@@ -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"/>"
}
]
}

View File

@@ -0,0 +1,39 @@
{
<#assign totalMines=mineCount>
<#assign userLost=state.name() == "LOST">
<#assign userWon=state.name() == "WON">
<#assign ended=userLost || userWon>
<#if creditsEnabled>
<#assign changedCreditAmount=creditChange/>
<#assign creditAmount=credits/>
<#assign stateText><#if state.name() == "WON"><#include "mines_state_won_credits"><#elseif state.name() == "LOST"><#include "mines_state_lost_credits"><#else><#include "mines_state_continue_credits"></#if></#assign>
<#else>
<#assign stateText><#if state.name() == "WON"><#include "mines_state_won"><#elseif state.name() == "LOST"><#include "mines_state_lost"><#else><#include "mines_state_continue"></#if></#assign>
</#if>
"additionalMessage": "<@safe_include "mines_additional_message"/>",
"buttons": [
<#list rows as row>
<#list row.fields as field>
{
<#if ended>
<#assign label><#if field.counterValue != 0>${field.counterValue}<#elseif field.type.name() == "EXPLODED">💀<#elseif field.type.name() == "MINE">💣<#elseif field.type.name() == "UNCOVERED">o</#if></#assign>
<#else>
<#assign label><#if field.type.name() == "COVERED" || field.type.name() == "MINE">x<#elseif field.counterValue != 0>${field.counterValue}<#else>o</#if></#assign>
</#if>
"label": "${label}",
"id": "${boardId}_${field.x}_${field.y}",
"buttonStyle": "secondary",
<#if ended>"disabled": true,</#if>
"metaConfig": {
"persistCallback": false
<#if field?is_first>
,"forceNewRow": true
</#if>
}
}
<#sep>,
</#list>
<#sep>,
</#list>
]
}

View File

@@ -0,0 +1,11 @@
{
"embeds": [
{
<#include "abstracto_color">,
<#assign currentCredits=currentCredits>
<#assign rank=leaderboardPosition>
<#assign gainedCredits=gainedCredits>
"description": "<@safe_include "payday_response_text"/>"
}
]
}

View File

@@ -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>

View File

@@ -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"/>"
}

View File

@@ -0,0 +1,9 @@
{
<#assign sourceUser=sourceMember.memberMention/>
<#assign targetUser=targetMember.memberMention/>
<#assign creditsCount=credits/>
"additionalMessage": "<@safe_include "transferCredits_response_text"/>",
"messageConfig": {
"ephemeral": false
}
}

View File

@@ -0,0 +1,2 @@
<#assign minRatio>${model.minMinesRatio * 100}</#assign>
<#include "invalid_mine_board_config_exception_text">

View File

@@ -0,0 +1 @@
<#include "not_enough_wealth_exception_text">

View File

@@ -0,0 +1,2 @@
<#assign retryDuration>${fmtDuration(model.tryAgainDuration)}</#assign>
<#include "payday_cooldown_exception_text">

View File

@@ -0,0 +1,2 @@
<#assign retryDuration>${fmtDuration(model.tryAgainDuration)}</#assign>
<#include "payday_cooldown_exception_text">

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.3.0</version>
<version>1.4.18</version>
<build>
<plugins>
<plugin>

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "disableExpForRole_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "disableExpGain_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "enableExpForRole_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "enableExpGain_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "expLevelUpNotification_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "expScale_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -29,6 +29,11 @@
"name": "<@safe_include "rank_rank_field_title"/>",
"value": "${rankUser.rank}",
"inline": "true"
},
{
"name": "<@safe_include "rank_level_progress_field_title"/>",
"value": "${inLevelExperience} <#list 0..currentLevelPercentage/10?floor as cent><#if cent gt 0>🔹</#if></#list><#if (currentLevelPercentage % 10) gt 4>🔸<#else>▫</#if><#assign restCent></#assign><#list 0..(10 - currentLevelPercentage/10?ceiling) as cent><#if cent gt 0>▫</#if></#list> ${nextLevelExperience - experienceForCurrentLevel}",
"inline": "false"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "setExpRole_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
<#assign userMention=memberDisplay.memberMention>
<#assign pastLevel=oldLevel>
<#assign currentLevel=newLevel>
"additionalMessage": "<@safe_include "experience_level_up_notification_text"/>"
}

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -18,7 +18,7 @@
</#list>
",
</#if>
<#if embeddedMessage.attachments?size gt 0>
<#if embeddedMessage.attachments?size gt 0 && !embeddedMessage.attachments[0].spoiler>
"imageUrl": "${embeddedMessage.attachments[0].proxyUrl}",
<#elseif embeddedMessage.attachments?size = 0 && embeddedMessage.embeds?size gt 0 && embeddedMessage.embeds[0].cachedThumbnail??>
"imageUrl": "${embeddedMessage.embeds[0].cachedThumbnail.proxyUrl}",
@@ -58,6 +58,9 @@
}
]
</#if>
<#if embeddedMessage.attachments?size gt 0 && embeddedMessage.attachments[0].spoiler>
,"additionalMessage": "||${embeddedMessage.attachments[0].proxyUrl?json_string}||"
</#if>
<#if referencedMessageId?has_content && mentionsReferencedMessage?has_content>
,"referencedMessageId": "${referencedMessageId?c}",
"messageConfig": {

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.3.0</version>
<version>1.4.18</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>moderation</artifactId>
<version>1.3.0</version>
<version>1.4.18</version>
<build>
<plugins>
<plugin>

View File

@@ -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}"

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "ban_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "decayAllWarnings_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "decayWarnings_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "deleteNote_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "deleteWarning_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "editInfraction_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -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
}

View File

@@ -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>

View File

@@ -0,0 +1,8 @@
{
"embeds": [
{
<#include "moderation_action_color">,
"description": "<@safe_include "infractions_no_infractions_found_text"/>"
}
]
}

View File

@@ -0,0 +1,10 @@
{
"embeds": [
{
"description": "<#list row as infraction><#assign infraction=infraction><@safe_include "infractions_infraction_entry"/>\n</#list>"
}
],
"buttons": [
<#include "paginator_buttons">
]
}

View File

@@ -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}"

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "kick_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -21,10 +21,10 @@
},
<#include "success_color">,
"description": "<#list userNotes as note><#assign note=note/>
<#assign user><#if note.fullUser.member?has_content>${note.fullUser.member.asMention?json_string}<#else>${note.fullUser.aUserInAServer.userReference.id?c}</#if></#assign>
<#assign noteText>${note.note.note?json_string}</#assign>
<#assign noteId>${note.note.userNoteId.id}</#assign>
<#assign date><@format_instant_date_time instant=note.note.created/></#assign>
<#assign user><#if note.member.memberMention?has_content>${note.member.memberMention}<#else>${note.member.userId?c}</#if></#assign>
<#assign noteText>${note.note?json_string}</#assign>
<#assign noteId>${note.noteId}</#assign>
<#assign date><@format_instant_date_time instant=note.created/></#assign>
<@safe_include "user_notes_note_entry"/><#else><@safe_include "user_notes_no_notes"/>
</#list>"
}

View File

@@ -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>
]
}
]
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "mute_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -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}"
}
]
}

View File

@@ -1,10 +1,10 @@
<#include "format_instant">
<#assign muteId>${mute.mute.muteId.id}</#assign>
<#assign reason>${mute.mute.reason}</#assign>
<#assign mutedUserText><#if mute.mutedUser.member??>${mute.mutedUser.member.asMention}(${mute.mutedUser.member.user.id})<#else>${mute.mutedUser.userId?c}</#if></#assign>
<#assign mutingUserText><#if mute.mutingUser.member??>${mute.mutingUser.member.asMention}(${mute.mutingUser.member.user.id})<#else>${mute.mutingUser.userId?c}</#if></#assign>
<#assign muteDate><@format_instant_date_time instant=mute.mute.muteDate/></#assign>
<#assign muteEnded>${mute.mute.muteEnded?string('✅', '❌')}</#assign>
<#assign muteId>${mute.muteId}</#assign>
<#assign reason>${mute.reason}</#assign>
<#assign mutedUserText><#if mute.mutedUser.memberMention??>${mute.mutedUser.memberMention}(${mute.mutedUser.userId?c})<#else>${mute.mutedUser.userId?c}</#if></#assign>
<#assign mutingUserText><#if mute.mutingUser.memberMention??>${mute.mutingUser.memberMention}(${mute.mutedUser.userId?c})<#else>${mute.mutingUser.userId?c}</#if></#assign>
<#assign muteDate><@format_instant_date_time instant=mute.muteDate/></#assign>
<#assign muteEnded>${mute.muteEnded?string('✅', '❌')}</#assign>
<#assign muteDuration>${fmtDuration(mute.muteDuration)}</#assign>
<#include "mutes_mute_entry_text">

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "purge_initial_message_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "slowmode_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "unBan_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "unMute_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

Some files were not shown because too many files have changed in this diff Show More