Compare commits

...

46 Commits

Author SHA1 Message Date
release-bot
9fe1a8ec80 [maven-release-plugin] prepare for next development iteration 2024-02-09 22:23:02 +00:00
release-bot
65057071ed [maven-release-plugin] prepare release templates-1.4.32 2024-02-09 22:23:00 +00:00
Sheldan
f10b7efc8d [AB-xxx] adding template for configuration setup step 2024-02-09 23:18:22 +01:00
Sheldan
89b0f44ad8 [AB-xxx] removing old release workflow 2024-02-04 20:48:39 +01:00
Sheldan
21f292dc76 [AB-xxx] adding template for honeypotIgnoredLevel system config setup 2024-02-04 20:46:40 +01:00
release-bot
0898f2cb9a [maven-release-plugin] prepare for next development iteration 2024-02-03 17:19:12 +00:00
release-bot
63547f1613 [maven-release-plugin] prepare release templates-1.4.31 2024-02-03 17:19:10 +00:00
Sheldan
cd6e3098f2 [AB-xxx] adding manual release job 2024-02-03 18:18:08 +01:00
Sheldan
eea34f3b88 [AB-xxx] adding manual release job 2024-02-03 18:17:28 +01:00
Sheldan
e14c0e9a3b [AB-xxx] fixing honeypot feature name 2024-02-03 16:26:58 +01:00
Sheldan
19d1aff734 [AB-xxx] adding templates for honeypot feature 2024-02-03 15:57:59 +01:00
Sheldan
1566f9025e [maven-release-plugin] prepare for next development iteration 2024-01-24 08:21:17 +01:00
Sheldan
6c9449e4ea [maven-release-plugin] prepare release templates-1.4.30 2024-01-24 08:21:13 +01:00
Sheldan
97ed46c4e6 [AB-xxx] adding templates for amongusText 2024-01-24 08:19:13 +01:00
Sheldan
e10bf36a0a [maven-release-plugin] prepare for next development iteration 2023-12-28 22:30:25 +01:00
Sheldan
aeed7b97ae [maven-release-plugin] prepare release templates-1.4.29 2023-12-28 22:30:21 +01:00
Sheldan
d8923adae1 [AB-xxx] adding templates for wikipedia and dictionary feature 2023-12-28 22:28:36 +01:00
Sheldan
4bc06cbb07 [AB-xxx] adding templates for modmail closed check 2023-12-28 11:12:30 +01:00
Sheldan
f7e8fb29f1 [maven-release-plugin] prepare for next development iteration 2023-12-26 21:04:19 +01:00
Sheldan
92f53be054 [maven-release-plugin] prepare release templates-1.4.28 2023-12-26 21:04:15 +01:00
Sheldan
81734391a2 [AB-xxx] adding templates for bonk command 2023-12-26 15:42:20 +01:00
Sheldan
ab84d05a26 [AB-xxx] adding templates for pat command 2023-12-26 01:10:23 +01:00
Sheldan
d0d91a0ddd [maven-release-plugin] prepare for next development iteration 2023-12-25 01:08:49 +01:00
Sheldan
68bb56b18b [maven-release-plugin] prepare release templates-1.4.27 2023-12-25 01:08:46 +01:00
Sheldan
5a00f213da [AB-xxx] adding templates necessary for modmail thread support
adding validation message to enableFeature response
2023-12-24 23:25:52 +01:00
Sheldan
6dd3b70bb2 [maven-release-plugin] prepare for next development iteration 2023-12-23 20:50:15 +01:00
Sheldan
f0600df517 [maven-release-plugin] prepare release templates-1.4.26 2023-12-23 20:50:10 +01:00
Sheldan
4d52be255f [AB-70] adding templates for image generation module and triggered command 2023-12-23 20:42:30 +01:00
Sheldan
6e5ab2f9ae [maven-release-plugin] prepare for next development iteration 2023-12-12 19:18:33 +01:00
Sheldan
2e16457baf [maven-release-plugin] prepare release templates-1.4.25 2023-12-12 19:18:28 +01:00
Sheldan
f778fe8804 [AB-63] adding templates for pressF command 2023-12-11 01:21:49 +01:00
Sheldan
48ad43a1b0 [AB-xxx] fixing versions after release 2023-12-11 01:20:43 +01:00
Sheldan
7ee101de79 [maven-release-plugin] prepare for next development iteration 2023-12-10 14:31:37 +01:00
Sheldan
dee05ccc88 [maven-release-plugin] prepare release templates-1.4.24 2023-12-10 14:31:33 +01:00
Sheldan
b1594b6a20 [AB-30] adding giveaway feature 2023-12-10 14:27:18 +01:00
Sheldan
b88046493b [AB-xxx] fixing suggestion update message 2023-11-19 01:18:13 +01:00
Sheldan
7256e72dbc [maven-release-plugin] prepare for next development iteration 2023-10-23 01:27:21 +02:00
Sheldan
6f9a055886 [maven-release-plugin] prepare release templates-1.4.23 2023-10-23 01:27:12 +02:00
Sheldan
8a2ae1c492 [AB-82] changing templates for command cooldown exceptions to use discord timestamps 2023-10-04 23:33:20 +02:00
Sheldan
c0a0bf23ff [maven-release-plugin] prepare for next development iteration 2023-09-26 22:53:46 +02:00
Sheldan
351325abe3 [maven-release-plugin] prepare release templates-1.4.22 2023-09-26 22:53:42 +02:00
Sheldan
ff5f56a065 [AB-106] adding deletion duration to ban command
removing banDelete command
updating deletion days to deletion duration
2023-09-26 01:05:08 +02:00
Sheldan
7718a86b14 [AB-xxx] adding information about command availability to help output 2023-09-20 02:01:36 +02:00
Sheldan
2d92a15bf0 [AB-105] migrating to discord usernames 2023-09-19 23:45:00 +02:00
Sheldan
c230455678 [AB-xxx] adding username to ban notification 2023-09-19 13:04:26 +02:00
Sheldan
e5549154e0 [maven-release-plugin] prepare for next development iteration 2023-09-07 23:29:40 +02:00
186 changed files with 608 additions and 117 deletions

