Compare commits

...

41 Commits

Author SHA1 Message Date
release-bot
9b34efeba4 [maven-release-plugin] prepare release templates-1.4.36 2024-04-05 12:27:53 +00:00
Sheldan
b5376688d8 [AB-xxx] adding leaderboard button to leaderboard response 2024-04-05 01:40:37 +02:00
release-bot
77baf59f80 [maven-release-plugin] prepare for next development iteration 2024-03-17 12:12:50 +00:00
release-bot
57981fa939 [maven-release-plugin] prepare release templates-1.4.35 2024-03-17 12:12:48 +00:00
Sheldan
b61046b12f [AB-111] adding templates related to moderation actions 2024-03-17 12:39:32 +01:00
release-bot
5d2559344b [maven-release-plugin] prepare for next development iteration 2024-02-28 20:30:18 +00:00
release-bot
34772f520e [maven-release-plugin] prepare release templates-1.4.34 2024-02-28 20:30:14 +00:00
Sheldan
7920044749 [AB-47] adding templates for level actions feature mode 2024-02-28 21:28:45 +01:00
Sheldan
8957f87006 [AB-xxx] fixing youtube naming 2024-02-19 00:51:42 +01:00
release-bot
2b5add56f5 [maven-release-plugin] prepare for next development iteration 2024-02-18 23:38:00 +00:00
release-bot
700a2e1bda [maven-release-plugin] prepare release templates-1.4.33 2024-02-18 23:37:58 +00:00
Sheldan
3d01a6992a [AB-xxx] adding template for configuration setup step 2024-02-12 22:56:45 +01:00
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
207 changed files with 723 additions and 137 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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.4.25</version>
<version>1.4.36</version>
<build>
<plugins>

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

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.4.25</version>
<version>1.4.36</version>
<build>
<plugins>
<plugin>

View File

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

View File

@@ -21,4 +21,14 @@
}
}
]
<#if leaderboardUrl?has_content>
,"buttons": [
{
"label": "<@safe_include "leaderboard_leaderboard_button_label"/>",
<#assign leaderboardUrl=leaderboardUrl>
"url": "${leaderboardUrl}",
"buttonStyle": "link"
}
]
</#if>
}

View File

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

View File

@@ -0,0 +1,19 @@
{
"embeds": [
{
<#macro actionDisplay action>
<#assign parameters = action.parameters?eval_json>
<#assign level=action.level>
<#assign actionDescription><@safe_include "showLevelActions_action_${action.actionKey}"/></#assign>
<#assign actionKey=action.actionKey/>
<#assign actionParameter><@safe_include "showLevelActions_action_${action.actionKey}_config"/></#assign>
<#if action.member??>
<#assign memberdisplay=action.member.memberMention/>
</#if>
<@safe_include "showLevelActions_action_description"/>
</#macro>
"description": "<#list actions as action><@actionDisplay action=action/></#list>"
}
]
}

View File

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

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.25</version>
<version>1.4.36</version>
</parent>
<artifactId>giveaway</artifactId>

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.36</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.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -18,4 +18,17 @@
]
}
]
<#if moderationActionComponents?size gt 0>,
"buttons": [
<#list moderationActionComponents as moderactionAction>
{
"label": "<@safe_include "moderation_action_${moderactionAction.action}_button_label"/>",
"id": "${moderactionAction.componentId}",
"buttonStyle": "danger",
"metaConfig": {
"persistCallback": false
}
}<#sep>,</#list>
]
</#if>
}

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.4.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>moderation</artifactId>
<version>1.4.25</version>
<version>1.4.36</version>
<build>
<plugins>
<plugin>

View File

