[AB-xxx] adding templates for getConfig command

This commit is contained in:
Sheldan
2025-12-28 23:47:07 +01:00
parent 0978c5ff7f
commit 5e30f334c4
12 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1 @@
<@config_value_display entry=configValue/>

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,2 @@
<#macro config_value_value_display entry><#if entry.longValue??>${entry.longValue?c}</#if><#if entry.stringValue??>${entry.stringValue}</#if><#if entry.doubleValue??>${entry.doubleValue}</#if></#macro>
<#macro config_value_display entry>${entry.key}: <#if entry.hasConcreateValue><@config_value_value_display entry=entry/><#else><#include "getConfig_display_no_concrete_value_label"></#if> <#include "getConfig_display_default_label">: <@config_value_value_display entry=entry.defaultValue/></#macro>

View File

@@ -0,0 +1 @@
Shows all or one value of the bots configuration.

View File

@@ -0,0 +1,2 @@
This command is used to see the currently applied configuration and default configuration of this server.
If a `key` is provided, this shows one individual configuration and all configuration entries otherwise.

View File

@@ -0,0 +1 @@
The feature to show the configuration for.