Compare commits

...

31 Commits

Author SHA1 Message Date
Sheldan
4accef7166 [maven-release-plugin] prepare release templates-1.2.5 2021-04-24 22:17:41 +02:00
Sheldan
b57efc809a [AB-233] adding templates for delete attachment feature which leads to an message updated event
removing duplicate field on show emote response
2021-04-24 18:04:19 +02:00
Sheldan
73ca42bd66 [AB-232] splitting logging functionality to separate module
changing user join/leave template to be an embed
2021-04-24 16:03:07 +02:00
Sheldan
9ab95c32bc [AB-234] updating templates to new meta config 2021-04-24 02:06:12 +02:00
Sheldan
4342747ab9 [AB-xxx] reducing amount of vertical space used by uptime embed 2021-04-19 22:24:45 +02:00
Sheldan
2c4c1c1079 [AB-128] adding templates to cooldown restrictions
changing duration formatting to also show seconds in case there are 0 (if its the only time period shown)
2021-04-19 00:40:36 +02:00
Sheldan
147a7142fd [AB-97] adding templates for react command 2021-04-13 23:48:16 +02:00
Sheldan
5828fe3bd9 [maven-release-plugin] prepare for next development iteration 2021-04-11 00:19:49 +02:00
Sheldan
17dd10af10 [maven-release-plugin] prepare release templates-1.2.4 2021-04-11 00:19:43 +02:00
Sheldan
a941d5e90a [AB-xxx] adding link to reminding message to reminders overview
adding text in case there are no reminders for reminders command
2021-04-10 23:40:18 +02:00
Sheldan
206bf06c2c [AB-222] adding uptime command related templates 2021-04-08 00:05:47 +02:00
Sheldan
6ecc487335 [AB-225] adding mock related templates 2021-04-07 23:16:49 +02:00
Sheldan
dedb958bae [AB-227] adding additional field to link embeds to show that the message was a apply to another message 2021-04-07 14:18:41 +02:00
Sheldan
a6caac1044 [AB-220] additional fix for starboard messages with only text content 2021-04-06 03:12:17 +02:00
Sheldan
1af63c0112 [AB-220] fixing starboard post and link embeds for messages without any form of content (embeds or text) 2021-04-06 02:50:53 +02:00
Sheldan
5710772ebd [maven-release-plugin] prepare for next development iteration 2021-04-05 01:55:18 +02:00
Sheldan
1f879167f3 [maven-release-plugin] prepare release templates-1.2.3 2021-04-05 01:55:11 +02:00
Sheldan
7a88e1bfe9 [AB-217] fixing defining variables, the variable bled into the next iteration 2021-04-05 01:43:38 +02:00
Sheldan
0f94c231e7 [AB-221] adding handling of deleted users or not available users to link embeds and starboard posts 2021-04-04 23:52:18 +02:00
Sheldan
046e71c46e [AB-220] adding a case for actual images in embeds for starboard posts and link embeds 2021-04-04 18:09:03 +02:00
Sheldan
ea02284189 [AB-217] adding profanity regex related templates 2021-04-04 18:05:16 +02:00
Sheldan
33daa5620e [AB-220] fixing starboard posts using embeds without description
using the thumbnail of such an embed as attachment to the post
2021-03-30 17:04:34 +02:00
Sheldan
5a3dfa1e7c [maven-release-plugin] prepare for next development iteration 2021-03-29 01:32:25 +02:00
Sheldan
b3dc8f2912 [maven-release-plugin] prepare release templates-1.2.2 2021-03-29 01:32:18 +02:00
Sheldan
4178e95c5e [AB-82] adding webservices module with youtube search and urban dictionary 2021-03-29 01:30:30 +02:00
Sheldan
83ec7fc4cd [AB-216] replacing js_string with json_string in order to escape characters, because js_string could lead to illegal escape sequences 2021-03-28 17:12:08 +02:00
Sheldan
26879b7952 [AB-215] adding server specific alias templates 2021-03-28 17:07:47 +02:00
Sheldan
99b631f960 [maven-release-plugin] prepare for next development iteration 2021-03-24 14:29:04 +01:00
Sheldan
123c89d454 [maven-release-plugin] prepare release templates-1.2.1 2021-03-24 14:28:56 +01:00
Sheldan
7cc2a508ae [AB-212] fixing starboard post syntax error in case of no text message 2021-03-24 12:53:08 +01:00
Sheldan
d1e446f09c [maven-release-plugin] prepare for next development iteration 2021-03-22 21:41:12 +01:00
233 changed files with 691 additions and 152 deletions

View File

@@ -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>

View File

@@ -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"

View File

@@ -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>

View File

@@ -0,0 +1 @@
"author": { "name": "<@safe_include "delete_user_name"/>", "avatar": "https://discord.com/assets/6debd47ed13483642cf09e832ed0bc1b.png" }

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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": {

View File

@@ -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": {

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>
"
}