@@ -1,9 +1,6 @@
{
"embeds": [
{
<#include "user_detail">
<#include "full_member_info">
<#assign bannedUserName=bannedUser.name>
"title": {
"title": "<@safe_include "ban_log_title"/>"
},
@@ -11,18 +8,12 @@
"fields": [
{
"name": "<@safe_include "ban_log_banned_user_field_title"/>",
"value": "<@user_detail user=bannedUser/>"
"value": "${bannedUser.userMention}"
},
{
"name": "<@safe_include "ban_log_banning_user_field_title"/>",
"value": "<@full_member_info member=banningMember/>"
"value": "${banningMember.memberMention}"
},
<#if commandMessage?has_content>
{
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
"value": "[${commandMessage.channel.name?json_string}](${commandMessage.jumpUrl})"
},
</#if>
{
"name": "<@safe_include "ban_log_reason_field_title"/>",
"value": "${reason?json_string}"

View File

@@ -1,9 +1,6 @@
{
"embeds": [
{
<#include "full_member_info">
<#include "member_author">
<@member_author member=kickedUser/>,
"title": {
"title": "<@safe_include "kick_log_title"/>"
},
@@ -11,18 +8,12 @@
"fields": [
{
"name": "<@safe_include "kick_log_kicked_user_field_title"/>",
"value": "<@full_member_info member=kickedUser/>"
"value": "${kickedMember.memberMention}"
},
{
"name": "<@safe_include "kick_log_kicking_user_field_title"/>",
"value": "<@full_member_info member=member/>"
"value": "${kickingMember.memberMention}"
},
<#if messsage?has_content>
{
"name": "<@safe_include "kick_log_jump_link_field_title"/>",
"value": "[${channel.name?json_string}](${message.jumpUrl})"
},
</#if>
{
"name": "<@safe_include "kick_log_reason_field_title"/>",
"value": "${reason?json_string}"

View File

@@ -1,10 +1,7 @@
<#include "full_member_info">
<#include "format_instant">
<#include "member_author">
{
"embeds": [
{
<@member_author member=mutedUser/>,
"title": {
<#if durationChanged>
"title": "<@safe_include "mute_log_title_mute_changed"/>"
@@ -13,13 +10,12 @@
<#elseif muted>
"title": "<@safe_include "mute_log_title_muted"/>"
</#if>
},
<#include "moderation_action_color">,
"fields": [
{
"name": "<@safe_include "mute_log_muted_user_field_title"/>",
"value": "<@full_member_info member=mutedUser/>"
"value": "${mutedUser.memberMention}"
},
<#if mutingUser?has_content>
{
@@ -28,7 +24,7 @@
<#elseif muteEnded>
"name": "<@safe_include "mute_log_unmuting_user_field_title"/>",
</#if>
"value": "<@full_member_info member=mutingUser/>"
"value": "${mutingUser.memberMention}"
}
</#if>
<#if reason?has_content>,
@@ -40,7 +36,7 @@
<#if muted && !durationChanged>,
{
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",
"value": "${fmtDuration(muteDuration)}"
"value": "${fmtDuration(duration)}"
},
{
"name": "<@safe_include "mute_log_muted_until_field_title"/>",

View File

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

View File

@@ -1,8 +1,6 @@
{
"embeds": [
{
<#include "user_detail">
<#include "full_member_info">
"title": {
"title": "<@safe_include "unBan_log_title"/>"
},
@@ -10,11 +8,11 @@
"fields": [
{
"name": "<@safe_include "unBan_log_un_banned_user_field_title"/>",
"value": "<@user_detail user=bannedUser/>"
"value": "${bannedUser.userMention}"
},
{
"name": "<@safe_include "unBan_log_un_banning_user_field_title"/>",
"value": "<@full_member_info member=unBanningMember/>"
"value": "${unBanningMember.memberMention}"
}
]
}

View File

@@ -1,9 +1,6 @@
{
"embeds": [
{
<#include "full_member_info">
<#include "member_author">
<@member_author member=warnedMember/>,
"title": {
"title": "<@safe_include "warn_log_title"/>"
},
@@ -11,18 +8,12 @@
"fields": [
{
"name": "<@safe_include "warn_log_warned_user_field_title"/>",
"value": "<@full_member_info member=warnedMember/>"
"value": "${warnedMember.memberMention}"
},
<#if member?has_content>
<#if warningMember?has_content>
{
"name": "<@safe_include "warn_log_warning_user_field_title"/>",
"value": "<@full_member_info member=member/>"
},
</#if>
<#if message?has_content>
{
"name": "<@safe_include "warn_log_warn_location_field_title"/>",
"value": "[${channel.name?json_string}](${message.jumpUrl})"
"value": "${warningMember.memberMention}"
},
</#if>
{

View File

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

View File

@@ -0,0 +1,24 @@
{
"id": "${modalId}",
"title": "<@safe_include "moderationAction_ban_modal_title"/>",
"textInputs": [
{
"placeHolder": "<@safe_include "moderationAction_ban_modal_reason_placeholder"/>",
"id": "${reasonComponentId}",
"position": 1,
"label": "<@safe_include "moderationAction_ban_modal_reason_label"/>",
"style": "paragraph",
"maxLength": 2000,
"required": false
},
{
"placeHolder": "<@safe_include "moderationAction_ban_modal_duration_placeholder"/>",
"id": "${durationComponentId}",
"position": 2,
"label": "<@safe_include "moderationAction_ban_modal_duration_label"/>",
"style": "short",
"maxLength": 50,
"required": false
}
]
}

View File

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

View File

@@ -0,0 +1,15 @@
{
"id": "${modalId}",
"title": "<@safe_include "moderationAction_kick_modal_title"/>",
"textInputs": [
{
"placeHolder": "<@safe_include "moderationAction_kick_modal_reason_placeholder"/>",
"id": "${reasonComponentId}",
"position": 1,
"label": "<@safe_include "moderationAction_kick_modal_reason_label"/>",
"style": "paragraph",
"maxLength": 2000,
"required": false
}
]
}

View File

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

View File

@@ -0,0 +1,24 @@
{
"id": "${modalId}",
"title": "<@safe_include "moderationAction_mute_modal_title"/>",
"textInputs": [
{
"placeHolder": "<@safe_include "moderationAction_mute_modal_reason_placeholder"/>",
"id": "${reasonComponentId}",
"position": 1,
"label": "<@safe_include "moderationAction_mute_modal_reason_label"/>",
"style": "paragraph",
"maxLength": 2000,
"required": false
},
{
"placeHolder": "<@safe_include "moderationAction_mute_modal_duration_placeholder"/>",
"id": "${durationComponentId}",
"position": 2,
"label": "<@safe_include "moderationAction_mute_modal_duration_label"/>",
"style": "short",
"maxLength": 50,
"required": false
}
]
}

View File

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

View File

@@ -0,0 +1,15 @@
{
"id": "${modalId}",
"title": "<@safe_include "moderationAction_warn_modal_title"/>",
"textInputs": [
{
"placeHolder": "<@safe_include "moderationAction_warn_modal_reason_placeholder"/>",
"id": "${reasonComponentId}",
"position": 1,
"label": "<@safe_include "moderationAction_warn_modal_reason_label"/>",
"style": "paragraph",
"maxLength": 2000,
"required": false
}
]
}

View File

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

View File

@@ -33,5 +33,15 @@
"persistCallback": false
}
}
<#if moderationActionComponents?size gt 0>,</#if>
<#list moderationActionComponents as moderactionAction>
{
"label": "<@safe_include "moderation_action_${moderactionAction.action}_button_label"/>",
"id": "${moderactionAction.componentId}",
"buttonStyle": "danger",
"metaConfig": {
"persistCallback": false
}
}<#sep>,</#list>
]
}

View File

@@ -4,13 +4,13 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>modmail</artifactId>
<version>1.4.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<artifactId>abstracto-modules</artifactId>
<version>1.4.25</version>
<version>1.4.36</version>
<modules>
<module>core</module>
@@ -36,6 +36,8 @@
<module>custom-command</module>
<module>twitch</module>
<module>giveaway</module>
<module>image-generation</module>
<module>sticky-roles</module>
</modules>
</project>

View File

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

View File

@@ -28,4 +28,17 @@
]
}
]
<#if moderationActionComponents?size gt 0>,
"buttons": [
<#list moderationActionComponents as moderactionAction>
{
"label": "<@safe_include "moderation_action_${moderactionAction.action}_button_label"/>",
"id": "${moderactionAction.componentId}",
"buttonStyle": "danger",
"metaConfig": {
"persistCallback": false
}
}<#sep>,</#list>
]
</#if>
}

View File

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

View File

@@ -0,0 +1,37 @@
<?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.36</version>
</parent>
<artifactId>sticky-roles</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>sticky-roles-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 "configureStickyRole_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,10 @@
{
"embeds": [
{
<#macro stickyRoleDisplay role>
${role.roleDisplay.roleMention}: ${role.sticky?string('✅', '❌')}
</#macro>
"description": "<#list roles as role><@stickyRoleDisplay role=role/></#list>"
}
]
}

View File

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

View File

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

View File

@@ -3,7 +3,7 @@
<parent>
<artifactId>abstracto-modules</artifactId>
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
<version>1.4.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>utility</artifactId>
<version>1.4.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.25</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>templates-1.4.36</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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>core</artifactId>
<version>1.4.25</version>
<version>1.4.36</version>
<build>
<plugins>
<plugin>

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
<artifactId>translations</artifactId>
<version>1.4.25</version>
<version>1.4.36</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.25</version>
<version>1.4.36</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.4.25</version>
<version>1.4.36</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>experience-tracking</artifactId>
<version>1.4.25</version>
<version>1.4.36</version>
<build>
<plugins>
<plugin>

View File

@@ -0,0 +1 @@
Adds a action to be executed when a member reaches a level

View File

@@ -0,0 +1,7 @@
This command configures an pre-defined action to be executed when a member reaches a certain level (or a level above).
These actions are pre-defined.
The actions available per default:
add_member_to_channel_above_level: Adds a member to the provided channel with view channel and write message permissions. The channel can be provided as: ID, mention or name of channel
add_role_above_level: Adds the provided role to a member. The role can be provided as. ID, mention or name of role.
remove_member_from_channel_above_level: Removes all permission overrides of a member on a channel. The channel can be provided as: ID, mention or name of channel.
remove_role_above_level: Removes the provided role to a member. The role can be provided as. ID, mention or name of role.

View File

@@ -0,0 +1 @@
If provided this will restrict the action to be only executed for this member

View File

@@ -0,0 +1 @@
Parameters specific to the action to be performed.

View File

@@ -0,0 +1 @@
Removes a action from the actions to be performed when a member reaches a level

View File

@@ -0,0 +1,2 @@
This command can be used to remove an action from the actions to be performed when a member reaches a certain level.
The action is identified by: action name, level, and optionally the member.

View File

@@ -0,0 +1 @@
If provided this will restrict the action to be removed to only this member

View File

@@ -0,0 +1 @@
Shows the current level actions, and the member restrictions (if any)

View File

@@ -0,0 +1 @@
<#assign channelMention="<#${parameters.channelId?c}>"> Adds member to ${channelMention}

View File

@@ -0,0 +1 @@
<#assign rolePing="<@&${parameters.roleId?c}>">Adds role ${rolePing}

View File

@@ -0,0 +1 @@
Action at level ${level}: ${actionDescription} (`${actionKey}`). ${actionParameter}. <#if memberdisplay??>This is limited to ${memberdisplay}</#if>

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