[AB-xxx] adding templates related to key giveaways

This commit is contained in:
Sheldan
2024-12-25 19:58:03 +01:00
parent 862e60d1d1
commit 8be725e17d
34 changed files with 90 additions and 0 deletions

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,7 @@
{
"embeds": [
{
"description": "<@safe_include "showGiveawayKeys_no_keys_found_text"/>"
}
]
}

View File

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

View File

@@ -0,0 +1,9 @@
{
<#assign exitOnly=innerModel.keys?size lt 6/>
"embedConfigs": [
<#assign chunks=innerModel.keys?chunk(5)>
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "showGiveawayKeys_response_entry"><#sep>,</#list>
],
"timeoutSeconds": 120,
"restrictUser": true
}

View File

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

View File

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

View File

@@ -0,0 +1,15 @@
{
"embeds": [
{
"title": {
<#assign title=title?json_string>
"title": "<@safe_include "giveaway_winner_modmail_notification_title"/>"
},
<#include "abstracto_color">,
<#if description?has_content><#assign description=description?json_string></#if>
<#if benefactor?has_content><#assign benefactor=benefactor.memberMention/></#if>
<#assign key=key/>
"description": "<@safe_include "giveaway_winner_modmail_notification_description"/>"
}
]
}

View File

@@ -0,0 +1 @@
Adds a key to the list of giveaway keys

View File

@@ -0,0 +1 @@
Adds a key identified by name and key (and optional description) to the list of keys to be used in the future

View File

@@ -0,0 +1 @@
A description for the key. Will be displayed in the giveaway

View File

@@ -0,0 +1 @@
The name of the item associated with the key

View File

@@ -0,0 +1 @@
Giveaway using a key has been created.

View File

@@ -0,0 +1 @@
Creates a giveaway using a stored key.

View File

@@ -0,0 +1 @@
Shows the current giveaway keys. With an option to also show the already used ones

View File

@@ -0,0 +1 @@
${key.used?string('❌', '✅')} ${key.id} `${key.name}`: `${key.key}` <#if key.description?has_content>${key.description} </#if><#if key.creator?has_content>(created by ${key.creator.memberMention}) </#if><#if key.benefactor?has_content>Donated by: ${key.benefactor.memberMention} </#if><#if key.used && key.winner?has_content>Won by: ${key.winner.memberMention}</#if>

View File

@@ -0,0 +1 @@
Not possible to create a giveaway.

View File

@@ -0,0 +1,5 @@
The key is `${key}`.
Please answer to this message in order to confirm that you received the key.
<#if description?has_content>More details: ${description}. </#if>
<#if benefactor?has_content>It was provided by: ${benefactor}</#if>

View File

@@ -0,0 +1 @@
🎉 Congrats! You won ${title}. 🎉