Compare commits

...

15 Commits

Author SHA1 Message Date
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
81 changed files with 186 additions and 68 deletions

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>

View File

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

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,15 @@
{
<#include "abstracto_color">,
"fields": [
{
"name": "<@safe_include "uptime_response_embed_start_date_field_title"/>",
<#assign startDate>${formatDate(startDate, "yyyy-MM-dd HH:mm:ss z")}</#assign>
"value": "${startDate}"
},
{
"name": "<@safe_include "uptime_response_embed_uptime_field_title"/>",
<#assign uptime>${fmtDuration(uptime)}</#assign>
"value": "${uptime}"
}
]
}

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

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.2</version>
<version>1.2.4</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

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.2.2</version>
<version>1.2.4</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.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -1,6 +1,10 @@
{
<#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?json_string}
@@ -14,6 +18,10 @@
</#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": [
{
@@ -23,6 +31,15 @@
<#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

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>moderation</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>
<plugin>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>modmail</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>
<plugin>

View File

@@ -4,14 +4,14 @@
<parent>
<groupId>dev.sheldan.abstracto-templates</groupId>
<artifactId>templates</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<modules>
<module>core</module>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

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.2</version>
<version>1.2.4</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.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -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?json_string}
<#list message.embeds>
<@safe_include "starboard_post_embed_embeds_name"/>:
<#items as embed>
<@safe_include "starboard_post_embed_description"/>: ${embed.description?json_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>
",
@@ -20,12 +24,16 @@
"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>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>statistic</artifactId>
<version>1.2.2</version>
<version>1.2.4</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.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>utility</artifactId>
<version>1.2.2</version>
<version>1.2.4</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.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -5,7 +5,7 @@
<groupId>dev.sheldan.abstracto-templates</groupId>
<artifactId>templates</artifactId>
<version>1.2.2</version>
<version>1.2.4</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.2</tag>
<tag>templates-1.2.4</tag>
</scm>
<repositories>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.2</version>
<version>1.2.4</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.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>
<plugin>

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

View File

@@ -0,0 +1 @@
The regex which should find the words to replace

View File

@@ -0,0 +1 @@
The optional replacement string, if not provided, found text will be replaced with ""

View File

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

View File

@@ -0,0 +1 @@
The name which should identify this profanity group on this server

View File

@@ -0,0 +1 @@
Deletes the profanity group and all the profanity regexes which are associated with it.

View File

@@ -0,0 +1 @@
Deletes a profanity regex in a specified profanity group identified by its name.

View File

@@ -0,0 +1 @@
The name of the profanity group in which the profanity regex to delete is in

View File

@@ -0,0 +1 @@
Shows an overview about the current profanity check configuration

View File

@@ -0,0 +1 @@
This command is used to show the profanity groups and the profanity regexes in this server.

View File

@@ -0,0 +1 @@
Profanity group: ${profanityGroupName}

View File

@@ -0,0 +1 @@
${profanityRegexName}: `${profanityRegex}` <#if profanityReplacement?has_content>replaced with ${profanityReplacement}</#if>

View File

@@ -0,0 +1 @@
Shows the uptime of the bot

View File

@@ -0,0 +1 @@
This command is used to show the uptime and the start date of the bot

View File

@@ -0,0 +1 @@
Profanity group exists already.

View File

@@ -0,0 +1 @@
Profanity regex already exists

View File

@@ -0,0 +1 @@
Deleted user

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -0,0 +1 @@
Mocks a given text or message

View File

@@ -0,0 +1,2 @@
This command can be used to mock a text or a message. In order to mock a text, you need to provide the text as a parameter to the command.
If you want to mock a specific message, you need to reply to that message when executing this command. In case both are present, the message reply has precedence.

View File

@@ -0,0 +1 @@
The text to mock or a message which has been replied to

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -0,0 +1 @@
[message](${referencedMessageLink}) by ${repliedToAuthorMention}

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>moderation</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>
<plugin>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>modmail</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>
<plugin>

View File

@@ -4,14 +4,14 @@
<parent>
<groupId>dev.sheldan.abstracto-templates</groupId>
<artifactId>templates</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<modules>
<module>core</module>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -1 +1 @@
Due on ${reminderTargetDate} with text ${reminderText}
Due on ${reminderTargetDate} with text `${reminderText}` started [here](${messageLink})

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>statistic</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>utility</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.2.2</version>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>