mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-06 17:29:47 +00:00
Compare commits
31 Commits
templates-
...
templates-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 |
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</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.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</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,17 +15,38 @@
|
||||
</#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>
|
||||
<#if immuneRoles?? ><@safe_include "help_command_embed_command_immune"/>: <#list immuneRoles as immuneRole> ${immuneRole.asMention?json_string}<#sep><@safe_include "help_command_embed_or"/><#else><@safe_include "help_command_embed_command_immune_none"/></#list> </#if>
|
||||
<#else>
|
||||
<@safe_include "help_command_embed_command_not_restricted"/>
|
||||
</#if>
|
||||
@@ -34,7 +55,7 @@
|
||||
**<@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>
|
||||
<@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>
|
||||
<#list parameter.validators as validator><#assign validator=validator><#assign model=validator.templateModel/><@safe_include "${validator.templateName}"/>
|
||||
</#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,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 +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,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">
|
||||
@@ -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>
|
||||
}
|
||||
@@ -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.2</version>
|
||||
<version>1.2.5</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.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>experience-tracking</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</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>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</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>
|
||||
<@safe_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.5</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.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>moderation</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</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,8 +18,8 @@
|
||||
},
|
||||
<#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>
|
||||
<@safe_include "user_notes_note_entry"/><#else><@safe_include "user_notes_no_notes"/>
|
||||
|
||||
@@ -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"/>",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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")}</#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.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>modmail</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</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>
|
||||
}
|
||||
@@ -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.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
|
||||
<modules>
|
||||
<module>core</module>
|
||||
@@ -27,6 +27,8 @@
|
||||
<module>repost-detection</module>
|
||||
<module>starboard</module>
|
||||
<module>suggestion</module>
|
||||
<module>webservices</module>
|
||||
<module>logging</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</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")}</#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>
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</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.2</version>
|
||||
<version>1.2.5</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.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>statistic</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
<#include "abstracto_color">,
|
||||
<#assign id>${suggestionId}</#assign>
|
||||
<#if state = "ACCEPTED" || state = "REJECTED">
|
||||
"description": "~~${text?js_string}~~",
|
||||
"description": "~~${text?json_string}~~",
|
||||
<#else>
|
||||
"description": "${text?js_string}",
|
||||
"description": "${text?json_string}",
|
||||
</#if>
|
||||
<#if state = "ACCEPTED" || state = "REJECTED">
|
||||
"fields": [
|
||||
@@ -34,7 +34,7 @@
|
||||
,
|
||||
{
|
||||
"name": "<@safe_include "suggest_reason_field_title"/>",
|
||||
"value": "${reason?js_string}"
|
||||
"value": "${reason?json_string}"
|
||||
}
|
||||
</#if>
|
||||
],
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>utility</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "showAvatar_response_embed_user_field_title"/>",
|
||||
"value": "${memberInfo.user.name?js_string}#${memberInfo.user.discriminator}",
|
||||
"value": "${memberInfo.user.name?json_string}#${memberInfo.user.discriminator}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -7,11 +7,6 @@
|
||||
"value": "${emote.name}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "showEmote_response_embed_emote_link_field_title"/>",
|
||||
"value": "[<@safe_include "showEmote_response_embed_emote_link_field_text"/>](${emote.imageUrl})",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "showEmote_response_embed_emote_link_field_title"/>",
|
||||
"value": "${emote.imageUrl}",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<#if memberInfo.nickname?has_content>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_nickname_field_title"/>",
|
||||
"value": "${memberInfo.nickname?js_string}",
|
||||
"value": "${memberInfo.nickname?json_string}",
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
@@ -35,7 +35,7 @@
|
||||
,
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_activity_field_title"/>",
|
||||
"value": "<#list memberInfo.activities as activity>${activity.type?js_string}<#sep>, </#list>",
|
||||
"value": "<#list memberInfo.activities as activity>${activity.type?json_string}<#sep>, </#list>",
|
||||
"inline": "true"
|
||||
}
|
||||
</#if>
|
||||
|
||||
36
abstracto-modules/webservices/pom.xml
Normal file
36
abstracto-modules/webservices/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>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>webservices</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<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>webservices-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/webservices/src/main/assembly/assembly.xml
Normal file
15
abstracto-modules/webservices/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,31 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"description": "${definition.definition?json_string}",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_author"/>",
|
||||
"value": "${definition.author?json_string}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_up_votes"/>",
|
||||
"value": "${definition.upvoteCount}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_downvotes"/>",
|
||||
"value": "${definition.downVoteCount}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_link"/>",
|
||||
"value": "[<@safe_include "urban_search_command_response_embed_field_value_jump"/>](${definition.url?json_string})",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "urban_search_command_response_embed_field_title_example"/>",
|
||||
"value": "${definition.example?json_string}"
|
||||
}
|
||||
],
|
||||
"timeStamp": "${definition.creationDate}"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "no_urban_definition_found_exception_text">
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"fields": [
|
||||
<#if video.views??>
|
||||
{
|
||||
"name": "<@safe_include "youtube_search_command_response_embed_field_title_views"/>",
|
||||
"value": "${video.views}",
|
||||
"inline": "true"
|
||||
}
|
||||
<#if video.likes?? || video.dislikes?? || video.commentCount??>,</#if>
|
||||
</#if>
|
||||
<#if video.likes??>
|
||||
{
|
||||
"name": "<@safe_include "youtube_search_command_response_embed_field_title_likes"/>",
|
||||
"value": "${video.likes}",
|
||||
"inline": "true"
|
||||
}
|
||||
<#if video.dislikes?? || video.commentCount??>,</#if>
|
||||
</#if>
|
||||
<#if video.dislikes??>
|
||||
{
|
||||
"name": "<@safe_include "youtube_search_command_response_embed_field_title_dislikes"/>",
|
||||
"value": "${video.dislikes}",
|
||||
"inline": "true"
|
||||
}
|
||||
<#if video.commentCount??>,</#if>
|
||||
</#if>
|
||||
<#if video.commentCount??>
|
||||
{
|
||||
"name": "<@safe_include "youtube_search_command_response_embed_field_title_comment_count"/>",
|
||||
"value": "${video.commentCount}",
|
||||
"inline": "true"
|
||||
}
|
||||
</#if>
|
||||
],
|
||||
"footer": {
|
||||
"text": "<@safe_include "youtube_search_command_response_embed_footer"/>"
|
||||
},
|
||||
"timeStamp": "${video.publishedAt}"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"additionalMessage": "${video.url}"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign exception=model.exception>
|
||||
<#include "webservices_youtube_api_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "webservices_youtube_video_not_found_exception_text">
|
||||
4
pom.xml
4
pom.xml
@@ -5,7 +5,7 @@
|
||||
|
||||
<groupId>dev.sheldan.abstracto-templates</groupId>
|
||||
<artifactId>templates</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
|
||||
<modules>
|
||||
<module>abstracto-modules</module>
|
||||
@@ -23,7 +23,7 @@
|
||||
<scm>
|
||||
<url>https://maven.pkg.github.com/Sheldan/abstracto-templates</url>
|
||||
<developerConnection>scm:git:git@github.com:Sheldan/abstracto-templates.git</developerConnection>
|
||||
<tag>templates-1.2</tag>
|
||||
<tag>templates-1.2.5</tag>
|
||||
</scm>
|
||||
|
||||
<repositories>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>translations</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
||||
<artifactId>translations</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.2.5</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Adds a command to a channel group
|
||||
@@ -0,0 +1,2 @@
|
||||
Adds a command to a channel group. This can then be used for various purposes, for example to disable the command or set a cooldown for the command for the channels.
|
||||
The command `disableCommand` does this under the hood as well.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the channel group to add the command to
|
||||
@@ -0,0 +1 @@
|
||||
The name of the command to add to the channel group
|
||||
@@ -0,0 +1 @@
|
||||
Creates a profanity regex with optional replacement in a profanity group
|
||||
@@ -0,0 +1,3 @@
|
||||
This command can be used to create a profanity regex which can be used to detect and replace profanities (or any text).
|
||||
A profanity regex consists of a profanity name (to identify it), a [regex](https://docs.oracle.com/javase/tutorial/essential/regex/) and an optional replacement.
|
||||
The name of a regex is unique within its profanity group.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the profanity group this profanity regex should be added to
|
||||
@@ -0,0 +1 @@
|
||||
The name which should identify this regex
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user