[AB-78] adding templates for feature mode changes

This commit is contained in:
Sheldan
2020-10-16 20:54:20 +02:00
parent 4cf7fd1268
commit 7c39b58ba1
26 changed files with 41 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
{
"title": {
"title": "<@safe_include "feature_modes_embed_title"/>"
},
<#include "abstracto_color">,
"description": "
<#list featureModes as featureMode>
<#assign featureName><@safe_include "${featureMode.featureConfig.feature.key}_feature"/></#assign>
<#assign featureKey=featureMode.featureConfig.feature.key>
<#assign featureModeName=featureMode.featureMode.featureMode.mode>
<#assign featureModeEnabled>${featureMode.featureMode.enabled?string('✅', '❌')}</#assign>
<#assign defaultText><@safe_include "feature_modes_embed_is_default"/></#assign>
<#assign fromDefault>${featureMode.isDefaultValue?string('(' + defaultText + ')', '')}</#assign>
<#include "feature_modes_embed_feature_mode_display">
<#else><@safe_include "feature_modes_embed_no_feature_modes_available"/></#list>
"
}

View File

@@ -0,0 +1 @@
"description": "<@safe_include "incorrect_feature_mode_exception"/>"

View File

@@ -0,0 +1,4 @@
<#assign commandName=model.command.configuration.name/>
<#assign featureName=model.featureEnum.key/>
<#assign featureModes><#list model.requiredModes as mode>${mode.key}<#sep>,</#list></#assign>
<#include "incorrect_feature_mode_exception_text">

View File

@@ -0,0 +1 @@
Features have different modes. These are small flags which dictates how a feature behaves at certain parts and a feature mode of a feature can be disabled wit this command.

View File

@@ -0,0 +1 @@
The feature to disable the feature mode for.

View File

@@ -0,0 +1 @@
Features have different modes. These are small flags which dictates how a feature behaves at certain parts and a feature mode of a feature can be enabled wit this command.

View File

@@ -0,0 +1 @@
The feature to enable the feature mode for.

View File

@@ -0,0 +1 @@
${featureName} (`${featureKey}`) with mode `${featureModeName}`: ${featureModeEnabled} ${fromDefault}

View File

@@ -0,0 +1 @@
Part of default configuration

View File

@@ -0,0 +1 @@
Currently available feature modes

View File

@@ -0,0 +1 @@
Shows the current feature mode configuration

View File

@@ -0,0 +1,3 @@
Shows the currently configured feature modes and their respective configuration: Whether or not they are enabled or not and if they are part of the default configuration.
If the current value is part of the default configuration, this means that if the default config is changed, this value changes as well.
If its not part of the default configuration, this means that this value was chosen for the server and that it will not be changed if the default configuration changes

View File

@@ -0,0 +1 @@
The feature to enable the feature mode for.

View File

@@ -1 +0,0 @@
The features of the bot have different modes. These modes influence how the features behave. With this command you can change the mode of a certain feature in this guild.

View File

@@ -0,0 +1 @@
The current feature mode of feature ${featureName} is incorrect to execute command ${commandName}. One of the following is required: ${featureModes}