mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-02 15:56:33 +00:00
Compare commits
12 Commits
templates-
...
templates-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f879167f3 | ||
|
|
7a88e1bfe9 | ||
|
|
0f94c231e7 | ||
|
|
046e71c46e | ||
|
|
ea02284189 | ||
|
|
33daa5620e | ||
|
|
5a3dfa1e7c | ||
|
|
b3dc8f2912 | ||
|
|
4178e95c5e | ||
|
|
83ec7fc4cd | ||
|
|
26879b7952 | ||
|
|
99b631f960 |
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</version>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
"author": { "name": "<@safe_include "delete_user_name"/>", "avatar": "https://discord.com/assets/6debd47ed13483642cf09e832ed0bc1b.png" }
|
||||
@@ -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,20 @@
|
||||
</#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 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 +37,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,9 @@
|
||||
"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"/>)",
|
||||
"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>
|
||||
<#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,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">
|
||||
@@ -5,7 +5,7 @@
|
||||
<#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>
|
||||
@@ -17,8 +17,8 @@
|
||||
"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">
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>experience-tracking</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
@@ -1,25 +1,33 @@
|
||||
{
|
||||
<#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}",
|
||||
,"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"/>"
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<parent>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>moderation</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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})"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>modmail</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</version>
|
||||
|
||||
<modules>
|
||||
<module>core</module>
|
||||
@@ -27,6 +27,7 @@
|
||||
<module>repost-detection</module>
|
||||
<module>starboard</module>
|
||||
<module>suggestion</module>
|
||||
<module>webservices</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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}"
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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.1</version>
|
||||
<version>1.2.3</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,13 +1,17 @@
|
||||
{
|
||||
<#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>
|
||||
",
|
||||
@@ -16,7 +20,7 @@
|
||||
<#assign count>${starCount}</#assign>
|
||||
<#assign messageId>${message.messageId?c}</#assign>
|
||||
<#if channel?has_content>
|
||||
<#assign channelMention>${channel.asMention?js_string}</#assign>
|
||||
<#assign channelMention>${channel.asMention?json_string}</#assign>
|
||||
"additionalMessage": "<@safe_include "starboard_post_embed_additional_message"/>"
|
||||
<#else>
|
||||
<#assign channelMention>${sourceChannelId?c}</#assign>
|
||||
@@ -24,12 +28,16 @@
|
||||
</#if>
|
||||
<#if message.attachments?size gt 0>
|
||||
,"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": [
|
||||
{
|
||||
"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.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>statistic</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>utility</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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.3</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.1</version>
|
||||
<version>1.2.3</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.1</tag>
|
||||
<tag>templates-1.2.3</tag>
|
||||
</scm>
|
||||
|
||||
<repositories>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<artifactId>translations</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</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.1</version>
|
||||
<version>1.2.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<version>1.2.3</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
The regex which should find the words to replace
|
||||
@@ -0,0 +1 @@
|
||||
The optional replacement string, if not provided, found text will be replaced with ""
|
||||
@@ -0,0 +1 @@
|
||||
Creates aliases for commands in this server
|
||||
@@ -0,0 +1,3 @@
|
||||
This command can be used to create aliases for specific commands, which can only be used within this server.
|
||||
The alias behaves the same way as the command and it is not possible to create an alias which has the same name
|
||||
as an existing command or an existing built-in alias.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the alias. Not allowed to be the name of a command or a built-in alias.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the command to create an alias for. Is not allowed to be another alias.
|
||||
@@ -0,0 +1 @@
|
||||
Creates a profanity group
|
||||
@@ -0,0 +1,2 @@
|
||||
This command can be used to create a profanity group. This profanity group can then be used to group profanity regexes together.
|
||||
The name needs to be unique per server and deleting the group deletes all of the profanities in this group.
|
||||
@@ -0,0 +1 @@
|
||||
The name which should identify this profanity group on this server
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a server specific alias
|
||||
@@ -0,0 +1 @@
|
||||
This command can be used to remove an alias from the server.
|
||||
@@ -0,0 +1 @@
|
||||
The alias to delete
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a profanity group
|
||||
@@ -0,0 +1 @@
|
||||
Deletes the profanity group and all the profanity regexes which are associated with it.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the profanity group to delete
|
||||
@@ -0,0 +1 @@
|
||||
Server specific aliases
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a profanity regex
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a profanity regex in a specified profanity group identified by its name.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the profanity group in which the profanity regex to delete is in
|
||||
@@ -0,0 +1 @@
|
||||
The name of the profanity regex to delete
|
||||
@@ -0,0 +1 @@
|
||||
Shows an overview about the current profanity check configuration
|
||||
@@ -0,0 +1 @@
|
||||
This command is used to show the profanity groups and the profanity regexes in this server.
|
||||
@@ -0,0 +1 @@
|
||||
Profanity group: ${profanityGroupName}
|
||||
@@ -0,0 +1 @@
|
||||
No configuration
|
||||
@@ -0,0 +1 @@
|
||||
No profanity regexes
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user