View File

@@ -1,19 +0,0 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Java for publishing to GitHub Packages
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish to GitHub Packages
run: mvn --file pom.xml -B deploy -Dmaven.wagon.http.pool=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

26
.github/workflows/release_manual.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Publishes a new version of the templates
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17
- name: Release maven packages
uses: qcastel/github-actions-maven-release@v1.12.41
env:
JAVA_HOME: /usr/lib/jvm/java-21-openjdk/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
git-release-bot-name: "release-bot"
git-release-bot-email: "release-bot@sheldan.dev"
release-branch-name: master
maven-args: "-Dmaven.javadoc.skip=true -s settings.xml -DskipTests"
access-token: ${{ secrets.GITHUB_TOKEN }}
author_email: "release-bot@sheldan.dev"

View File

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

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</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.4.21</version>
<version>1.4.33-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
<build>
<plugins>

View File

@@ -1,3 +1,4 @@
<#macro member_user_name member>${member.effectiveName?json_string}#${member.user.discriminator}</#macro>
<#macro member_display_member_name member><#if member.nickname?has_content>${member.nickname?json_string}<#else>${member.userName?json_string}</#if>#${member.discriminator}</#macro>
<#macro member_display_user_name member>${member.userName?json_string}#${member.discriminator}</#macro>
<#macro member_user_name member>${member.effectiveName?json_string}<#if member.user.discriminator?number gt 0>#${member.user.discriminator}</#if></#macro>
<#macro member_member_name member><#if member.effectiveName?has_content>${member.effectiveName?json_string}<#else>${member.user.name?json_string}</#if><#if member.user.discriminator?number gt 0>#${member.user.discriminator}</#if></#macro>
<#macro member_display_member_name member><#if member.nickname?has_content>${member.nickname?json_string}<#else>${member.userName?json_string}</#if></#macro>
<#macro member_display_user_name member>${member.userName?json_string}<#if member.discriminator?number gt 0>#${member.discriminator}</#if></#macro>

View File

@@ -1 +1 @@
<#macro user_detail user>${user.name?json_string}#${user.discriminator} (${user.idLong?c})</#macro>
<#macro user_detail user>${user.name?json_string}<#if user.discriminator?number gt 0>#${user.discriminator}</#if> (${user.idLong?c})</#macro>

View File

@@ -1 +1 @@
<#macro user_user_name user>${user.name?json_string}#${user.discriminator}</#macro>
<#macro user_user_name user>${user.name?json_string}<#if user.discriminator?number gt 0>#${user.discriminator}</#if></#macro>

View File

