mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-07 01:38:29 +00:00
Compare commits
51 Commits
templates-
...
templates-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c6d3ad803 | ||
|
|
a4fa1a32bd | ||
|
|
08c96ecf46 | ||
|
|
d7dd4cd39a | ||
|
|
a9267822dc | ||
|
|
4d2294f0b4 | ||
|
|
24138cf72e | ||
|
|
d71871a924 | ||
|
|
6b6f5bcb10 | ||
|
|
3d7db690a5 | ||
|
|
0400637847 | ||
|
|
fe7558ec0d | ||
|
|
d5bd0acbfd | ||
|
|
5b238af062 | ||
|
|
efc5a72339 | ||
|
|
d0cce94d09 | ||
|
|
d94abd975b | ||
|
|
4accef7166 | ||
|
|
b57efc809a | ||
|
|
73ca42bd66 | ||
|
|
9ab95c32bc | ||
|
|
4342747ab9 | ||
|
|
2c4c1c1079 | ||
|
|
147a7142fd | ||
|
|
5828fe3bd9 | ||
|
|
17dd10af10 | ||
|
|
a941d5e90a | ||
|
|
206bf06c2c | ||
|
|
6ecc487335 | ||
|
|
dedb958bae | ||
|
|
a6caac1044 | ||
|
|
1af63c0112 | ||
|
|
5710772ebd | ||
|
|
1f879167f3 | ||
|
|
7a88e1bfe9 | ||
|
|
0f94c231e7 | ||
|
|
046e71c46e | ||
|
|
ea02284189 | ||
|
|
33daa5620e | ||
|
|
5a3dfa1e7c | ||
|
|
b3dc8f2912 | ||
|
|
4178e95c5e | ||
|
|
83ec7fc4cd | ||
|
|
26879b7952 | ||
|
|
99b631f960 | ||
|
|
123c89d454 | ||
|
|
7cc2a508ae | ||
|
|
d1e446f09c | ||
|
|
8375981633 | ||
|
|
05517b4b75 | ||
|
|
82d43b472b |
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "${place.text?js_string}",
|
||||
"description": "${place.text?json_string}",
|
||||
"fields": [
|
||||
<#list roles as role>
|
||||
{
|
||||
"name": "${role.emote.emoteRepr?js_string}",
|
||||
"value": "${role.description?js_string}",
|
||||
"name": "${role.emote.emoteRepr?json_string}",
|
||||
"value": "${role.description?json_string}",
|
||||
"inline": "${place.inline?string('true', 'false')}"
|
||||
<#if role.forceNewMessage>
|
||||
,"forceNewMessage": "true"
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
"author": { "name": "<@safe_include "delete_user_name"/>", "avatar": "https://discord.com/assets/6debd47ed13483642cf09e832ed0bc1b.png" }
|
||||
@@ -1 +1 @@
|
||||
<#if days gt 1><#include "duration_days"><#elseif days = 1><#include "duration_day"></#if> <#if hours gt 1><#include "duration_hours"><#elseif hours = 1><#include "duration_hour"></#if> <#if minutes gt 1><#include "duration_minutes"><#elseif minutes = 1><#include "duration_minute"></#if> <#if seconds gt 1><#include "duration_seconds"><#elseif seconds = 1><#include "duration_second"></#if>
|
||||
<#if days gt 1><#include "duration_days"><#elseif days = 1><#include "duration_day"></#if> <#if hours gt 1><#include "duration_hours"><#elseif hours = 1><#include "duration_hour"></#if> <#if minutes gt 1><#include "duration_minutes"><#elseif minutes = 1><#include "duration_minute"></#if> <#if seconds gt 1 || (seconds = 0 && days = 0 && hours = 0 && minutes = 0)><#include "duration_seconds"><#elseif seconds = 1><#include "duration_second"></#if>
|
||||
@@ -1 +1 @@
|
||||
<#macro full_member_info member><@member_user_name member=member/> ${member.asMention?js_string} (${member.idLong?c})</#macro>
|
||||
<#macro full_member_info member><@member_user_name member=member/> ${member.asMention?json_string} (${member.idLong?c})</#macro>
|
||||
@@ -1 +1 @@
|
||||
<#macro member_user_name member>${member.effectiveName?js_string}#${member.user.discriminator}</#macro>
|
||||
<#macro member_user_name member>${member.effectiveName?json_string}#${member.user.discriminator}</#macro>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<#macro safe_include template_key><#assign rendered><#include "${template_key}"></#assign>${rendered?js_string}</#macro>
|
||||
<#macro safe_include template_key><#assign rendered><#include "${template_key}"></#assign>${rendered?json_string}</#macro>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<#macro user_user_name user>${user.name?js_string}#${user.discriminator}</#macro>
|
||||
<#macro user_user_name user>${user.name?json_string}#${user.discriminator}</#macro>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"title": "<@safe_include "help_command_embed_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?js_string}**
|
||||
<@safe_include "help_command_embed_command_description"/>: <#if command.templated> <@safe_include "${command.name}_description"/> <#else> ${command.description?js_string} </#if>
|
||||
"description": "<@safe_include "help_command_embed_command_name"/>: **${command.name?json_string}**
|
||||
<@safe_include "help_command_embed_command_description"/>: <#if command.templated> <@safe_include "${command.name}_description"/> <#else> ${command.description?json_string} </#if>
|
||||
|
||||
<#if command.help??>
|
||||
<#if command.help.templated>
|
||||
@@ -15,31 +15,50 @@
|
||||
</#if>
|
||||
<#else>
|
||||
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
||||
**<@safe_include "help_command_embed_command_detailed_help"/>**: ${command.help.longHelp?js_string}
|
||||
**<@safe_include "help_command_embed_command_detailed_help"/>**: ${command.help.longHelp?json_string}
|
||||
<#if command.help.hasExample>
|
||||
<@safe_include "help_command_embed_command_example"/>:${command.help.example?js_string}
|
||||
<@safe_include "help_command_embed_command_example"/>:${command.help.example?json_string}
|
||||
</#if>
|
||||
</#if>
|
||||
<#if command.aliases?? && command.aliases?size gt 0>
|
||||
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?js_string}`
|
||||
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?json_string}`
|
||||
</#if>
|
||||
<#if serverSpecificAliases?size gt 0>
|
||||
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?json_string}`
|
||||
</#if>
|
||||
<#if cooldowns??>
|
||||
<@safe_include "help_command_embed_command_cooldowns"/>:
|
||||
<#if cooldowns.serverCoolDown?has_content>
|
||||
<#assign serverCooldown>${fmtDuration(cooldowns.serverCoolDown)}</#assign>
|
||||
<@safe_include "help_command_embed_command_cooldown_server"/>
|
||||
|
||||
</#if>
|
||||
<#if cooldowns.channelCoolDown?has_content>
|
||||
<#assign channelCooldown>${fmtDuration(cooldowns.channelCoolDown)}</#assign>
|
||||
<@safe_include "help_command_embed_command_cooldown_channel"/>
|
||||
|
||||
</#if>
|
||||
<#if cooldowns.memberCoolDown?has_content>
|
||||
<#assign memberCooldown>${fmtDuration(cooldowns.memberCoolDown)}</#assign>
|
||||
<@safe_include "help_command_embed_command_cooldown_member"/>
|
||||
|
||||
</#if>
|
||||
</#if>
|
||||
<#if restricted?? && restricted>
|
||||
<@safe_include "help_command_embed_command_executable_by"/>:<#if allowedRoles??> <#list allowedRoles as allowedRole> ${allowedRole.asMention?js_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_executable_by_nobody"/></#list> </#if>
|
||||
<#if immuneRoles?? ><@safe_include "help_command_embed_command_immune"/>: <#list immuneRoles as immuneRole> ${immuneRole.asMention?js_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_immune_none"/></#list> </#if>
|
||||
<@safe_include "help_command_embed_command_executable_by"/>:<#if allowedRoles??> <#list allowedRoles as allowedRole> ${allowedRole.asMention?json_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_executable_by_nobody"/></#list> </#if>
|
||||
<#else>
|
||||
<@safe_include "help_command_embed_command_not_restricted"/>
|
||||
</#if>
|
||||
|
||||
<#if effects??><@safe_include "help_command_embed_command_effects"/>: <#list effects as effect> <@safe_include "effect_type_${effect}"/><#sep>,<#else><@safe_include "help_command_embed_command_effects_none"/></#list> </#if>
|
||||
|
||||
</#if>
|
||||
**<@safe_include "help_command_embed_command_parameters"/>**:
|
||||
<#if command.parameters??>
|
||||
<#list command.parameters as parameter><#assign parameter=parameter>
|
||||
<@safe_include "help_command_embed_command_description"/> `${parameter.name?js_string}`: <#if parameter.templated?? && parameter.templated><@safe_include "${command.name}_parameter_${parameter.name}"/><#else>${(parameter.description?js_string)!""}</#if>
|
||||
<#list parameter.validators as validator><#assign validator=validator><#assign model=validator.templateModel/><@safe_include "${validator.templateName}"/>
|
||||
</#list>
|
||||
|
||||
<@safe_include "help_command_embed_command_optional"/><#sep>
|
||||
|
||||
<@safe_include "help_command_embed_command_description"/> `${parameter.name?json_string}`: <#if parameter.templated?? && parameter.templated><@safe_include "${command.name}_parameter_${parameter.name}"/><#else>${(parameter.description?json_string)!""}</#if> <@safe_include "help_command_embed_command_optional"/>
|
||||
<#list parameter.validators as validator><#assign validator=validator><#assign model=validator.templateModel/><@safe_include "${validator.templateName}"/></#list>
|
||||
<#sep>
|
||||
<#else>
|
||||
<@safe_include "help_command_embed_command_no_parameters"/>
|
||||
</#list>
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<@safe_include "help_module_embed_module_name"/>: **${name?js_string}**
|
||||
<@safe_include "help_module_embed_module_description"/>: <#if module.moduleDefinition.info.templated?? && module.moduleDefinition.info.templated><@safe_include "module_${name}_description"/><#else>${module.moduleDefinition.info.description?js_string}</#if>
|
||||
<@safe_include "help_module_embed_module_name"/>: **${name?json_string}**
|
||||
<@safe_include "help_module_embed_module_description"/>: <#if module.moduleDefinition.info.templated?? && module.moduleDefinition.info.templated><@safe_include "module_${name}_description"/><#else>${module.moduleDefinition.info.description?json_string}</#if>
|
||||
<@safe_include "help_module_embed_commands"/>:
|
||||
<#list module.commands as command>`${command.configuration.name?js_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list>
|
||||
<#list module.commands as command>`${command.configuration.name?json_string}`<#sep>, <#else><@safe_include "help_module_no_commands_available"/></#list>
|
||||
<#if subModules?has_content && subModules?size gt 0>
|
||||
<@safe_include "help_module_embed_sub_modules"/>: <#list subModules as module>`${module.info.name?js_string}`<#sep>, </#list>
|
||||
<@safe_include "help_module_embed_sub_modules"/>: <#list subModules as module>`${module.info.name?json_string}`<#sep>, </#list>
|
||||
</#if>
|
||||
",
|
||||
"footer": {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<#list modules as module><#assign module=module/>
|
||||
**${module.info.name?js_string}**
|
||||
<#if module.info.templated?? && module.info.templated><@safe_include "module_${module.info.name}_description"/><#else>${module.info.description?js_string}</#if>
|
||||
**${module.info.name?json_string}**
|
||||
<#if module.info.templated?? && module.info.templated><@safe_include "module_${module.info.name}_description"/><#else>${module.info.description?json_string}</#if>
|
||||
</#list>
|
||||
",
|
||||
"footer": {
|
||||
|
||||
@@ -9,9 +9,10 @@
|
||||
"fields": [
|
||||
<#list groups as group>
|
||||
{
|
||||
"name": "${group.name?js_string} (<@safe_include "channel_group_type_${group.typeKey}_name"/>)",
|
||||
"name": "${group.name?json_string} (<@safe_include "channel_group_type_${group.typeKey}_name"/> ${group.enabled?string('✅', '❌')})",
|
||||
"value": "
|
||||
<#list group.channels as channel><#if channel.discordChannel??>${channel.discordChannel.asMention?js_string}<#else>${channel.channel.id?c}</#if><#sep>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
|
||||
<#if group.channelGroupInformation??><#assign model=group.channelGroupInformation.templateModel/> <@safe_include "${group.channelGroupInformation.templateName}"/></#if>
|
||||
<#list group.channels as channel><#if channel.discordChannel??>${channel.discordChannel.asMention?json_string}<#else>${channel.channel.id?c}</#if><#sep>,<#else> <@safe_include "listChannelGroups_no_channels"/></#list>
|
||||
"
|
||||
}<#sep>,
|
||||
</#list>
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
<#include "success_color">,
|
||||
"description": "
|
||||
<#list postTargets as postTarget><#assign postTarget=postTarget/>
|
||||
<#assign postTargetName>${postTarget.postTarget.name?js_string}</#assign>
|
||||
<#assign channelMention><#if postTarget.channel?has_content>${postTarget.channel.asMention?js_string}<#else><@safe_include "posttarget_no_channel"/></#if></#assign>
|
||||
<#assign postTargetName>${postTarget.postTarget.name?json_string}</#assign>
|
||||
<#assign channelMention><#if postTarget.channel?has_content>${postTarget.channel.asMention?json_string}<#else><@safe_include "posttarget_no_channel"/></#if></#assign>
|
||||
<@safe_include "posttarget_post_target_text"/>
|
||||
|
||||
<#else>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "
|
||||
<#list effects as effect>
|
||||
`${effect}` <@safe_include "effect_type_${effect}_description"/>
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
<#include "success_color">,
|
||||
"description": "
|
||||
<#list profanityGroups as profanityGroup><#assign profanityGroup=profanityGroup/>
|
||||
<#assign profanityGroupName>${profanityGroup.groupName?json_string}</#assign>
|
||||
<@safe_include "showProfanityConfig_group_description"/>
|
||||
|
||||
<#list profanityGroup.profanities as profanity>
|
||||
<#assign profanityRegexName>${profanity.regexName?json_string}</#assign><#assign profanityRegex>${profanity.regex?json_string}</#assign><#if profanity.replacement??><#assign profanityReplacement>${profanity.replacement?json_string}</#assign></#if>
|
||||
<@safe_include "showProfanityConfig_profanity_regex_display"/><#assign profanityReplacement=""/>
|
||||
|
||||
<#else>
|
||||
<@safe_include "showProfanityConfig_no_profanity_regex"/>
|
||||
</#list>
|
||||
<#else>
|
||||
<@safe_include "showProfanityConfig_no_profanity_groups"/>
|
||||
</#list>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign uptime>${fmtDuration(uptime)}</#assign>
|
||||
"description": "${uptime}",
|
||||
"footer": {
|
||||
"text": "<@safe_include "uptime_response_embed_start_date_field_title"/>"
|
||||
},
|
||||
"timeStamp": "${startDate}"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign executeIn>${fmtDuration(model.reason.executeIn)}</#assign>
|
||||
<#assign reason>${model.reason.reason}</#assign>
|
||||
<#include "command_cool_down_detail_text">
|
||||
@@ -2,7 +2,9 @@
|
||||
<#include "member_author">
|
||||
<@member_author member=guildChannelMember.member/>,
|
||||
<#include "warning_color">,
|
||||
"preventEmptyEmbed": "true",
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#assign model=conditionDetail.templateModel/>
|
||||
"description": "<@safe_include "${conditionDetail.templateName}"/>"
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
<#assign roleName>${model.role.name}</#assign>
|
||||
<#assign effect><#include "effect_type_${model.effectTypeKey}"></#assign>
|
||||
<#include "immune_role_exception_text">
|
||||
@@ -1 +0,0 @@
|
||||
<#assign user>${user.name}#${user.discriminator} (${user.asMention})</#assign><@safe_include "user_joined_text"/>
|
||||
@@ -1 +0,0 @@
|
||||
<#assign user>${user.name}#${user.discriminator} (${user.asMention})</#assign><@safe_include "user_left_text"/>
|
||||
@@ -0,0 +1 @@
|
||||
<#assign name=model.name><#assign correctType=model.correctType><#include "channel_group_incorrect_type_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign channelGroupName>${model.channelGroupName}</#assign>
|
||||
<#include "channel_in_multiple_channel_groups_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign channelGroupName>${model.channelGroupName}</#assign>
|
||||
<#include "command_in_multiple_channel_groups_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign existingCommandName=model.existingCommand>
|
||||
<#include "command_in_server_alias_already_exists_exception_text">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign existingCommandName=model.existingCommand>
|
||||
<#include "command_in_server_alias_hides_command_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "command_in_server_alias_not_exists_exists_exception">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "command_not_found_in_group_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "effect_type_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "everyone_role_not_allowed_exception_text">
|
||||
@@ -5,20 +5,22 @@
|
||||
<#else>
|
||||
"author":
|
||||
{
|
||||
"name": "${fullUser.user.name?js_string}#${fullUser.user.discriminator}",
|
||||
"name": "${fullUser.user.name?json_string}#${fullUser.user.discriminator}",
|
||||
"avatar": "${fullUser.user.effectiveAvatarUrl}"
|
||||
},
|
||||
</#if>
|
||||
<#include "exception_color">,
|
||||
"preventEmptyEmbed": "true",
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true"
|
||||
},
|
||||
<#if template?has_content>
|
||||
<#if template.templateModel?has_content>
|
||||
<#assign model=template.templateModel/>
|
||||
"description": "<@safe_include "${template.templateName}"/>"
|
||||
</#if>
|
||||
<#elseif throwable.localizedMessage?has_content>
|
||||
"description": "${throwable.localizedMessage?js_string}"
|
||||
"description": "${throwable.localizedMessage?json_string}"
|
||||
<#else>
|
||||
"description": "${throwable.class.simpleName?js_string}"
|
||||
"description": "${throwable.class.simpleName?json_string}"
|
||||
</#if>
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
<#assign featureName=model.featureEnum.key/>
|
||||
<#assign featureName=model.featureDefinition.key/>
|
||||
<#assign featureModes><#list model.requiredModes as mode>${mode.key}<#sep>,</#list></#assign>
|
||||
<#include "incorrect_feature_mode_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "profanity_group_exists_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "profanity_group_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "profanity_regex_exists_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "profanity_regex_not_found_exception_text">
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign channelCoolDown>${fmtDuration(model.channelCoolDown)}</#assign>
|
||||
<#assign memberCoolDown>${fmtDuration(model.memberCoolDown)}</#assign>
|
||||
<#include "channel_group_provider_cool_down_display_text">
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#assign mockingText=mockingText>
|
||||
<#assign originalText=originalText>
|
||||
"description": "<@safe_include "mock_response_text"/>",
|
||||
"thumbnail": "https://i.imgur.com/upItEiG.jpg"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "react_duplicate_character_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "react_too_many_reactions_exception_text">
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>experience-tracking</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<#include "success_color">,
|
||||
"description": "
|
||||
<#list roles as role>
|
||||
${role.role.asMention?js_string}
|
||||
${role.role.asMention?json_string}
|
||||
<#else>
|
||||
<@safe_include "list_disabled_experience_roles_embed_no_roles"/>
|
||||
</#list>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_experience_tracked_exception_text">
|
||||
35
abstracto-modules/invite-filter/pom.xml
Normal file
35
abstracto-modules/invite-filter/pom.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>invite-filter</artifactId>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<finalName>invite-filter-templates-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -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>
|
||||
@@ -4,7 +4,7 @@
|
||||
},
|
||||
<#include "success_color">,
|
||||
"description": "<#list inviteLinks as link><#assign link=link/>
|
||||
<#assign linkText>${link.code}</#assign>
|
||||
<#assign linkText>${link.serverName}</#assign>
|
||||
<#assign linkUses>${link.uses}</#assign>
|
||||
<@safe_include "tracked_invite_links_link_display"/><#else><@safe_include "tracked_invite_links_no_links"/>
|
||||
</#list>"
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "invite_link_deleted_message_link_title"/>",
|
||||
"value": "[${channel.name?js_string}](${message.jumpUrl})"
|
||||
"value": "[${channel.name?json_string}](${message.jumpUrl})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -1,28 +1,45 @@
|
||||
{
|
||||
<#include "user_author">
|
||||
<@user_author user=author/>,
|
||||
<#if author??>
|
||||
<#include "user_author">
|
||||
<@user_author user=author/>
|
||||
<#else>
|
||||
<#include "deleted_user_author"/>
|
||||
</#if>,
|
||||
<#include "abstracto_color">,
|
||||
<#if embeddedMessage.content?has_content || embeddedMessage.embeds?size gt 0>
|
||||
"description": "${embeddedMessage.content?js_string}
|
||||
"description": "${embeddedMessage.content?json_string}
|
||||
<#list embeddedMessage.embeds>
|
||||
<@safe_include "message_embed_embed_embeds_name"/>:
|
||||
<#items as embed><#assign embed=embed/>
|
||||
<@safe_include "message_embed_embed_description"/>: <#if embed.description?has_content >${embed.description?js_string}</#if> <#if embed.imageUrl?has_content> <@safe_include "message_embed_embed_image_url"/>: ${embed.imageUrl} </#if>
|
||||
<@safe_include "message_embed_embed_description"/>: <#if embed.description?has_content >${embed.description?json_string}</#if> <#if embed.imageUrl?has_content> <@safe_include "message_embed_embed_image_url"/>: ${embed.imageUrl} </#if>
|
||||
</#items>
|
||||
</#list>
|
||||
",
|
||||
</#if>
|
||||
<#if embeddedMessage.attachments?size gt 0>
|
||||
"imageUrl": "${embeddedMessage.attachments[0].proxyUrl}",
|
||||
<#elseif embeddedMessage.attachments?size = 0 && embeddedMessage.embeds?size gt 0 && embeddedMessage.embeds[0].cachedThumbnail??>
|
||||
"imageUrl": "${embeddedMessage.embeds[0].cachedThumbnail.proxyUrl}",
|
||||
<#elseif embeddedMessage.attachments?size = 0 && embeddedMessage.embeds?size gt 0 && embeddedMessage.embeds[0].cachedImageInfo??>
|
||||
"imageUrl": "${embeddedMessage.embeds[0].cachedImageInfo.proxyUrl}",
|
||||
</#if>
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "message_embed_embed_quoted_by_field_title"/>",
|
||||
<#assign user>${embeddingUser.asMention?js_string}</#assign>
|
||||
<#assign channelName>${sourceChannel.name?js_string}</#assign>
|
||||
<#assign user>${embeddingUser.asMention?json_string}</#assign>
|
||||
<#assign channelName>${sourceChannel.name?json_string}</#assign>
|
||||
<#assign messageLink>${embeddedMessage.messageUrl}</#assign>
|
||||
"value": "<@safe_include "message_embed_embed_quoted_by_field_value"/>"
|
||||
}
|
||||
<#if embeddedMessage.referencedMessage??>
|
||||
,
|
||||
{
|
||||
<#assign referencedMessageLink=embeddedMessage.referencedMessage.messageUrl/>
|
||||
<#assign repliedToAuthorMention>${r"<@"}${embeddedMessage.referencedMessage.author.authorId?c}${r">"}</#assign>
|
||||
"name": "<@safe_include "message_embed_embed_referenced_message_field_title"/>",
|
||||
"value": "<@safe_include "message_embed_embed_referenced_message_field_value"/>"
|
||||
}
|
||||
</#if>
|
||||
],
|
||||
"timeStamp": "${embeddedMessage.timeCreated}"
|
||||
}
|
||||
36
abstracto-modules/logging/pom.xml
Normal file
36
abstracto-modules/logging/pom.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>logging</artifactId>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<finalName>logging-templates-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
15
abstracto-modules/logging/src/main/assembly/assembly.xml
Normal file
15
abstracto-modules/logging/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>
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"imageUrl": "${imageUrl}",
|
||||
<#include "abstracto_color"/>,
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "messageDeleted_attachment_link_field_title"/>",
|
||||
@@ -6,11 +6,11 @@
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "messageDeleted_original_message_field_title"/>",
|
||||
"value": "${cachedMessage.content?js_string}"
|
||||
"value": "${cachedMessage.content?json_string}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "messageDeleted_message_link_field_title"/>",
|
||||
"value": "[${channel.name?js_string}](${cachedMessage.messageUrl})"
|
||||
"value": "[${channel.name?json_string}](${cachedMessage.messageUrl})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"imageUrl": "${imageUrl}",
|
||||
<#include "abstracto_color"/>,
|
||||
"description": "<@safe_include "messageEdited_attachment_removed_description"/>",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "messageDeleted_attachment_link_field_title"/>",
|
||||
"value": "[<@safe_include "messageDeleted_attachment_link_display_text"/>](${imageUrl})"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"text": "<@safe_include "messageDeleted_attachment_footer"/> #${counter}"
|
||||
}
|
||||
}
|
||||
@@ -6,15 +6,15 @@
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "messageEdited_original_message_field_title"/>",
|
||||
"value": "${messageBefore.content?js_string}"
|
||||
"value": "${messageBefore.content?json_string}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "messageEdited_new_message_field_title"/>",
|
||||
"value": "${messageAfter.contentRaw?js_string}"
|
||||
"value": "${messageAfter.contentRaw?json_string}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "messageEdited_link_field_title"/>",
|
||||
"value": "[${messageChannel.name?js_string}](${messageBefore.messageUrl})"
|
||||
"value": "[${messageChannel.name?json_string}](${messageBefore.messageUrl})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
<#assign user>${member.user.name}#${member.user.discriminator} (${member.asMention}: ${member.id})</#assign>
|
||||
"description": "<@safe_include "user_joined_text"/>",
|
||||
<#include "abstracto_color"/>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
<#assign user>${user.name}#${user.discriminator} (${user.id})</#assign>
|
||||
"description": "<@safe_include "user_left_text"/>",
|
||||
<#include "abstracto_color"/>
|
||||
}
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>moderation</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
|
||||
"value": "[${messageChannel.name?js_string}](${message.jumpUrl})"
|
||||
"value": "[${messageChannel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "ban_log_reason_field_title"/>",
|
||||
"value": "${reason?js_string}"
|
||||
"value": "${reason?json_string}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,11 +15,11 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
|
||||
"value": "[${messageChannel.name?js_string}](${message.jumpUrl})"
|
||||
"value": "[${messageChannel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "ban_log_reason_field_title"/>",
|
||||
"value": "${reason?js_string}"
|
||||
"value": "${reason?json_string}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -17,11 +17,11 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "kick_log_jump_link_field_title"/>",
|
||||
"value": "[${channel.name?js_string}](${message.jumpUrl})"
|
||||
"value": "[${channel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "kick_log_reason_field_title"/>",
|
||||
"value": "${reason?js_string}"
|
||||
"value": "${reason?json_string}"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -18,10 +18,10 @@
|
||||
},
|
||||
<#include "success_color">,
|
||||
"description": "<#list userNotes as note><#assign note=note/>
|
||||
<#assign user><#if note.fullUser.member?has_content>${note.fullUser.member.asMention?js_string}<#else>${note.fullUser.aUserInAServer.userReference.id?c}</#if></#assign>
|
||||
<#assign noteText>${note.note.note?js_string}</#assign>
|
||||
<#assign user><#if note.fullUser.member?has_content>${note.fullUser.member.asMention?json_string}<#else>${note.fullUser.aUserInAServer.userReference.id?c}</#if></#assign>
|
||||
<#assign noteText>${note.note.note?json_string}</#assign>
|
||||
<#assign noteId>${note.note.userNoteId.id}</#assign>
|
||||
<#assign date>${formatDate(note.note.created, "yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#assign date>${formatDate(note.note.created, "yyyy-MM-dd HH:mm:ss zz")}</#assign>
|
||||
<@safe_include "user_notes_note_entry"/><#else><@safe_include "user_notes_no_notes"/>
|
||||
</#list>"
|
||||
}
|
||||
@@ -17,11 +17,11 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
|
||||
"value": "[${contextChannel.name?js_string}](${message.jumpUrl})"
|
||||
"value": "[${contextChannel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
|
||||
"value": "${reason?js_string}"
|
||||
"value": "${reason?json_string}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
|
||||
@@ -29,7 +29,7 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_muted_until_field_title"/>",
|
||||
"value": "${formatDate(muteTargetDate, "yyyy-MM-dd HH:mm:ss")}"
|
||||
"value": "${formatDate(muteTargetDate, "yyyy-MM-dd HH:mm:ss zz")}"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "unMute_log_muted_since_field_title"/>",
|
||||
"value": "${formatDate(mute.muteDate, "yyyy-MM-dd HH:mm:ss")}"
|
||||
"value": "${formatDate(mute.muteDate, "yyyy-MM-dd HH:mm:ss zz")}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
|
||||
@@ -40,7 +40,7 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
|
||||
"value": "${mute.reason?js_string}"
|
||||
"value": "${mute.reason?json_string}"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "warn_log_warn_location_field_title"/>",
|
||||
"value": "[${channel.name?js_string}](${message.jumpUrl})"
|
||||
"value": "[${channel.name?json_string}](${message.jumpUrl})"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "warn_log_warn_reason_field_title"/>",
|
||||
"value": "${reason?js_string}"
|
||||
"value": "${reason?json_string}"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<#assign reason>${warning.warning.reason}</#assign>
|
||||
<#assign warnedUserText><#if warning.warnedUser.member??>${warning.warnedUser.member.asMention}(${warning.warnedUser.member.user.id})<#else>${warning.warnedUser.aUserInAServer.id?c}</#if></#assign>
|
||||
<#assign warningUserText><#if warning.warningUser.member??>${warning.warningUser.member.asMention}(${warning.warningUser.member.user.id})<#else>${warning.warningUser.aUserInAServer.id?c}</#if></#assign>
|
||||
<#assign warnDate>${formatDate(warning.warning.warnDate, "yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#assign warnDate>${formatDate(warning.warning.warnDate, "yyyy-MM-dd HH:mm:ss zz")}</#assign>
|
||||
|
||||
<#include "warnings_warn_entry_text">
|
||||
<#if warning.warning.decayed>
|
||||
<#assign decayDate>${formatDate(warning.warning.decayDate, "yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#assign decayDate>${formatDate(warning.warning.decayDate, "yyyy-MM-dd HH:mm:ss zz")}</#assign>
|
||||
<#include "warnings_warn_is_decayed">
|
||||
</#if>
|
||||
@@ -4,7 +4,7 @@
|
||||
},
|
||||
<#include "moderation_action_color">,
|
||||
"description": "<#list warnings as warning><#assign warning=warning/>
|
||||
<#if warning.warnedMember??><#assign warnedUser>${warning.warnedMember.asMention?js_string} (${warning.warnedMember.id?c})</#assign><#else><#assign warnedUser> ${warning.warnedUser.userId?c}</#assign></#if> <#if warning.warningMember??><#assign warningUser> ${warning.warningMember.asMention?js_string} (${warning.warningMember.id})</#assign><#else><#assign warningUser>${warning.warningUser.warningUser.userId?c}</#assign></#if> <#assign warnDate>${formatDate(warning.warning.warnDate, "yyyy-MM-dd HH:mm:ss")}</#assign><#assign warnReason=warning.warning.reason/> <@safe_include "warnDecay_log_warn_entry"/>
|
||||
<#if warning.warnedMember??><#assign warnedUser>${warning.warnedMember.asMention?json_string} (${warning.warnedMember.id?c})</#assign><#else><#assign warnedUser> ${warning.warnedUser.userId?c}</#assign></#if> <#if warning.warningMember??><#assign warningUser> ${warning.warningMember.asMention?json_string} (${warning.warningMember.id})</#assign><#else><#assign warningUser>${warning.warningUser.warningUser.userId?c}</#assign></#if> <#assign warnDate>${formatDate(warning.warning.warnDate, "yyyy-MM-dd HH:mm:ss zz")}</#assign><#assign warnReason=warning.warning.reason/> <@safe_include "warnDecay_log_warn_entry"/>
|
||||
<#else>
|
||||
<@safe_include "warnDecay_log_no_warnings"/>
|
||||
</#list>"
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>modmail</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
}
|
||||
]
|
||||
<#if roles?size gt 0>
|
||||
,"additionalMessage": "<#list roles as role>${role.role.asMention?js_string}<#sep>,</#list>"
|
||||
,"additionalMessage": "<#list roles as role>${role.role.asMention?json_string}<#sep>,</#list>"
|
||||
</#if>
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
},
|
||||
<#include "modmail_color">,
|
||||
<#if postedMessage.contentRaw?has_content>
|
||||
"description": "${postedMessage.contentRaw?js_string}"
|
||||
"description": "${postedMessage.contentRaw?json_string}"
|
||||
</#if>
|
||||
<#if postedMessage.attachments?size gt 0>
|
||||
<#if postedMessage.contentRaw?has_content>,</#if>
|
||||
@@ -14,6 +14,6 @@
|
||||
</#if>
|
||||
<#if subscribers?size gt 0>
|
||||
<#if postedMessage.contentRaw?has_content || postedMessage.attachments?size gt 0>,</#if>
|
||||
"additionalMessage": "<#list subscribers as subscriber>${subscriber.member.asMention?js_string}<#sep>,</#list>"
|
||||
"additionalMessage": "<#list subscribers as subscriber>${subscriber.member.asMention?json_string}<#sep>,</#list>"
|
||||
</#if>
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
<#include "modmail_color">,
|
||||
<#assign messageCount>${closedThread.messages?size}</#assign>
|
||||
<#assign user>user</#assign>
|
||||
<#assign startDate>${formatDate(closedThread.created,"yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#assign startDate>${formatDate(closedThread.created,"yyyy-MM-dd HH:mm:ss zz")}</#assign>
|
||||
<#assign duration>${fmtDuration(duration)}</#assign>
|
||||
"description": "<@safe_include "close_closing_description"/>"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<@member_author member=author/>,
|
||||
<#include "modmail_color">
|
||||
<#if message.embeds[0].description?has_content>
|
||||
,"description": "${message.embeds[0].description?js_string}"
|
||||
,"description": "${message.embeds[0].description?json_string}"
|
||||
</#if>
|
||||
<#if message.embeds[0].image?has_content>
|
||||
,"imageUrl": "${message.embeds[0].image.proxyUrl}"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
<#include "modmail_color">,
|
||||
"description": "${closingMessage?js_string}"
|
||||
"description": "${closingMessage?json_string}"
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
},
|
||||
<#include "modmail_color">
|
||||
<#if text?has_content>
|
||||
, "description": "${text?js_string}"
|
||||
, "description": "${text?json_string}"
|
||||
</#if>
|
||||
<#if postedMessage.attachments?size gt 0>
|
||||
,"imageUrl": "${postedMessage.attachments[0].proxyUrl}"
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
<#include "modmail_color">,
|
||||
<#assign user><@member_user_name member=member/> (${member.user.id})</#assign>
|
||||
<#assign joinDate>${member.timeJoined}</#assign>
|
||||
<#assign roles><#list member.roles as role>${role.asMention?js_string}<#sep>,<#else><@safe_include "modmail_thread_header_no_roles"/></#list></#assign>
|
||||
<#assign roles><#list member.roles as role>${role.asMention?json_string}<#sep>,<#else><@safe_include "modmail_thread_header_no_roles"/></#list></#assign>
|
||||
"description": "<@safe_include "modmail_thread_header_embed_description"/>"
|
||||
}
|
||||
@@ -4,14 +4,14 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates</groupId>
|
||||
<artifactId>templates</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
|
||||
<modules>
|
||||
<module>core</module>
|
||||
@@ -27,6 +27,10 @@
|
||||
<module>repost-detection</module>
|
||||
<module>starboard</module>
|
||||
<module>suggestion</module>
|
||||
<module>webservices</module>
|
||||
<module>logging</module>
|
||||
<module>invite-filter</module>
|
||||
<module>profanity-filter</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
34
abstracto-modules/profanity-filter/pom.xml
Normal file
34
abstracto-modules/profanity-filter/pom.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>profanity-filter</artifactId>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<finalName>profanity-filter-templates-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -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,32 @@
|
||||
{
|
||||
<#include "full_member_info">
|
||||
<#include "abstracto_color">,
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "profanities_response_embed_true_profanities_field_title"/>",
|
||||
"value": "${truePositives?c}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "profanities_response_embed_false_profanities_field_title"/>",
|
||||
"value": "${falsePositives?c}",
|
||||
"inline": "true"
|
||||
}<#if recentPositiveReports?size gt 0>
|
||||
,
|
||||
{
|
||||
"name": "",
|
||||
"value": "",
|
||||
"inline": "true"
|
||||
},
|
||||
<#list recentPositiveReports as report><#assign report=report>
|
||||
{
|
||||
<#assign reportIndex>${report?index + 1}</#assign>
|
||||
"name": "<@safe_include "profanities_response_embed_true_profanities_report_field_value"/>",
|
||||
"value": "[<@safe_include "profanities_response_embed_true_profanities_link_field_title"/>](${report.jumpUrl})",
|
||||
"inline": "true"
|
||||
}<#sep>,</#list>
|
||||
</#if>
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
<#include "full_member_info">
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "profanityListener_report_embed_description"/>",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "profanityListener_report_embed_member_field_title"/>",
|
||||
"value": "<@full_member_info member=profaneMessage.member/>",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "profanityListener_report_embed_message_link_field_title"/>",
|
||||
"value": "[${profaneMessage.channel.name?json_string}](${profaneMessage.jumpUrl?json_string})",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "profanityListener_report_embed_profanity_type_field_title"/>",
|
||||
"value": "${profanityGroupKey}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "profanityListener_report_embed_message_content_field_title"/>",
|
||||
"value": "${profaneMessage.contentRaw}",
|
||||
"inline": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "remind_reminder_note_field_title"/>",
|
||||
"value": "${reminder.text?js_string}"
|
||||
"value": "${reminder.text?json_string}"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "remind_reminder_link_field_title"/>",
|
||||
"value": "[<@safe_include "remind_reminder_link_content_display_text"/>](${messageUrl})"
|
||||
}
|
||||
],
|
||||
"additionalMessage": "${member.asMention?js_string}"
|
||||
"additionalMessage": "${member.asMention?json_string} 🔔"
|
||||
}
|
||||
@@ -5,5 +5,5 @@
|
||||
<@member_author member=member/>,
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "remind_reminding_description_text"/>",
|
||||
"additionalMessage": "${member.asMention?js_string}"
|
||||
"additionalMessage": "${member.asMention?json_string}"
|
||||
}
|
||||
@@ -5,16 +5,21 @@
|
||||
"title": {
|
||||
"title": "<@safe_include "reminders_reminders_embed_title"/>"
|
||||
},
|
||||
"fields": [
|
||||
<#list reminders as reminder><#assign reminder=reminder/>
|
||||
{
|
||||
<#assign id>${reminder.id}</#assign>
|
||||
<#assign reminderTargetDate>${formatDate(reminder.targetDate,"yyyy-MM-dd HH:mm:ss")}</#assign>
|
||||
<#assign reminderText=reminder.text/>
|
||||
"name": "<@safe_include "reminders_reminder_field_title"/>",
|
||||
"value": "<@safe_include "reminders_due_on"/>"
|
||||
}
|
||||
<#sep>,
|
||||
</#list>
|
||||
]
|
||||
<#if reminders?size = 0>
|
||||
"description": "<@safe_include "reminders_no_reminders"/>"
|
||||
<#else>
|
||||
"fields": [
|
||||
<#list reminders as reminderDisplay><#assign reminderDisplay=reminderDisplay/>
|
||||
{
|
||||
<#assign id>${reminderDisplay.reminder.id}</#assign>
|
||||
<#assign reminderTargetDate>${formatDate(reminderDisplay.reminder.targetDate,"yyyy-MM-dd HH:mm:ss zz")}</#assign>
|
||||
<#assign reminderText=reminderDisplay.reminder.text/>
|
||||
<#assign messageLink=reminderDisplay.message.jumpUrl/>
|
||||
"name": "<@safe_include "reminders_reminder_field_title"/>",
|
||||
"value": "<@safe_include "reminders_due_on"/>"
|
||||
}
|
||||
<#sep>,
|
||||
</#list>
|
||||
]
|
||||
</#if>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "reminder_snooze_not_possible_exception_text">
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<#list starGiver as starrer><#assign starrer=starrer/>
|
||||
<#assign badge>${badgeEmotes[starrer?index]}</#assign><#assign count>${starrer.starCount}</#assign>
|
||||
<#if starrer.member?has_content>
|
||||
<#assign user>${starrer.member.asMention?js_string}</#assign> <@safe_include "starStats_starrer_entry"/>
|
||||
<#assign user>${starrer.member.asMention?json_string}</#assign> <@safe_include "starStats_starrer_entry"/>
|
||||
<#else>
|
||||
<#assign user>${starrer.user.userReference.id?c}</#assign> <@safe_include "starStats_starrer_entry_left_guild"/>
|
||||
</#if>
|
||||
@@ -35,7 +35,7 @@
|
||||
<#list starReceiver as starred><#assign starred=starred/>
|
||||
<#assign badge>${badgeEmotes[starred?index]}</#assign><#assign count>${starred.starCount}</#assign>
|
||||
<#if starred.member?has_content>
|
||||
<#assign user>${starred.member.asMention?js_string}</#assign> <@safe_include "starStats_receiver_entry"/>
|
||||
<#assign user>${starred.member.asMention?json_string}</#assign> <@safe_include "starStats_receiver_entry"/>
|
||||
<#else>
|
||||
<#assign user>${starred.user.userReference.id?c}</#assign> <@safe_include "starStats_receiver_entry_left_guild"/>
|
||||
</#if>
|
||||
|
||||
@@ -1,35 +1,43 @@
|
||||
{
|
||||
<#include "user_author">
|
||||
<@user_author user=author/>,
|
||||
<#if author??>
|
||||
<#include "user_author">
|
||||
<@user_author user=author/>
|
||||
<#else>
|
||||
<@safe_include "deleted_user_author"/>
|
||||
</#if>,
|
||||
<#include "abstracto_color">,
|
||||
<#if message.content?has_content || message.embeds?size gt 0>
|
||||
"description": "${message.content?js_string}
|
||||
"description": "${message.content?json_string}
|
||||
<#list message.embeds>
|
||||
<@safe_include "starboard_post_embed_embeds_name"/>:
|
||||
<#items as embed>
|
||||
<@safe_include "starboard_post_embed_description"/>: ${embed.description?js_string} <#if embed.imageUrl?has_content> <@safe_include "starboard_post_embed_image_url"/>: ${embed.imageUrl} </#if>
|
||||
<#if embed.description??> <@safe_include "starboard_post_embed_description"/>: ${embed.description?json_string} </#if> <#if embed.imageUrl?has_content> <@safe_include "starboard_post_embed_image_url"/>: ${embed.imageUrl} </#if>
|
||||
</#items>
|
||||
</#list>
|
||||
"
|
||||
",
|
||||
</#if>
|
||||
<#assign emote>${starLevelEmote}</#assign>
|
||||
<#assign count>${starCount}</#assign>
|
||||
<#assign messageId>${message.messageId?c}</#assign>
|
||||
<#if channel?has_content>
|
||||
<#assign channelMention>${channel.asMention?js_string}</#assign>
|
||||
,"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
|
||||
<#assign channelMention>${channel.asMention?json_string}</#assign>
|
||||
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
|
||||
<#else>
|
||||
<#assign channelMention>${sourceChannelId?c}</#assign>
|
||||
,"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
|
||||
</#if>
|
||||
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
|
||||
</#if>,
|
||||
<#if message.attachments?size gt 0>
|
||||
,"imageUrl": "${message.attachments[0].proxyUrl}"
|
||||
"imageUrl": "${message.attachments[0].proxyUrl}",
|
||||
<#elseif message.attachments?size = 0 && message.embeds?size gt 0 && message.embeds[0].cachedThumbnail??>
|
||||
"imageUrl": "${message.embeds[0].cachedThumbnail.proxyUrl}",
|
||||
<#elseif message.attachments?size = 0 && message.embeds?size gt 0 && message.embeds[0].cachedImageInfo??>
|
||||
"imageUrl": "${message.embeds[0].cachedImageInfo.proxyUrl}",
|
||||
</#if>
|
||||
,"fields": [
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "starboard_post_embed_original_field_title"/>"
|
||||
<#if channel?has_content>
|
||||
,"value": "[${channel.name?js_string}](${message.messageUrl})"
|
||||
,"value": "[${channel.name?json_string}](${message.messageUrl})"
|
||||
<#else>
|
||||
,"value": "[${sourceChannelId?c}](${message.messageUrl})"
|
||||
</#if>
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>statistic</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2.8</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
"title": "<@safe_include "deletedEmoteStats_animated_emotes_title"/>"
|
||||
},
|
||||
<#include "statistic_color">,
|
||||
"description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.emoteId?c}`x${emote.result.amount}<#sep>, </#list>"
|
||||
"description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>"
|
||||
}
|
||||
@@ -3,5 +3,5 @@
|
||||
"title": "<@safe_include "deletedEmoteStats_static_emotes_title"/>"
|
||||
},
|
||||
<#include "statistic_color">,
|
||||
"description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.emoteId?c}`x${emote.result.amount}<#sep>, </#list>"
|
||||
"description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>"
|
||||
}
|
||||
@@ -3,5 +3,5 @@
|
||||
"title": "<@safe_include "emoteStats_animated_emotes_title"/>"
|
||||
},
|
||||
<#include "statistic_color">,
|
||||
"description": "<#list animatedEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount}<#sep> </#if></#list>"
|
||||
"description": "<#list animatedEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount?c}<#sep> </#if></#list>"
|
||||
}
|
||||
@@ -3,5 +3,5 @@
|
||||
"title": "<@safe_include "emoteStats_static_emotes_title"/>"
|
||||
},
|
||||
<#include "statistic_color">,
|
||||
"description": "<#list staticEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount}<#sep> </#if></#list>"
|
||||
"description": "<#list staticEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount?c}<#sep> </#if></#list>"
|
||||
}
|
||||
@@ -3,5 +3,5 @@
|
||||
"title": "<@safe_include "externalEmoteStats_animated_emotes_title"/>"
|
||||
},
|
||||
<#include "statistic_color">,
|
||||
"description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.emoteId?c}`x${emote.result.amount}<#sep>, </#list>"
|
||||
"description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>"
|
||||
}
|
||||
@@ -3,5 +3,5 @@
|
||||
"title": "<@safe_include "externalEmoteStats_static_emotes_title"/>"
|
||||
},
|
||||
<#include "statistic_color">,
|
||||
"description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount}<#sep>, </#list>"
|
||||
"description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, </#list>"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user