diff --git a/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_config_value_entry.ftl b/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_config_value_entry.ftl new file mode 100644 index 00000000..332f483b --- /dev/null +++ b/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_config_value_entry.ftl @@ -0,0 +1 @@ +<@config_value_display entry=configValue/> \ No newline at end of file diff --git a/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_no_configs_found_embed.ftl b/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_no_configs_found_embed.ftl new file mode 100644 index 00000000..11f34394 --- /dev/null +++ b/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_no_configs_found_embed.ftl @@ -0,0 +1,7 @@ +{ + "embeds": [ + { + "description": "<@safe_include "getConfig_no_configs_found_text"/>" + } + ] +} \ No newline at end of file diff --git a/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_response_embed.ftl b/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_response_embed.ftl new file mode 100644 index 00000000..ae7c4ba8 --- /dev/null +++ b/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_response_embed.ftl @@ -0,0 +1,10 @@ +{ + "embeds": [ + { + "description": "<#list row as configValue><#assign configValue=configValue><@safe_include "getConfig_config_value_entry"/>\n" + } + ], + "buttons": [ + <#include "paginator_buttons"> + ] +} \ No newline at end of file diff --git a/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_response_paginator.ftl b/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_response_paginator.ftl new file mode 100644 index 00000000..9a817a48 --- /dev/null +++ b/abstracto-modules/core/src/main/resources/default/commands/getConfig/getConfig_response_paginator.ftl @@ -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>, + ], + "timeoutSeconds": 120, + "restrictUser": true +} \ No newline at end of file diff --git a/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_default_label.ftl b/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_default_label.ftl new file mode 100644 index 00000000..9e4912cd --- /dev/null +++ b/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_default_label.ftl @@ -0,0 +1 @@ +Default \ No newline at end of file diff --git a/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_macro.ftl b/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_macro.ftl new file mode 100644 index 00000000..a4cd8524 --- /dev/null +++ b/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_macro.ftl @@ -0,0 +1,2 @@ +<#macro config_value_value_display entry><#if entry.longValue??>${entry.longValue?c}<#if entry.stringValue??>${entry.stringValue}<#if entry.doubleValue??>${entry.doubleValue} +<#macro config_value_display entry>${entry.key}: <#if entry.hasConcreateValue><@config_value_value_display entry=entry/><#else><#include "getConfig_display_no_concrete_value_label"> <#include "getConfig_display_default_label">: <@config_value_value_display entry=entry.defaultValue/> \ No newline at end of file diff --git a/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_no_concrete_value_label.ftl b/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_no_concrete_value_label.ftl new file mode 100644 index 00000000..90c3e08a --- /dev/null +++ b/translations/core/src/main/resources/default/commands/getConfig/getConfig_display_no_concrete_value_label.ftl @@ -0,0 +1 @@ +No value. \ No newline at end of file diff --git a/translations/core/src/main/resources/default/commands/getConfig/getConfig_no_configs_found_text.ftl b/translations/core/src/main/resources/default/commands/getConfig/getConfig_no_configs_found_text.ftl new file mode 100644 index 00000000..43584eb9 --- /dev/null +++ b/translations/core/src/main/resources/default/commands/getConfig/getConfig_no_configs_found_text.ftl @@ -0,0 +1 @@ +No config found. \ No newline at end of file diff --git a/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_description.ftl b/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_description.ftl new file mode 100644 index 00000000..dfcbca40 --- /dev/null +++ b/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_description.ftl @@ -0,0 +1 @@ +Shows all or one value of the bots configuration. \ No newline at end of file diff --git a/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_long_help.ftl b/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_long_help.ftl new file mode 100644 index 00000000..16639d70 --- /dev/null +++ b/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_long_help.ftl @@ -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. \ No newline at end of file diff --git a/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_parameter_feature.ftl b/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_parameter_feature.ftl new file mode 100644 index 00000000..fe8111ec --- /dev/null +++ b/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_parameter_feature.ftl @@ -0,0 +1 @@ +The feature to show the configuration for. \ No newline at end of file diff --git a/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_parameter_key.ftl b/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_parameter_key.ftl new file mode 100644 index 00000000..28dc2bb1 --- /dev/null +++ b/translations/core/src/main/resources/default/commands/getConfig/help/getConfig_parameter_key.ftl @@ -0,0 +1 @@ +The key to inspect. \ No newline at end of file