@@ -1,5 +1,5 @@
{
"additionalMessage": "<@safe_include "enableFeature_response_text"/>",
"additionalMessage": "<@safe_include "enableFeature_response_text"/><#if validationText?has_content>${validationText}</#if>",
"messageConfig": {
"ephemeral": true
}

View File

@@ -10,22 +10,32 @@
<#if command.help??>
<#if command.help.templated>
<#if command.slashCommandOnly><@safe_include "help_command_embed_command_slash_command_only"/></#if>
<#if command.messageCommandOnly><@safe_include "help_command_embed_command_message_command_only"/></#if>
<#if !command.slashCommandOnly>
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
</#if>
**<@safe_include "help_command_embed_command_detailed_help"/>**: <@safe_include "${command.name}_long_help"/>
<#if command.help.hasExample>
<#if command.help.hasExample && !command.slashCommandOnly>
<@safe_include "help_command_embed_command_example"/>: <@safe_include "${command.name}_example"/>
</#if>
<#else>
<#if command.slashCommandOnly><@safe_include "help_command_embed_command_slash_command_only"/></#if>
<#if command.messageCommandOnly><@safe_include "help_command_embed_command_message_command_only"/></#if>
<#if !command.slashCommandOnly>
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
</#if>
**<@safe_include "help_command_embed_command_detailed_help"/>**: ${command.help.longHelp?json_string}
<#if command.help.hasExample>
<#if command.help.hasExample && !command.slashCommandOnly>
<@safe_include "help_command_embed_command_example"/>:${command.help.example?json_string}
</#if>
</#if>
<#if command.aliases?? && command.aliases?size gt 0>
<#if command.aliases?? && command.aliases?size gt 0 && !command.slashCommandOnly>
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?json_string}`
</#if>
<#if serverSpecificAliases?size gt 0>
<#if serverSpecificAliases?size gt 0 && !command.slashCommandOnly>
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?json_string}`
</#if>
<#if cooldowns??>

View File

@@ -1,3 +1,4 @@
<#assign executeIn>${fmtDuration(model.reason.executeIn)}</#assign>
<#include "format_instant">
<#assign executeIn><@format_instant_relative instant=model.reason.executeAt/></#assign>
<#assign reason>${model.reason.reason}</#assign>
<#include "command_cool_down_detail_text">

View File

