mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-24 13:44:38 +00:00
initial commit with the current state of the templates split into separate modules with assembly
This commit is contained in:
15
abstracto-modules/core/src/main/assembly/assembly.xml
Normal file
15
abstracto-modules/core/src/main/assembly/assembly.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>zip</id>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
<directory>${project.basedir}/src/main/resources</directory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
||||
@@ -0,0 +1 @@
|
||||
<#assign featureString>${features?join(", ")}</#assign><#include "disable_available_features">
|
||||
@@ -0,0 +1 @@
|
||||
${text}
|
||||
@@ -0,0 +1 @@
|
||||
<#assign featureString>${features?join(", ")}</#assign><#include "enable_available_features">
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "features_embed_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "
|
||||
<#list features as feature>
|
||||
${feature.featureFlag.enabled?string('✅', '❌')} **<#include "${feature.featureConfig.feature.key}_feature">** <#include "feature_embed_key">: `${feature.featureConfig.feature.key}`
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "help_command_embed_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "<#include "help_command_embed_command_name">: **${command.name}**
|
||||
<#include "help_command_embed_command_description">: <#if command.templated> <#include "${command.name}_description"> <#else> ${command.description} </#if>
|
||||
|
||||
<#if command.help??>
|
||||
<#if command.help.templated>
|
||||
<#include "help_command_embed_command_usage">: `<#include "${command.name}_usage">`
|
||||
<#include "help_command_embed_command_detailed_help">: <#include "${command.name}_long_help">
|
||||
<#if command.help.hasExample>
|
||||
<#include "help_command_embed_command_example">: <#include "${command.name}_example">
|
||||
</#if>
|
||||
<#else>
|
||||
<#include "help_command_embed_command_usage">: `${command.help.usage}`
|
||||
<#include "help_command_embed_command_detailed_help">: ${command.help.longHelp}
|
||||
<#if command.help.hasExample>
|
||||
<#include "help_command_embed_command_example">:${command.help.example}
|
||||
</#if>
|
||||
</#if>
|
||||
<#if command.aliases?? && command.aliases?size gt 0>
|
||||
<#include "help_command_embed_command_aliases">: `${command.aliases?join("`, `")}`
|
||||
</#if>
|
||||
<#if restricted?? && restricted>
|
||||
<#include "help_command_embed_command_executable_by">:<#if allowedRoles??> <#list allowedRoles as allowedRole> ${allowedRole.asMention}<#sep><#include "help_command_embed_or"><#else><#include "help_command_embed_command_executable_by_nobody"></#list> </#if>
|
||||
<#if immuneRoles?? ><#include "help_command_embed_command_immune">: <#list immuneRoles as immuneRole> ${immuneRole.asMention}<#sep><#include "help_command_embed_or"><#else>None</#list> </#if>
|
||||
<#else>
|
||||
<#include "help_command_embed_command_not_restricted">
|
||||
</#if>
|
||||
|
||||
</#if>
|
||||
<#include "help_command_embed_command_parameters">:
|
||||
<#if command.parameters??>
|
||||
<#list command.parameters as parameter>
|
||||
<#include "help_command_embed_command_description"> `${parameter.name}`: <#if parameter.templated?? && parameter.templated><#include "${command.name}_parameter_${parameter.name}"><#else>${(parameter.description)!""}</#if>
|
||||
<#include "help_command_embed_command_optional"><#sep>
|
||||
|
||||
<#else>
|
||||
<#include "help_command_embed_command_no_parameters">
|
||||
</#list>
|
||||
<#else>
|
||||
<#include "help_command_embed_command_no_parameters">
|
||||
</#if>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
<#assign name>${module.moduleInterface.info.name}</#assign>
|
||||
"title": {
|
||||
"title": "<#include "help_module_embed_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "
|
||||
<#include "help_module_embed_module_name">: **${module.moduleInterface.info.name}**
|
||||
<#include "help_module_embed_module_description">: ${module.moduleInterface.info.description}
|
||||
<#include "help_module_embed_commands">:
|
||||
<#list module.commands as command>`${command.configuration.name}`<#sep>, </#list>
|
||||
<#if module.subModules??>
|
||||
<#include "help_module_embed_sub_modules">: <#list module.subModules as module>`${module.info.name}`<#sep>, </#list>
|
||||
</#if>
|
||||
",
|
||||
"footer": {
|
||||
"text": "<#include "help_command_embed_hint_footer">"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "help_modules_embed_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "
|
||||
<#list modules as module>
|
||||
<#include "help_module_embed_module_name">: **${module.info.name}**
|
||||
<#include "help_module_embed_module_description">: ${module.info.description}
|
||||
</#list>
|
||||
",
|
||||
"footer": {
|
||||
"text": "<#include "help_modules_embed_footer_hint">"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "listChannelGroups_embed_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
<#if groups?size = 0>
|
||||
"description": "<#include "listChannelGroups_no_channel_group">",
|
||||
</#if>
|
||||
"fields": [
|
||||
<#list groups as group>
|
||||
{
|
||||
"name": "${group.name}",
|
||||
"value": "
|
||||
<#list group.channels as channel>${channel.discordChannel.asMention}<#sep>,</#list>
|
||||
"
|
||||
}<#sep>,
|
||||
<#else>
|
||||
</#list>
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "ping_latency_response">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "posttarget_invalid_post_target_response"> <#include "posttarget_no_target">
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<#include "posttarget_embed_title">"
|
||||
},
|
||||
"color" : {
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
"description": "
|
||||
<#list postTargets as postTarget>
|
||||
<#assign postTargetName>${postTarget.postTarget.name}</#assign>
|
||||
<#assign channelMention><#if postTarget.channel?has_content>${postTarget.channel.asMention}<#else><#include "posttarget_no_channel"></#if></#assign>
|
||||
<#include "posttarget_post_target_text">
|
||||
<#else>
|
||||
<#include "posttarget_no_post_targets_found">
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#assign featureName><#include "${featureConfig.feature.key}_feature"></#assign><#include "setup_cancellation_message">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign featureName><#include "${featureConfig.feature.key}_feature"></#assign><#include "setup_completion_message">
|
||||
@@ -0,0 +1,5 @@
|
||||
<#list actionConfigs as actionConfig>
|
||||
<#assign param=actionConfig.templateModel>
|
||||
<#include "${actionConfig.templateName}">
|
||||
|
||||
</#list>
|
||||
@@ -0,0 +1 @@
|
||||
<#assign featureName><#include "${featureConfig.feature.key}_feature"></#assign><#include "setup_initial_message_display">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign postTargetKey>${param.postTargetKey}</#assign><#assign channel>${param.channel.asMention}</#assign><#include "setup_post_target_action_display">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign currentTarget><#if currentTextChannel?has_content>${currentTextChannel.asMention}<#else><#include "setup_post_target_no_channel_set"></#if></#assign><#include "setup_posttarget_${postTargetKey}">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign configKey>${param.configKey}</#assign><#assign newValue>${param.newValue}</#assign><#include "setup_system_config_action_display">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign defaultValue=defaultConfig.valueAsString><#include "setup_config_${configKey}">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign user>${user.name}#${user.discriminator} (${user.asMention})</#assign><#include "user_joined_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign user>${user.name}#${user.discriminator} (${user.asMention})</#assign><#include "user_left_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "category_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "channel_group_exists_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "channel_group_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
The channel ${channelId} was not found in guild ${guildId}.
|
||||
@@ -0,0 +1 @@
|
||||
<#include "command_not_found_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "command_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "config_key_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "core_user_in_server_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "could_not_find_role_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "duration_invalid_time_format_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "emote_not_defined_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "emote_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign featureName><#include "${featureConfig.feature.key}_feature"></#assign><#assign featureKey>${featureConfig.feature.key}</#assign><#include "feature_disabled_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign featureName><#include "${featureConfig.feature.key}_feature"></#assign><#assign featureKey>${featureConfig.feature.key}</#assign><#assign requiredModes><#list command.featureModeLimitations as mode>`${mode.key}`<sep>, </#list></#assign><#include "feature_mode_not_correct_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign availableModes>${availableModes?join(", ")}</#assign><#include "feature_mode_not_found_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign availableFeatures>${availableFeatures?join(", ")}</#assign><#include "feature_not_found_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "guild_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign roleName>${role.name}</#assign> <#include "immune_role_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign expectedType>${class.simpleName}</#assign><#include "incorrect_parameters_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "insufficient_parameters_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign roles><#list allowedRoles as role>${role.name}<#sep>,<#else>None configured.</#list></#assign><#include "insufficient_role_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "member_not_foound_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_feature_command_found_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "parameter_too_long_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "post_target_not_found_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "post_target_not_valid_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "role_not_found_in_db_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "role_not_found_in_guild_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "setup_no_channel_provided_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign text><#if templateKey?has_content><#assign exceptionModel=templateModel><#include "${templateKey}"><#else>${message}</#if></#assign><#include "setup_step_exception_message">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign configKey>${error.templateModel['configKey']}</#assign><#include "config_key_not_setup_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#assign emoteKey>${error.templateModel['emoteKey']}</#assign><#include "emote_key_not_setup_text">
|
||||
@@ -0,0 +1,6 @@
|
||||
<#assign featureKey><#include "${featureTemplate}"></#assign><#include "feature_not_setup_message_text">
|
||||
|
||||
<#list errors as error>
|
||||
<#include "${error.templateName}">
|
||||
|
||||
</#list>
|
||||
@@ -0,0 +1 @@
|
||||
<#assign postTargetKey>${error.templateModel['postTargetKey']}</#assign><#include "post_target_not_setup_text">
|
||||
Reference in New Issue
Block a user