mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-03 23:31:19 +00:00
[AB-128] adding templates to cooldown restrictions
changing duration formatting to also show seconds in case there are 0 (if its the only time period shown)
This commit is contained in:
@@ -1 +1 @@
|
||||
<#if days gt 1><#include "duration_days"><#elseif days = 1><#include "duration_day"></#if> <#if hours gt 1><#include "duration_hours"><#elseif hours = 1><#include "duration_hour"></#if> <#if minutes gt 1><#include "duration_minutes"><#elseif minutes = 1><#include "duration_minute"></#if> <#if seconds gt 1><#include "duration_seconds"><#elseif seconds = 1><#include "duration_second"></#if>
|
||||
<#if days gt 1><#include "duration_days"><#elseif days = 1><#include "duration_day"></#if> <#if hours gt 1><#include "duration_hours"><#elseif hours = 1><#include "duration_hour"></#if> <#if minutes gt 1><#include "duration_minutes"><#elseif minutes = 1><#include "duration_minute"></#if> <#if seconds gt 1 || (seconds = 0 && days = 0 && hours = 0 && minutes = 0)><#include "duration_seconds"><#elseif seconds = 1><#include "duration_second"></#if>
|
||||
@@ -26,6 +26,24 @@
|
||||
<#if serverSpecificAliases?size gt 0>
|
||||
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?json_string}`
|
||||
</#if>
|
||||
<#if cooldowns??>
|
||||
<@safe_include "help_command_embed_command_cooldowns"/>:
|
||||
<#if cooldowns.serverCoolDown?has_content>
|
||||
<#assign serverCooldown>${fmtDuration(cooldowns.serverCoolDown)}</#assign>
|
||||
<@safe_include "help_command_embed_command_cooldown_server"/>
|
||||
|
||||
</#if>
|
||||
<#if cooldowns.channelCoolDown?has_content>
|
||||
<#assign channelCooldown>${fmtDuration(cooldowns.channelCoolDown)}</#assign>
|
||||
<@safe_include "help_command_embed_command_cooldown_channel"/>
|
||||
|
||||
</#if>
|
||||
<#if cooldowns.memberCoolDown?has_content>
|
||||
<#assign memberCooldown>${fmtDuration(cooldowns.memberCoolDown)}</#assign>
|
||||
<@safe_include "help_command_embed_command_cooldown_member"/>
|
||||
|
||||
</#if>
|
||||
</#if>
|
||||
<#if restricted?? && restricted>
|
||||
<@safe_include "help_command_embed_command_executable_by"/>:<#if allowedRoles??> <#list allowedRoles as allowedRole> ${allowedRole.asMention?json_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_executable_by_nobody"/></#list> </#if>
|
||||
<#if immuneRoles?? ><@safe_include "help_command_embed_command_immune"/>: <#list immuneRoles as immuneRole> ${immuneRole.asMention?json_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_immune_none"/></#list> </#if>
|
||||
|
||||
@@ -9,8 +9,9 @@
|
||||
"fields": [
|
||||
<#list groups as group>
|
||||
{
|
||||
"name": "${group.name?json_string} (<@safe_include "channel_group_type_${group.typeKey}_name"/>)",
|
||||
"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>,
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign executeIn>${fmtDuration(model.reason.executeIn)}</#assign>
|
||||
<#assign reason>${model.reason.reason}</#assign>
|
||||
<#include "command_cool_down_detail_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign channelGroupName>${model.channelGroupName}</#assign>
|
||||
<#include "channel_in_multiple_channel_groups_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign channelGroupName>${model.channelGroupName}</#assign>
|
||||
<#include "command_in_multiple_channel_groups_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "command_not_found_in_group_exception_text">
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign channelCoolDown>${fmtDuration(model.channelCoolDown)}</#assign>
|
||||
<#assign memberCoolDown>${fmtDuration(model.memberCoolDown)}</#assign>
|
||||
<#include "channel_group_provider_cool_down_display_text">
|
||||
Reference in New Issue
Block a user