mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-07 00:30:50 +00:00
[AB-94] adding templates for show poll command
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<#include "format_instant">
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color"/>,
|
||||
<#assign pollId=id>
|
||||
<#assign description=description>
|
||||
<#assign pollCreationDate><@format_instant_date_time instant=creationDate/></#assign>
|
||||
<#assign pollTargetDate><@format_instant_date_time instant=targetDate/></#assign>
|
||||
<#assign allowMultipleStr>${allowMultiple?string('✅', '❌')}</#assign>
|
||||
<#assign showDecisionsStr>${showDecisions?string('✅', '❌')}</#assign>
|
||||
<#assign allowAdditionsStr>${allowAdditions?string('✅', '❌')}</#assign>
|
||||
<#assign totalVotes=totalVotes>
|
||||
"description": "<@safe_include "showPoll_response_description"/><#list options as option><#assign option=option><@safe_include "showPoll_response_option_display"/><#sep>\n</#list>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Option: `${option.value}` - votes: ${option.votes} (${option.percentage}%)<#if option.adder?has_content> - Added by ${option.adder.memberMention}</#if>
|
||||
@@ -0,0 +1 @@
|
||||
Shows information about a server poll
|
||||
@@ -0,0 +1,3 @@
|
||||
Shows all options and the configuration of a server poll.
|
||||
The options are shown with the current amount of votes in total and percentage amount.
|
||||
If a member added an option, this is also shown.
|
||||
@@ -0,0 +1 @@
|
||||
The ID of the server poll you want to see information about
|
||||
@@ -0,0 +1,6 @@
|
||||
Poll ${id} with description: `${description}` started at ${pollCreationDate} and lasts until ${pollTargetDate} and has ${totalVotes} total votes.
|
||||
Configuration:
|
||||
Allow multiple: ${allowMultipleStr}
|
||||
Show decisions: ${showDecisionsStr}
|
||||
Allow additions: ${allowAdditionsStr}
|
||||
|
||||
Reference in New Issue
Block a user