mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-01 07:27:32 +00:00
[AB-xxx] adding templates for getConfig command
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<@config_value_display entry=configValue/>
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<@safe_include "getConfig_no_configs_found_text"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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">
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Default
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
No value.
|
||||
@@ -0,0 +1 @@
|
||||
No config found.
|
||||
@@ -0,0 +1 @@
|
||||
Shows all or one value of the bots configuration.
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
The feature to show the configuration for.
|
||||
@@ -0,0 +1 @@
|
||||
The key to inspect.
|
||||
Reference in New Issue
Block a user