@@ -1,3 +1,4 @@
<#include "user_user_name">
{
"embeds": [
{
@@ -7,7 +8,7 @@
<#else>
"author":
{
"name": "${fullUser.user.name?json_string}#${fullUser.user.discriminator}",
"name": "<@user_user_name user=fullUser.user/>",
"avatar": "${fullUser.user.effectiveAvatarUrl}"
},
</#if>

View File

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

View File

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

View File

@@ -0,0 +1,4 @@
{
<#assign user=memberDisplay.memberMention>
"additionalMessage": "<@safe_include "pressF_join_text"/>"
}

View File

@@ -0,0 +1,15 @@
{
<#assign text=text?json_string>
"additionalMessage": "<@safe_include "pressF_response_text"/>",
"buttons": [
{
"emoteMarkdown": "<@safe_include "pressF_response_press_button_emote"/>",
"label": "<@safe_include "pressF_response_press_button_label"/>",
"id": "${pressFComponentId}",
"buttonStyle": "secondary",
"metaConfig": {
"persistCallback": false
}
}
]
}

View File

@@ -0,0 +1,5 @@
{
<#assign userCount=userCount>
<#assign text=text?json_string>
"additionalMessage": "<@safe_include "pressF_result_text"/>"
}

View File

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

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
<build>
<plugins>
<plugin>

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.33-SNAPSHOT</version>
</parent>
<artifactId>giveaway</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>giveaway-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,6 @@
{
"additionalMessage": "<@safe_include "cancelGiveaway_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "createGiveaway_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "reRollGiveaway_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

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

View File

@@ -0,0 +1,35 @@
<#include "format_instant">
{
"embeds": [
{
"title": {
<#assign title=title?json_string>
<#assign id=giveawayId?json_string>
"title": "<@safe_include "giveaway_post_embed_title"/>"
},
<#include "abstracto_color">,
<#if description?has_content><#assign description=description?json_string></#if>
<#assign endDate><@format_instant_relative instant=targetDate/></#assign>
<#assign host=creator.memberMention/>
<#if benefactor?has_content><#assign benefactor=benefactor.memberMention/></#if>
<#assign memberMentions><#list winners as winner>${winner.memberMention}<#sep>,<#else><@safe_include "giveaway_result_no_winner"/></#list></#assign>
<#assign cancelled=cancelled>
<#assign entries=joinedUserCount>
<#assign ended=ended>
<#assign winnerCount=winnerCount>
"description": "<@safe_include "giveaway_post_embed_description"/>"
}
]
<#if !cancelled && !ended>,
"buttons": [
{
"label": "<@safe_include "giveaway_post_join_button_label"/>",
"id": "${joinComponentId}",
"buttonStyle": "secondary",
"metaConfig": {
"persistCallback": false
}
}
]
</#if>
}

View File

@@ -0,0 +1,7 @@
{
<#assign winnerCount=winners?size>
<#assign memberMentions><#list winners as winner>${winner.memberMention}<#sep>,</#list></#assign>
<#assign prize=title>
"additionalMessage": "<#if winnerCount gt 0><@safe_include "giveaway_result_text"/><#else><@safe_include "giveaway_result_no_winner"/></#if>",
"referencedMessageId": "${messageId?c}"
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "giveaway_already_joined_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "giveaway_join_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.33-SNAPSHOT</version>
</parent>
<artifactId>image-generation</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>image-generation-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,3 @@
<#assign inputText=model.inputText>
<#assign errorMessage=model.errorMessage>
<#include "amongusText_exception_message"/>

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
{
"embeds": [
{
<#assign user>${member.user.name}#${member.user.discriminator} (${member.asMention}: ${member.id})</#assign>
<#assign user>${member.user.name} (${member.asMention}: ${member.id})</#assign>
"description": "<@safe_include "user_joined_text"/>",
<#include "abstracto_color"/>
}

View File

@@ -1,7 +1,8 @@
{
"embeds": [
{
<#assign user>${user.name}#${user.discriminator} (${user.id})</#assign>
<#include "user_detail">
<#assign user><@user_detail user=user/></#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.4.21</version>
<version>1.4.33-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>moderation</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
<build>
<plugins>
<plugin>

View File

@@ -3,6 +3,7 @@
{
<#include "user_detail">
<#include "full_member_info">
<#assign bannedUserName=bannedUser.name>
"title": {
"title": "<@safe_include "ban_log_title"/>"
},
@@ -26,11 +27,11 @@
"name": "<@safe_include "ban_log_reason_field_title"/>",
"value": "${reason?json_string}"
}
<#if deletionDays gt 0>
<#if deletionDuration?has_content>
,
{
"name": "<@safe_include "ban_log_deletion_days_field_title"/>",
"value": "${deletionDays?c}"
"name": "<@safe_include "ban_log_deletion_duration_field_title"/>",
"value": "${fmtDuration(deletionDuration)}"
}
</#if>
]

View File

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

View File

@@ -3,6 +3,7 @@
{
<#include "user_detail">
<#include "abstracto_color">,
<#assign bannedUserName=bannedUser.name>
"description" : "<@safe_include "userBanned_description"/>",
"fields": [
{

View File

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

View File

@@ -1,6 +1,3 @@
{
"additionalMessage": "<@safe_include "contact_response_text"/>",
"messageConfig": {
"ephemeral": true
}
"additionalMessage": "<@safe_include "contact_response_text"/>"
}

View File

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

View File

@@ -8,13 +8,15 @@
},
<#include "modmail_color">,
<#assign user><@member_user_name member=member/>(${member.user.id})</#assign>
"description": "<@safe_include "modmail_notification_message_description"/>",
"description": "<@safe_include "modmail_notification_message_description"/>"
<#if channel?has_content>,
"fields": [
{
"name": "<@safe_include "modmail_notification_field_title_channel"/>",
"value": "${channel.asMention}"
}
]
</#if>
}
],
"messageConfig": {

View File

@@ -4,14 +4,14 @@
<parent>
<groupId>dev.sheldan.abstracto-templates</groupId>
<artifactId>templates</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
<modules>
<module>core</module>
@@ -35,6 +35,8 @@
<module>anti-raid</module>
<module>custom-command</module>
<module>twitch</module>
<module>giveaway</module>
<module>image-generation</module>
</modules>
</project>

View File

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

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</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.4.21</version>
<version>1.4.33-SNAPSHOT</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.4.21</version>
<version>1.4.33-SNAPSHOT</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.4.21</version>
<version>1.4.33-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>statistic</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
<build>
<plugins>
<plugin>

View File

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

View File

@@ -5,7 +5,7 @@
<#if message?? && message.attachments?size gt 0>
"imageUrl": "${message.attachments[0].proxyUrl}",
</#if>
"description": "<@safe_include "suggest_text_label"/>: ${text}"
"description": "<@safe_include "suggest_text_label"/>: ${text?json_string}"
<#if reason?has_content || buttonsActive>,
"fields": [
<#if reason?has_content>

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</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.4.21</version>
<version>1.4.33-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>utility</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
<build>
<plugins>
<plugin>

View File

@@ -7,8 +7,9 @@
"imageUrl": "${memberInfo.user.effectiveAvatarUrl}",
"fields": [
{
<#include "member_user_name">
"name": "<@safe_include "showAvatar_response_embed_user_field_title"/>",
"value": "${memberInfo.user.name?json_string}#${memberInfo.user.discriminator}",
"value": "<@member_member_name member=memberInfo/>",
"inline": "true"
},
{

View File

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

View File

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

View File

@@ -0,0 +1,21 @@
{
"embeds": [
{
<#include "abstracto_color">,
"title": {
"title": "${word?json_string}"
},
<#macro definitionDisplay definition>
<#assign meaning=definition.definition>
<#assign hasExample=definition.example?has_content>
<#if hasExample>
<#assign example=definition.example>
</#if>
<@safe_include "dictionaryDefinition_response_meaning_display"/>
</#macro>
"description": "<#list definitions as definition>${definition?index + 1}: <@definitionDisplay definition=definition /></#list>"
}
]
}

View File

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

View File

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

View File

@@ -0,0 +1,21 @@
{
"embeds": [
{
<#include "abstracto_color">,
"title": {
"title": "${title?json_string}"
},
"description": "${summary?json_string}"
}
],
"buttons": [
{
"label": "<@safe_include "wikipediaArticleSummary_jump_link"/>",
"url": "${fullURL?json_string}",
"buttonStyle": "link",
"metaConfig": {
"persistCallback": false
}
}
]
}

View File

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

View File

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

11
pom.xml
View File

@@ -5,7 +5,7 @@
<groupId>dev.sheldan.abstracto-templates</groupId>
<artifactId>templates</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
<modules>
<module>abstracto-modules</module>
@@ -21,10 +21,11 @@
</distributionManagement>
<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.4.21</tag>
</scm>
<connection>scm:git:${project.scm.url}</connection>
<developerConnection>scm:git:${project.scm.url}</developerConnection>
<url>https://github.com/Sheldan/abstracto-templates.git</url>
<tag>HEAD</tag>
</scm>
<repositories>
<repository>

19
settings.xml Normal file
View File

@@ -0,0 +1,19 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<configuration>
<httpHeaders>
<property>
<name>Authorization</name>
<value>Bearer ${env.GITHUB_TOKEN}</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
</settings>

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>translations</artifactId>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

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

View File

@@ -0,0 +1 @@
This command is only available as a message command.

View File

@@ -0,0 +1 @@
This command is only available as a slash command.

View File

@@ -1 +1 @@
Please wait ${executeIn}.
Please try again ${executeIn}.

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.4.21</version>
<version>1.4.33-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

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

View File

@@ -0,0 +1 @@
Enables people to press F for something

View File

@@ -0,0 +1,2 @@
This command creates a message at which people can press F, causing a message on their own.
After the optional timeframe is over, the sum of people who pressed F is shown.

View File

@@ -0,0 +1 @@
The amount of time it should be possible to press F

View File

@@ -0,0 +1 @@
${user} has paid their respects.

View File

@@ -0,0 +1 @@
Please pay respects for `${text}`.

View File

@@ -0,0 +1 @@
${userCount} people have paid their respects to **${text}**.

View File

@@ -0,0 +1 @@
Amount of seconds for the pressF command to evaluate. Default: ${defaultValue}

View File

@@ -0,0 +1 @@
You already paid your respects.

View File

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

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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.4.33-SNAPSHOT</version>
</parent>
<artifactId>giveaway</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>giveaway-translations-${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 @@
The giveaway has been cancelled.

View File

@@ -0,0 +1,2 @@
This command is used to cancel a giveaway.
The giveaway will be disabled and the text will be struck through.

View File

@@ -0,0 +1,6 @@
This command can be used to create a giveaway.
A giveaway needs a title and a duration.
Additional optional parameters are: description, benefactor (the user who sponsored the giveaway), a channel different to the post target and an amount of winners.
Per default there is 1 winner and the post target 'giveaways' is used.
A giveaway will then automatically evaluate the winners, but it can be cancelled.
The giveaway can then also be rerolled.

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