View File

@@ -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}"
}

View File

@@ -0,0 +1,3 @@
<#assign executeIn>${fmtDuration(model.reason.executeIn)}</#assign>
<#assign reason>${model.reason.reason}</#assign>
<#include "command_cool_down_detail_text">

View File

@@ -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}"/>"
}

View File

@@ -1 +0,0 @@
<#assign user>${user.name}#${user.discriminator} (${user.asMention})</#assign><@safe_include "user_joined_text"/>

View File

@@ -1 +0,0 @@
<#assign user>${user.name}#${user.discriminator} (${user.asMention})</#assign><@safe_include "user_left_text"/>

View File

@@ -0,0 +1,2 @@
<#assign channelGroupName>${model.channelGroupName}</#assign>
<#include "channel_in_multiple_channel_groups_exception_text">

View File

@@ -0,0 +1,2 @@
<#assign channelGroupName>${model.channelGroupName}</#assign>
<#include "command_in_multiple_channel_groups_exception_text">

View File

@@ -0,0 +1,2 @@
<#assign existingCommandName=model.existingCommand>
<#include "command_in_server_alias_already_exists_exception_text">

View File

@@ -0,0 +1,2 @@
<#assign existingCommandName=model.existingCommand>
<#include "command_in_server_alias_hides_command_exception_text">

View File

@@ -0,0 +1 @@
<#include "command_in_server_alias_not_exists_exists_exception">

View File

@@ -0,0 +1 @@
<#include "command_not_found_in_group_exception_text">

View File

@@ -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>
}

View File

@@ -0,0 +1 @@
<#include "profanity_group_exists_exception_text">

View File

@@ -0,0 +1 @@
<#include "profanity_group_not_found_exception_text">

View File

@@ -0,0 +1 @@
<#include "profanity_regex_exists_exception_text">

View File

@@ -0,0 +1 @@
<#include "profanity_regex_not_found_exception_text">

View File

@@ -0,0 +1,3 @@
<#assign channelCoolDown>${fmtDuration(model.channelCoolDown)}</#assign>
<#assign memberCoolDown>${fmtDuration(model.memberCoolDown)}</#assign>
<#include "channel_group_provider_cool_down_display_text">

View File

@@ -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>

View File

@@ -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"
}

View File

@@ -0,0 +1 @@
<#include "react_duplicate_character_exception_text">

View File

@@ -0,0 +1 @@
<#include "react_too_many_reactions_exception_text">

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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}"
}

View 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>

View 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>

View File

@@ -1,5 +1,6 @@
{
"imageUrl": "${imageUrl}",
<#include "abstracto_color"/>,
"fields": [
{
"name": "<@safe_include "messageDeleted_attachment_link_field_title"/>",

View File

@@ -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})"
}
]
}

View File

@@ -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}"
}
}

View File

@@ -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})"
}
]
}

View File

@@ -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"/>
}

View File

@@ -0,0 +1,5 @@
{
<#assign user>${user.name}#${user.discriminator} (${user.id})</#assign>
"description": "<@safe_include "user_left_text"/>",
<#include "abstracto_color"/>
}

View File

@@ -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>

View File

@@ -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}"
}
]
}

View File

@@ -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}"
}
]
}

View File

@@ -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}"
}
]
}

View File

@@ -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"/>

View File

@@ -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"/>",

View File

@@ -40,7 +40,7 @@
},
{
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
"value": "${mute.reason?js_string}"
"value": "${mute.reason?json_string}"
}
],
"footer": {

View File

@@ -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": {

View File

@@ -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})"
}
]
}

View File

@@ -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>"

View File

@@ -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>

View File

@@ -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>
}

View File

@@ -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>
}

View File

@@ -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}"

View File

@@ -1,4 +1,4 @@
{
<#include "modmail_color">,
"description": "${closingMessage?js_string}"
"description": "${closingMessage?json_string}"
}

View File

@@ -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}"

View File

@@ -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"/>"
}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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}"
}

View File

@@ -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}"
}

View File

@@ -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>
}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>
],

View File

@@ -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>

View File

@@ -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"
},
{

View File

@@ -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}",

View File

@@ -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>

View 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>

View 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>

View File

@@ -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}"
}

View File

@@ -0,0 +1 @@
<#include "no_urban_definition_found_exception_text">

View File

@@ -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}"
}

View File

@@ -0,0 +1,2 @@
<#assign exception=model.exception>
<#include "webservices_youtube_api_exception_text">

View File

@@ -0,0 +1 @@
<#include "webservices_youtube_video_not_found_exception_text">

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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.

View File

@@ -0,0 +1 @@
The name of the command to add to the channel group

View File

@@ -0,0 +1 @@
Creates a profanity regex with optional replacement in a profanity group

View File

@@ -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.

View File

@@ -0,0 +1 @@
The name of the profanity group this profanity regex should be added to

Some files were not shown because too many files have changed in this diff Show More