mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-26 19:21:43 +00:00
[SIS-11] adding debra donation notification support
This commit is contained in:
@@ -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,5 @@
|
||||
{
|
||||
<#assign donationAmount=donationAmount>
|
||||
<#setting locale="de_DE">
|
||||
"additionalMessage": "<#include "donations_response_description">"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "donation_amount_not_found_exception_text">
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"title": {
|
||||
<#setting locale="de_DE">
|
||||
<#assign donatorName=donation.donatorName>
|
||||
<#assign donationAmount=donation.amount>
|
||||
"title": "<@safe_include "debra_donation_notification_embed_title"/>"
|
||||
},
|
||||
<#assign donationMessage=donation.message>
|
||||
"description": "${donationMessage?json_string}",
|
||||
"fields": [
|
||||
{
|
||||
<#assign totalDonationAmount=totalDonationAmount>
|
||||
"name": "<@safe_include "debra_donation_notification_embed_field_amount_title"/>",
|
||||
"value": "<@safe_include "debra_donation_notification_embed_field_amount_value"/>"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "<@safe_include "debra_donation_notification_embed_footer"/>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user