mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-04 08:42:43 +00:00
Compare commits
210 Commits
templates-
...
templates-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8beb3a7669 | ||
|
|
870e82062e | ||
|
|
4d69c16a50 | ||
|
|
58e43bb68a | ||
|
|
a04b6e6a84 | ||
|
|
9eeefa175b | ||
|
|
5f6c7a364a | ||
|
|
09cc7ca545 | ||
|
|
55e39428e7 | ||
|
|
6f364df0e8 | ||
|
|
1b2b234330 | ||
|
|
2a68d74917 | ||
|
|
dd83009259 | ||
|
|
a8d7d4e1aa | ||
|
|
22dc9367f4 | ||
|
|
88ed051af4 | ||
|
|
4a341ed479 | ||
|
|
77207028a9 | ||
|
|
ff0319b468 | ||
|
|
193bfe3f75 | ||
|
|
7333ddc03c | ||
|
|
3cec9096b1 | ||
|
|
e1835f03f6 | ||
|
|
9b34efeba4 | ||
|
|
b5376688d8 | ||
|
|
77baf59f80 | ||
|
|
57981fa939 | ||
|
|
b61046b12f | ||
|
|
5d2559344b | ||
|
|
34772f520e | ||
|
|
7920044749 | ||
|
|
8957f87006 | ||
|
|
2b5add56f5 | ||
|
|
700a2e1bda | ||
|
|
3d01a6992a | ||
|
|
9fe1a8ec80 | ||
|
|
65057071ed | ||
|
|
f10b7efc8d | ||
|
|
89b0f44ad8 | ||
|
|
21f292dc76 | ||
|
|
0898f2cb9a | ||
|
|
63547f1613 | ||
|
|
cd6e3098f2 | ||
|
|
eea34f3b88 | ||
|
|
e14c0e9a3b | ||
|
|
19d1aff734 | ||
|
|
1566f9025e | ||
|
|
6c9449e4ea | ||
|
|
97ed46c4e6 | ||
|
|
e10bf36a0a | ||
|
|
aeed7b97ae | ||
|
|
d8923adae1 | ||
|
|
4bc06cbb07 | ||
|
|
f7e8fb29f1 | ||
|
|
92f53be054 | ||
|
|
81734391a2 | ||
|
|
ab84d05a26 | ||
|
|
d0d91a0ddd | ||
|
|
68bb56b18b | ||
|
|
5a00f213da | ||
|
|
6dd3b70bb2 | ||
|
|
f0600df517 | ||
|
|
4d52be255f | ||
|
|
6e5ab2f9ae | ||
|
|
2e16457baf | ||
|
|
f778fe8804 | ||
|
|
48ad43a1b0 | ||
|
|
7ee101de79 | ||
|
|
dee05ccc88 | ||
|
|
b1594b6a20 | ||
|
|
b88046493b | ||
|
|
7256e72dbc | ||
|
|
6f9a055886 | ||
|
|
8a2ae1c492 | ||
|
|
c0a0bf23ff | ||
|
|
351325abe3 | ||
|
|
ff5f56a065 | ||
|
|
7718a86b14 | ||
|
|
2d92a15bf0 | ||
|
|
c230455678 | ||
|
|
e5549154e0 | ||
|
|
609609e484 | ||
|
|
9fc76179dc | ||
|
|
ba52bea891 | ||
|
|
fd0c99ae60 | ||
|
|
3687ec3daf | ||
|
|
12665c09af | ||
|
|
6819b13439 | ||
|
|
b5d6b964e2 | ||
|
|
3d7359daa3 | ||
|
|
5b298ec037 | ||
|
|
cca6c9eb9d | ||
|
|
3d1ef56aed | ||
|
|
4278310ddc | ||
|
|
7d87c0d3f4 | ||
|
|
a1d6d04011 | ||
|
|
62e6d50b12 | ||
|
|
c8f2ebe7d7 | ||
|
|
5a63f0a8de | ||
|
|
4810352160 | ||
|
|
ee4a39f871 | ||
|
|
4a80d0ca71 | ||
|
|
7e99db3733 | ||
|
|
9373b07c8a | ||
|
|
af436715f5 | ||
|
|
4f8c4d0062 | ||
|
|
7300dccfc7 | ||
|
|
892de1bcd3 | ||
|
|
993d5a2873 | ||
|
|
d9f65184e7 | ||
|
|
4e963d6767 | ||
|
|
a3d125b67d | ||
|
|
c6aa854aa3 | ||
|
|
318b41ae3d | ||
|
|
e05f774500 | ||
|
|
b6a2dd2da7 | ||
|
|
1b8717a5aa | ||
|
|
4bcc4260d1 | ||
|
|
fcadb4260b | ||
|
|
dba30f80f2 | ||
|
|
acb65e49b2 | ||
|
|
f934f1d2f9 | ||
|
|
a6b57310e3 | ||
|
|
e4eb86da33 | ||
|
|
28c26cf966 | ||
|
|
0e220001ed | ||
|
|
e9adccb06a | ||
|
|
36d9996c02 | ||
|
|
54e12e3d0a | ||
|
|
801bdddac9 | ||
|
|
6b60228313 | ||
|
|
70e6b76e7b | ||
|
|
0bc7105b62 | ||
|
|
3eb08360ec | ||
|
|
1089292fd7 | ||
|
|
c419ea3928 | ||
|
|
646225d46a | ||
|
|
43a91d974b | ||
|
|
e4eba1e726 | ||
|
|
95b9b3ba3b | ||
|
|
50d5954d6b | ||
|
|
a6cc2931d0 | ||
|
|
c03514873e | ||
|
|
471d171da6 | ||
|
|
67d64af318 | ||
|
|
3e76d39f58 | ||
|
|
88ea5c8e17 | ||
|
|
f273bd0872 | ||
|
|
3b471e2daf | ||
|
|
6a187c9016 | ||
|
|
95cba127b8 | ||
|
|
1dfb6e2517 | ||
|
|
1f5336728a | ||
|
|
5ec86f0647 | ||
|
|
c020e9353f | ||
|
|
319850ff39 | ||
|
|
34e255b87a | ||
|
|
71870a4a98 | ||
|
|
049e5b0a1c | ||
|
|
1241571048 | ||
|
|
f6ed141328 | ||
|
|
d58633803c | ||
|
|
8a1c2a595f | ||
|
|
42e17c2251 | ||
|
|
dc268ac643 | ||
|
|
5da19ef286 | ||
|
|
e392219f4c | ||
|
|
379d633b22 | ||
|
|
67ed830920 | ||
|
|
0e9071945d | ||
|
|
34fbf8aea1 | ||
|
|
bd72f93e1f | ||
|
|
a41045e5fd | ||
|
|
a8f256827c | ||
|
|
388bea7859 | ||
|
|
61dd7ee589 | ||
|
|
b6dfca2266 | ||
|
|
30eadf6352 | ||
|
|
e505b181e6 | ||
|
|
ab80220944 | ||
|
|
33bdfd29a1 | ||
|
|
6a76cd3c61 | ||
|
|
1f449750f8 | ||
|
|
f39c25e5fc | ||
|
|
a2d15ea9b1 | ||
|
|
d1657c3b8a | ||
|
|
120d30049a | ||
|
|
6ea28f2424 | ||
|
|
60e37b4ef2 | ||
|
|
ad6ad7dc8b | ||
|
|
bb47784554 | ||
|
|
921a5259ee | ||
|
|
c52dbbb1f3 | ||
|
|
02d5d7cc1c | ||
|
|
4c988e6c3e | ||
|
|
134e2e0360 | ||
|
|
d5e95babba | ||
|
|
5f5a7a4fb5 | ||
|
|
ade134fdaa | ||
|
|
a7f3a902f9 | ||
|
|
ad5dfaefed | ||
|
|
479c100220 | ||
|
|
cc584d711c | ||
|
|
ecb8824614 | ||
|
|
61f3910878 | ||
|
|
e53d75dcc8 | ||
|
|
93b0bf33ca | ||
|
|
a4aa0ddb6c | ||
|
|
8420b32233 | ||
|
|
e19d2f777d |
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -1,19 +0,0 @@
|
||||
name: Publish package to GitHub Packages
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Java for publishing to GitHub Packages
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Publish to GitHub Packages
|
||||
run: mvn --file pom.xml -B deploy -Dmaven.wagon.http.pool=false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
26
.github/workflows/release_manual.yml
vendored
Normal file
26
.github/workflows/release_manual.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Publishes a new version of the templates
|
||||
on: workflow_dispatch
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: master
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'corretto'
|
||||
java-version: 17
|
||||
- name: Release maven packages
|
||||
uses: qcastel/github-actions-maven-release@v1.12.41
|
||||
env:
|
||||
JAVA_HOME: /usr/lib/jvm/java-21-openjdk/
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
git-release-bot-name: "release-bot"
|
||||
git-release-bot-email: "release-bot@sheldan.dev"
|
||||
release-branch-name: master
|
||||
maven-args: "-Dmaven.javadoc.skip=true -s settings.xml -DskipTests"
|
||||
access-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
author_email: "release-bot@sheldan.dev"
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -19,7 +19,4 @@ target/
|
||||
*.ear
|
||||
*.zip
|
||||
*.tar.gz
|
||||
*.rar
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 Sheldan
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.20</version>
|
||||
<version>1.4.42</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
{
|
||||
<#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})"
|
||||
}
|
||||
]
|
||||
"embeds": [
|
||||
<#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})"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.20</version>
|
||||
<version>1.4.42</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "<#assign channelMention><#if channelDisplay??>${channelDisplay.channelMention}<#else><@safe_include "assignable_roles_config_embed_no_channel_found"/></#if></#assign>
|
||||
<#assign typeDescription><@safe_include "assignable_role_place_type_description_${type}"/></#assign>
|
||||
<@safe_include "assignable_roles_config_embed_place_description"/>
|
||||
"embeds": [
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "<#assign channelMention><#if channelDisplay??>${channelDisplay.channelMention}<#else><@safe_include "assignable_roles_config_embed_no_channel_found"/></#if></#assign>
|
||||
<#assign typeDescription><@safe_include "assignable_role_place_type_description_${type}"/></#assign>
|
||||
<@safe_include "assignable_roles_config_embed_place_description"/>
|
||||
|
||||
<@safe_include "assignable_roles_config_embed_role_header"/>:
|
||||
<#list roles as role><#assign role=role/>
|
||||
<#assign emoteMention><#if role.emoteMarkDown??>${role.emoteMarkDown}<#else>No emote</#if></#assign>
|
||||
<#assign roleMention=role.roleDisplay.roleMention/>
|
||||
<#assign roleDescription=role.description/>
|
||||
<#assign conditionText><#list role.conditions as condition><#assign model=condition.templateModel><@safe_include "${condition.templateName}"/><#sep>, <#else><#include "assignable_role_condition_no_conditions"></#list></#assign>
|
||||
<@safe_include "assignable_roles_config_embed_role_description"/>
|
||||
<@safe_include "assignable_roles_config_embed_role_header"/>:
|
||||
<#list roles as role><#assign role=role/>
|
||||
<#assign emoteMention><#if role.emoteMarkDown??>${role.emoteMarkDown}<#else>No emote</#if></#assign>
|
||||
<#assign roleMention=role.roleDisplay.roleMention/>
|
||||
<#assign roleDescription=role.description/>
|
||||
<#assign conditionText><#list role.conditions as condition><#assign model=condition.templateModel><@safe_include "${condition.templateName}"/><#sep>, <#else><#include "assignable_role_condition_no_conditions"></#list></#assign>
|
||||
<@safe_include "assignable_roles_config_embed_role_description"/>
|
||||
|
||||
<#else><@safe_include "assignable_role_config_embed_no_roles"/></#list>
|
||||
"
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,10 @@
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "<@safe_include "assignable_role_places_overview_description"/>:
|
||||
<#list places as place>`<#assign place=place/><#assign placeKey=place.placeName/><@safe_include "assignable_role_places_overview_place"/>`<#sep>, <#else> <@safe_include "assignable_role_places_overview_no_places"/></#list>
|
||||
"
|
||||
"embeds": [
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "<@safe_include "assignable_role_places_overview_description"/>:
|
||||
<#list places as place>`<#assign place=place/><#assign placeKey=place.placeName/><@safe_include "assignable_role_places_overview_place"/>`<#sep>, <#else> <@safe_include "assignable_role_places_overview_no_places"/></#list>
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,9 +1,15 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true",
|
||||
"ephemeral": true
|
||||
},
|
||||
<#assign model=templateModel/>
|
||||
"description": "<@safe_include "${templateName}"/>"
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#assign model=templateModel/>
|
||||
"description": "<@safe_include "${templateName}"/>"
|
||||
}
|
||||
],
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1,15 +1,21 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true",
|
||||
"ephemeral": true
|
||||
},
|
||||
<#assign roleText=role.asMention>
|
||||
<#if added>
|
||||
<#assign removedRolesText>${removedRoles?map(role -> role.asMention)?join(", ")}</#assign>
|
||||
"description": "<@safe_include "assignable_role_added_success"/>
|
||||
<#if removedRoles?size gt 0><@safe_include "assignable_role_added_roles_removed"/></#if>"
|
||||
<#else>
|
||||
"description": "<@safe_include "assignable_role_removed_success"/>"
|
||||
</#if>
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#assign roleText=role.asMention>
|
||||
<#if added>
|
||||
<#assign removedRolesText>${removedRoles?map(role -> role.asMention)?join(", ")}</#assign>
|
||||
"description": "<@safe_include "assignable_role_added_success"/>
|
||||
<#if removedRoles?size gt 0><@safe_include "assignable_role_added_roles_removed"/></#if>"
|
||||
<#else>
|
||||
"description": "<@safe_include "assignable_role_removed_success"/>"
|
||||
</#if>
|
||||
}
|
||||
],
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1,22 +1,26 @@
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "${placeDescription?json_string}"
|
||||
<#if roles?size gt 0>
|
||||
,"buttons": [
|
||||
<#list roles as role>
|
||||
{
|
||||
"label": "${role.description?json_string}",
|
||||
"id": "${role.componentId}",
|
||||
"buttonStyle": "secondary",
|
||||
<#if role.emoteMarkDown??>
|
||||
"emoteMarkdown": "${role.emoteMarkDown?json_string}",
|
||||
</#if>
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
<#sep>,
|
||||
"embeds": [
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "${placeDescription?json_string}"
|
||||
}
|
||||
]
|
||||
<#if roles?size gt 0>
|
||||
,"buttons": [
|
||||
<#list roles as role>
|
||||
{
|
||||
"label": "${role.description?json_string}",
|
||||
"id": "${role.componentId}",
|
||||
"buttonStyle": "secondary",
|
||||
<#if role.emoteMarkDown??>
|
||||
"emoteMarkdown": "${role.emoteMarkDown?json_string}",
|
||||
</#if>
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
<#sep>,
|
||||
</#list>
|
||||
]
|
||||
</#if>
|
||||
</#if>
|
||||
}
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.2.20</version>
|
||||
<version>1.4.42</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.2.20</version>
|
||||
<version>1.4.42</version>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<#macro default_template_if_null value="" template_key=""><#if value?has_content>${value}<#else><#include "${template_key}"></#if></#macro>
|
||||
@@ -0,0 +1,8 @@
|
||||
<#macro format_instant instant><t:${instant.epochSecond?c}></#macro>
|
||||
<#macro format_instant_time instant><t:${instant.epochSecond?c}:t></#macro>
|
||||
<#macro format_instant_long_time instant><t:${instant.epochSecond?c}:T></#macro>
|
||||
<#macro format_instant_date instant><t:${instant.epochSecond?c}:d></#macro>
|
||||
<#macro format_instant_long_date instant><t:${instant.epochSecond?c}:D></#macro>
|
||||
<#macro format_instant_date_time instant><t:${instant.epochSecond?c}:f></#macro>
|
||||
<#macro format_instant_long_date_time instant><t:${instant.epochSecond?c}:F></#macro>
|
||||
<#macro format_instant_relative instant><t:${instant.epochSecond?c}:R></#macro>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
<#macro member_detail member><#if member.name?has_content>${member.name?json_string}<#if member.discriminator?has_content && member.discriminator != '0000'>#${member.discriminator}</#if><#else>${member.memberMention}</#if> (${member.userId?c})</#macro>
|
||||
@@ -1 +1,4 @@
|
||||
<#macro member_user_name member>${member.effectiveName?json_string}#${member.user.discriminator}</#macro>
|
||||
<#macro member_user_name member>${member.effectiveName?json_string}<#if member.user.discriminator?number gt 0>#${member.user.discriminator}</#if></#macro>
|
||||
<#macro member_member_name member><#if member.effectiveName?has_content>${member.effectiveName?json_string}<#else>${member.user.name?json_string}</#if><#if member.user.discriminator?number gt 0>#${member.user.discriminator}</#if></#macro>
|
||||
<#macro member_display_member_name member><#if member.nickname?has_content>${member.nickname?json_string}<#else>${member.userName?json_string}</#if></#macro>
|
||||
<#macro member_display_user_name member>${member.userName?json_string}<#if member.discriminator?number gt 0>#${member.discriminator}</#if></#macro>
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
<#macro user_author user> "author": { "name": <#include "user_user_name"> "<@user_user_name user=user/>", "avatar": "${user.effectiveAvatarUrl}" }</#macro>
|
||||
<#macro user_detail_author user> "author": { "name": <#include "user_user_name"> "<@user_user_name user=userDisplay/>"<#if user.avatarUrl?has_content>, "avatar": "${user.avatarUrl}"</#if>}</#macro>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<#macro user_detail user>${user.name?json_string}#${user.discriminator} (${user.idLong?c})</#macro>
|
||||
<#macro user_detail user><#if user.name?has_content>${user.name?json_string}<#if user.discriminator?has_content && user.discriminator != '0000'>#${user.discriminator}</#if><#else>${user.userMention}</#if> (${user.id?c})</#macro>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<#macro user_user_name user>${user.name?json_string}#${user.discriminator}</#macro>
|
||||
<#macro user_user_name user>${user.name?json_string}<#if user.discriminator?number gt 0>#${user.discriminator}</#if></#macro>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
"description": "<@safe_include "command_aborted_notification_text"/>"
|
||||
}
|
||||
],
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign text><#include "${commandName}_confirmation"></#assign>
|
||||
"description": "${text?json_string}"
|
||||
}
|
||||
],
|
||||
"buttons": [
|
||||
{
|
||||
"label": "<@safe_include "command_confirmation_message_confirm_field_title"/>",
|
||||
"id": "${confirmButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "<@safe_include "command_confirmation_message_abort_field_title"/>",
|
||||
"id": "${abortButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<#assign featureString>${features?join(", ")}</#assign><#include "disableFeature_feature_dependencies_text">"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "disableFeature_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<#assign featureString>${features?join(", ")}</#assign><#include "disable_available_features">
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,8 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "documentation_response_embed_description"/>"
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "documentation_response_embed_description"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "echo_redirect_response"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "enableChannelGroup_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"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"/><#if validationText?has_content>${validationText}</#if>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<#assign featureString>${features?join(", ")}</#assign><#include "enable_available_features">
|
||||
@@ -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,9 +1,11 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "feature_modes_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
"embeds": [
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "feature_modes_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<#list featureModes as featureMode>
|
||||
<#assign featureName><@safe_include "feature_${featureMode.featureConfig.feature.key}"/></#assign>
|
||||
<#assign featureKey=featureMode.featureConfig.feature.key>
|
||||
@@ -15,4 +17,6 @@
|
||||
|
||||
<#else><@safe_include "feature_modes_embed_no_feature_modes_available"/></#list>
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "features_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
"embeds": [
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "features_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<#list features as feature>
|
||||
${feature.featureFlag.enabled?string('✅', '❌')} **<@safe_include "feature_${feature.featureConfig.feature.key}"/>** <@safe_include "features_embed_key"/>: `${feature.featureConfig.feature.key}`
|
||||
</#list>
|
||||
@@ -11,4 +13,6 @@ ${feature.featureFlag.enabled?string('✅', '❌')} **<@safe_include "feature_${
|
||||
${defaultFeature.featureFlagProperty.enabled?string('✅', '❌')} **<@safe_include "feature_${defaultFeature.featureConfig.feature.key}"/>** <@safe_include "features_embed_key"/>: `${defaultFeature.featureConfig.feature.key}` (<@safe_include "features_default_marker"/>)
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
<#assign templateKey=templateKey>
|
||||
<#assign serverId=guild.id>
|
||||
<#include "getCustomTemplate_file_name_text">
|
||||
@@ -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}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,29 +1,41 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "help_command_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?json_string}**
|
||||
"embeds": [
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "help_command_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?json_string}**
|
||||
<@safe_include "help_command_embed_command_description"/>: <#if command.templated> <@safe_include "${command.name}_description"/> <#else> ${command.description?json_string} </#if>
|
||||
|
||||
<#if command.help??>
|
||||
<#if command.help.templated>
|
||||
<#if command.slashCommandOnly><@safe_include "help_command_embed_command_slash_command_only"/></#if>
|
||||
<#if command.messageCommandOnly><@safe_include "help_command_embed_command_message_command_only"/></#if>
|
||||
|
||||
<#if !command.slashCommandOnly>
|
||||
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
||||
</#if>
|
||||
**<@safe_include "help_command_embed_command_detailed_help"/>**: <@safe_include "${command.name}_long_help"/>
|
||||
<#if command.help.hasExample>
|
||||
<#if command.help.hasExample && !command.slashCommandOnly>
|
||||
<@safe_include "help_command_embed_command_example"/>: <@safe_include "${command.name}_example"/>
|
||||
</#if>
|
||||
<#else>
|
||||
<#if command.slashCommandOnly><@safe_include "help_command_embed_command_slash_command_only"/></#if>
|
||||
<#if command.messageCommandOnly><@safe_include "help_command_embed_command_message_command_only"/></#if>
|
||||
|
||||
<#if !command.slashCommandOnly>
|
||||
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
||||
</#if>
|
||||
**<@safe_include "help_command_embed_command_detailed_help"/>**: ${command.help.longHelp?json_string}
|
||||
<#if command.help.hasExample>
|
||||
<#if command.help.hasExample && !command.slashCommandOnly>
|
||||
<@safe_include "help_command_embed_command_example"/>:${command.help.example?json_string}
|
||||
</#if>
|
||||
</#if>
|
||||
<#if command.aliases?? && command.aliases?size gt 0>
|
||||
<#if command.aliases?? && command.aliases?size gt 0 && !command.slashCommandOnly>
|
||||
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?json_string}`
|
||||
</#if>
|
||||
<#if serverSpecificAliases?size gt 0>
|
||||
<#if serverSpecificAliases?size gt 0 && !command.slashCommandOnly>
|
||||
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?json_string}`
|
||||
</#if>
|
||||
<#if cooldowns??>
|
||||
@@ -67,5 +79,7 @@
|
||||
<#else>
|
||||
<@safe_include "help_command_embed_command_no_parameters"/>
|
||||
</#if>
|
||||
"
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,19 +1,23 @@
|
||||
{
|
||||
"title": {
|
||||
<#assign name=module.moduleDefinition.info.name/>
|
||||
"title": "<@safe_include "help_module_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<@safe_include "help_module_embed_module_name"/>: **${name?json_string}**
|
||||
<@safe_include "help_module_embed_module_description"/>: <#if module.moduleDefinition.info.templated?? && module.moduleDefinition.info.templated><@safe_include "module_${name}_description"/><#else>${module.moduleDefinition.info.description?json_string}</#if>
|
||||
<@safe_include "help_module_embed_commands"/>:
|
||||
<#list module.commands as command>`${command.configuration.name?json_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list>
|
||||
<#if subModules?has_content && subModules?size gt 0>
|
||||
<@safe_include "help_module_embed_sub_modules"/>: <#list subModules as module>`${module.info.name?json_string}`<#sep>, </#list>
|
||||
</#if>
|
||||
",
|
||||
"footer": {
|
||||
"text": "<@safe_include "help_command_embed_hint_footer"/>"
|
||||
}
|
||||
"embeds": [
|
||||
{
|
||||
"title": {
|
||||
<#assign name=module.moduleDefinition.info.name/>
|
||||
"title": "<@safe_include "help_module_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<@safe_include "help_module_embed_module_name"/>: **${name?json_string}**
|
||||
<@safe_include "help_module_embed_module_description"/>: <#if module.moduleDefinition.info.templated?? && module.moduleDefinition.info.templated><@safe_include "module_${name}_description"/><#else>${module.moduleDefinition.info.description?json_string}</#if>
|
||||
<@safe_include "help_module_embed_commands"/>:
|
||||
<#list module.commands as command>`${command.configuration.name?json_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list>
|
||||
<#if subModules?has_content && subModules?size gt 0>
|
||||
<@safe_include "help_module_embed_sub_modules"/>: <#list subModules as module>`${module.info.name?json_string}`<#sep>, </#list>
|
||||
</#if>
|
||||
",
|
||||
"footer": {
|
||||
"text": "<@safe_include "help_command_embed_hint_footer"/>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,15 +1,19 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "help_modules_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<#list modules as module><#assign module=module/>
|
||||
**${module.info.name?json_string}**
|
||||
<#if module.info.templated?? && module.info.templated><@safe_include "module_${module.info.name}_description"/><#else>${module.info.description?json_string}</#if>
|
||||
</#list>
|
||||
",
|
||||
"footer": {
|
||||
"text": "<@safe_include "help_modules_embed_footer_hint"/>"
|
||||
}
|
||||
"embeds": [
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "help_modules_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<#list modules as module><#assign module=module/>
|
||||
**${module.info.name?json_string}**
|
||||
<#if module.info.templated?? && module.info.templated><@safe_include "module_${module.info.name}_description"/><#else>${module.info.description?json_string}</#if>
|
||||
</#list>
|
||||
",
|
||||
"footer": {
|
||||
"text": "<@safe_include "help_modules_embed_footer_hint"/>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,20 +1,25 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "listChannelGroups_embed_title"/>"
|
||||
},
|
||||
<#include "success_color">,
|
||||
<#if groups?size = 0>
|
||||
"description": "<@safe_include "listChannelGroups_no_channel_group"/>",
|
||||
</#if>
|
||||
"fields": [
|
||||
<#list groups as group>
|
||||
"embeds": [
|
||||
{
|
||||
"name": "${group.name?json_string} (<@safe_include "channel_group_type_${group.typeKey}_name"/> ${group.enabled?string('✅', '❌')})",
|
||||
"value": "
|
||||
<#if group.channelGroupInformation??><#assign model=group.channelGroupInformation.templateModel/> <@safe_include "${group.channelGroupInformation.templateName}"/></#if>
|
||||
<#list group.channels as channel><#if channel.discordChannel??>${channel.discordChannel.asMention?json_string}<#else>${channel.channel.id?c}</#if><#sep>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
|
||||
"
|
||||
}<#sep>,
|
||||
</#list>
|
||||
]
|
||||
"title": {
|
||||
"title": "<@safe_include "listChannelGroups_embed_title"/>"
|
||||
},
|
||||
<#include "success_color">,
|
||||
<#if groups?size = 0>
|
||||
"description": "<@safe_include "listChannelGroups_no_channel_group"/>"
|
||||
<#else>
|
||||
"fields": [
|
||||
<#list groups as group>
|
||||
{
|
||||
"name": "${group.name?json_string} (<@safe_include "channel_group_type_${group.typeKey}_name"/> ${group.enabled?string('✅', '❌')})",
|
||||
"value": "
|
||||
<#if group.channelGroupInformation??><#assign model=group.channelGroupInformation.templateModel/> <@safe_include "${group.channelGroupInformation.templateName}"/></#if>
|
||||
<#list group.channels as channel><#if channel.discordChannel??>${channel.discordChannel.asMention?json_string}<#else>${channel.channel.id?c}</#if><#sep>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
|
||||
"
|
||||
}<#sep>,
|
||||
</#list>
|
||||
]
|
||||
</#if>
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,14 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "posttarget_embed_title"/>"
|
||||
},
|
||||
<#include "success_color">,
|
||||
"description": "
|
||||
"embeds": [
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "posttarget_embed_title"/>"
|
||||
},
|
||||
<#include "success_color">,
|
||||
"description": "
|
||||
<#list postTargets as postTarget><#assign postTarget=postTarget/>
|
||||
<#assign postTargetName>${postTarget.postTarget.name?json_string}</#assign>
|
||||
<#assign statusIndicator>${postTarget.disabled?string('❌', '✅')}</#assign>
|
||||
<#assign channelMention><#if postTarget.channel?has_content>${postTarget.channel.asMention?json_string}<#else><@safe_include "posttarget_no_channel"/></#if></#assign>
|
||||
<@safe_include "posttarget_post_target_text"/>
|
||||
|
||||
@@ -13,4 +16,6 @@
|
||||
<@safe_include "posttarget_no_post_targets_found"/>
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "removeCommandMemberCooldown_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 "setCommandMemberCooldown_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"/>
|
||||
@@ -1,8 +1,13 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<#list effects as effect>
|
||||
`${effect}` <@safe_include "effect_type_${effect}_description"/>
|
||||
<#else><#include "showEffects_response_no_effects">
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
<#include "success_color">,
|
||||
"description": "
|
||||
"embeds": [
|
||||
{
|
||||
<#include "success_color">,
|
||||
"description": "
|
||||
<#list profanityGroups as profanityGroup><#assign profanityGroup=profanityGroup/>
|
||||
<#assign profanityGroupName>${profanityGroup.groupName?json_string}</#assign>
|
||||
<@safe_include "showProfanityConfig_group_description"/>
|
||||
@@ -16,4 +18,6 @@
|
||||
<@safe_include "showProfanityConfig_no_profanity_groups"/>
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign uptime>${fmtDuration(uptime)}</#assign>
|
||||
"description": "${uptime}",
|
||||
"footer": {
|
||||
"text": "<@safe_include "uptime_response_embed_start_date_field_title"/>"
|
||||
},
|
||||
"timeStamp": "${startDate}"
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign uptime>${fmtDuration(uptime)}</#assign>
|
||||
"description": "${uptime}",
|
||||
"footer": {
|
||||
"text": "<@safe_include "uptime_response_embed_start_date_field_title"/>"
|
||||
},
|
||||
"timeStamp": "${startDate}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
<#assign executeIn>${fmtDuration(model.reason.executeIn)}</#assign>
|
||||
<#include "format_instant">
|
||||
<#assign executeIn><@format_instant_relative instant=model.reason.executeAt/></#assign>
|
||||
<#assign reason>${model.reason.reason}</#assign>
|
||||
<#include "command_cool_down_detail_text">
|
||||
@@ -1,10 +1,14 @@
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=guildChannelMember.member/>,
|
||||
<#include "warning_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#assign model=conditionDetail.templateModel/>
|
||||
"description": "<@safe_include "${conditionDetail.templateName}"/>"
|
||||
"embeds": [
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=guildChannelMember.member/>,
|
||||
<#include "warning_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#assign model=conditionDetail.templateModel/>
|
||||
"description": "<@safe_include "${conditionDetail.templateName}"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,26 +1,31 @@
|
||||
<#include "user_user_name">
|
||||
{
|
||||
<#include "member_author">
|
||||
<#if user?has_content>
|
||||
<@member_author member=user.member/>,
|
||||
<#else>
|
||||
"author":
|
||||
{
|
||||
"name": "${fullUser.user.name?json_string}#${fullUser.user.discriminator}",
|
||||
"avatar": "${fullUser.user.effectiveAvatarUrl}"
|
||||
},
|
||||
</#if>
|
||||
<#include "exception_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#if template?has_content>
|
||||
<#if template.templateModel?has_content>
|
||||
<#assign model=template.templateModel/>
|
||||
"description": "<@safe_include "${template.templateName}"/>"
|
||||
</#if>
|
||||
<#elseif throwable.localizedMessage?has_content>
|
||||
"description": "${throwable.localizedMessage?json_string}"
|
||||
<#else>
|
||||
"description": "${throwable.class.simpleName?json_string}"
|
||||
</#if>
|
||||
"embeds": [
|
||||
{
|
||||
<#include "member_author">
|
||||
<#if user?has_content>
|
||||
<@member_author member=user.member/>,
|
||||
<#else>
|
||||
"author":
|
||||
{
|
||||
"name": "<@user_user_name user=fullUser.user/>",
|
||||
"avatar": "${fullUser.user.effectiveAvatarUrl}"
|
||||
},
|
||||
</#if>
|
||||
<#include "exception_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#if template?has_content>
|
||||
<#if template.templateModel?has_content>
|
||||
<#assign model=template.templateModel/>
|
||||
"description": "<@safe_include "${template.templateName}"/>"
|
||||
</#if>
|
||||
<#elseif throwable.localizedMessage?has_content>
|
||||
"description": "${throwable.localizedMessage?json_string}"
|
||||
<#else>
|
||||
"description": "${throwable.class.simpleName?json_string}"
|
||||
</#if>
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,20 +1,25 @@
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
<#include "exception_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true",
|
||||
"ephemeral": true
|
||||
},
|
||||
<#assign effectiveTemplate=template>
|
||||
<#if effectiveTemplate?has_content>
|
||||
<#if effectiveTemplate.templateModel?has_content>
|
||||
<#assign model=effectiveTemplate.templateModel/>
|
||||
"description": "<@safe_include "${effectiveTemplate.templateName}"/>"
|
||||
</#if>
|
||||
<#elseif throwable.localizedMessage?has_content>
|
||||
"description": "${throwable.localizedMessage?json_string}"
|
||||
<#else>
|
||||
"description": "${throwable.class.simpleName?json_string}"
|
||||
</#if>
|
||||
"embeds": [
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
<#include "exception_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#if template?has_content>
|
||||
<#if template.templateModel?has_content>
|
||||
<#assign model=template.templateModel/>
|
||||
"description": "<@safe_include "${template.templateName}"/>"
|
||||
</#if>
|
||||
<#elseif throwable.localizedMessage?has_content>
|
||||
"description": "${throwable.localizedMessage?json_string}"
|
||||
<#else>
|
||||
"description": "${throwable.class.simpleName?json_string}"
|
||||
</#if>
|
||||
}
|
||||
],
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign invalidFormat=model.invalidFormat>
|
||||
<#assign validFormat=model.validFormat>
|
||||
<#include "input_invalid_format_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign postTargetKey=model.postTargetKey>
|
||||
<#include "post_target_not_usable_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign parameterName=model.parameterName>
|
||||
<#include "slash_command_parameter_missing_exception_text">
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"label": "<@safe_include "paginator_exit_button_label"/>",
|
||||
"id": "${exitButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
"emoteMarkdown": "⏹️",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
<#if !exitOnly>
|
||||
,
|
||||
{
|
||||
"label": "<@safe_include "paginator_start_button_label"/>",
|
||||
"id": "${startButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
<#if counter = 0>
|
||||
"disabled": true,
|
||||
</#if>
|
||||
"emoteMarkdown": "⏮",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "<@safe_include "paginator_previous_button_label"/>",
|
||||
"id": "${previousButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
<#if counter = 0>
|
||||
"disabled": true,
|
||||
</#if>
|
||||
"emoteMarkdown": "◀️",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "<@safe_include "paginator_next_button_label"/>",
|
||||
"id": "${nextButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
<#if counter = chunks?size -1>
|
||||
"disabled": true,
|
||||
</#if>
|
||||
"emoteMarkdown": "▶",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "<@safe_include "paginator_last_button_label"/>",
|
||||
"id": "${lastButtonId}",
|
||||
"buttonStyle": "secondary",
|
||||
<#if counter = chunks?size -1>
|
||||
"disabled": true,
|
||||
</#if>
|
||||
"emoteMarkdown": "⏭",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
</#if>
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign page=page>
|
||||
<#assign pageCount=pageCount>
|
||||
<#include "paginator_footer_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.42</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,8 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "createCustomCommand_response_description"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"additionalMessage": "${additionalText?json_string}"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "deleteCustomCommand_response_description"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "getCustomCommand_response_text"/>"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<#assign name=command.name/>
|
||||
<#assign content=command.content/>
|
||||
<#assign creator=command.creator.memberMention/>
|
||||
<#include "listCustomCommands_entry_text">
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "listCustomCommands_no_commands_response_text"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<#list row as command><#assign command=command><@safe_include "listCustomCommands_entry"/>\n</#list>"
|
||||
}
|
||||
],
|
||||
"buttons": [
|
||||
<#include "paginator_buttons">
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
<#assign exitOnly=innerModel.customCommands?size lt 5/>
|
||||
"embedConfigs": [
|
||||
<#assign chunks=innerModel.customCommands?chunk(4)>
|
||||
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "listCustomCommands_response_entry"><#sep>,</#list>
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"restrictUser": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "custom_command_exists_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "custom_command_not_found_exception_text">
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.20</version>
|
||||
<version>1.4.42</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign choice=chosenValue>
|
||||
"description": "<@safe_include "choose_response_description"/>"
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign choice=chosenValue>
|
||||
"description": "<@safe_include "choose_response_description"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user