[OPB-25] implementation of FAQ commands

This commit is contained in:
Sheldan
2021-06-10 01:11:51 +02:00
parent 377b4ef478
commit f943247e7d
157 changed files with 5106 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
{
<#include "abstracto_color">,
"description": "
<#list uses as usage>
<#assign usage=usage>
<#assign commandName=usage.faqCommandName><@safe_include "FAQUsage_command_display"/>:
<#list usage.faqChannelGroupUsages as channelGroupUsage>
<#assign channelGroupUsage=channelGroupUsage>
<#assign channelGroupName=channelGroupUsage.channelGroupName>
<#assign uses=channelGroupUsage.uses>
<@safe_include "FAQUsage_usage_display"/><#sep>, </#list>
<#else>
<@safe_include "FAQUsage_no_usages"/></#list>"
}

View File

@@ -0,0 +1,21 @@
{
<#if additionalMessage??>
"additionalMessage": "${additionalMessage?json_string}"
</#if>
<#if description?? || imageURL??>
<#include "user_author">
<#if additionalMessage??>,</#if>
<@user_author user=author/>
<#if description??>
,"description": "${description?json_string}"
</#if>
,"color" : {
"r": "${red}",
"g": "${green}",
"b": "${blue}"
}
<#if imageURL??>
,"imageUrl": "${imageURL}"
</#if>
</#if>
}

View File

@@ -0,0 +1,4 @@
{
"additionalMessage": "<@safe_include "FAQ_response_no_command_found_message"/>
<#if availableCommands?size gt 0><#assign commandNames>`${availableCommands?join('`, `')}`</#assign><@safe_include "FAQ_response_no_command_found_message_available_commands"/><#else><@safe_include "FAQ_response_no_command_found_message_no_commands"/></#if>"
}

View File

@@ -0,0 +1,20 @@
{
<#include "abstracto_color">,
"description": "
<@safe_include "listFAQCommands_command_header"/>
<#list commands as command>
<#assign command=command>
<#assign aliases>${command.aliases?join(', ')}</#assign>
<#assign commandName=command.commandName><@safe_include "listFAQCommands_command_display"/>
<#if command.aliases?size gt 0> <@safe_include "listFAQCommands_channel_group_display_aliases"/></#if>
<@safe_include "listFAQCommands_channel_groups_header"/>
<#list command.channelGroups as channelGroup>
<#assign channelGroup=channelGroup>
<#assign channelGroupName=channelGroup.channelGroupName>
<#assign responseCount=channelGroup.responseCount>
<@safe_include "listFAQCommands_channel_group_display"/><#sep>, </#list>
<#else>
<@safe_include "listFAQCommands_no_commands"/></#list>"
}