mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-16 12:28:08 +00:00
Compare commits
61 Commits
templates-
...
9fe1a8ec80
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fe1a8ec80 | ||
|
|
65057071ed | ||
|
|
f10b7efc8d | ||
|
|
89b0f44ad8 | ||
|
|
21f292dc76 | ||
|
|
0898f2cb9a | ||
|
|
63547f1613 | ||
|
|
cd6e3098f2 | ||
|
|
eea34f3b88 | ||
|
|
e14c0e9a3b | ||
|
|
19d1aff734 | ||
|
|
1566f9025e | ||
|
|
6c9449e4ea | ||
|
|
97ed46c4e6 | ||
|
|
e10bf36a0a | ||
|
|
aeed7b97ae | ||
|
|
d8923adae1 | ||
|
|
4bc06cbb07 | ||
|
|
f7e8fb29f1 | ||
|
|
92f53be054 | ||
|
|
81734391a2 | ||
|
|
ab84d05a26 | ||
|
|
d0d91a0ddd | ||
|
|
68bb56b18b | ||
|
|
5a00f213da | ||
|
|
6dd3b70bb2 | ||
|
|
f0600df517 | ||
|
|
4d52be255f | ||
|
|
6e5ab2f9ae | ||
|
|
2e16457baf | ||
|
|
f778fe8804 | ||
|
|
48ad43a1b0 | ||
|
|
7ee101de79 | ||
|
|
dee05ccc88 | ||
|
|
b1594b6a20 | ||
|
|
b88046493b | ||
|
|
7256e72dbc | ||
|
|
6f9a055886 | ||
|
|
8a2ae1c492 | ||
|
|
c0a0bf23ff | ||
|
|
351325abe3 | ||
|
|
ff5f56a065 | ||
|
|
7718a86b14 | ||
|
|
2d92a15bf0 | ||
|
|
c230455678 | ||
|
|
e5549154e0 | ||
|
|
609609e484 | ||
|
|
9fc76179dc | ||
|
|
ba52bea891 | ||
|
|
fd0c99ae60 | ||
|
|
3687ec3daf | ||
|
|
12665c09af | ||
|
|
6819b13439 | ||
|
|
b5d6b964e2 | ||
|
|
3d7359daa3 | ||
|
|
5b298ec037 | ||
|
|
cca6c9eb9d | ||
|
|
3d1ef56aed | ||
|
|
4278310ddc | ||
|
|
7d87c0d3f4 | ||
|
|
a1d6d04011 |
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -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
26
.github/workflows/release_manual.yml
vendored
Normal 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"
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<artifactId>core</artifactId>
|
<artifactId>core</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
<#macro member_user_name member>${member.effectiveName?json_string}#${member.user.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_display_member_name member><#if member.nickname?has_content>${member.nickname?json_string}<#else>${member.userName?json_string}</#if>#${member.discriminator}</#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_user_name member>${member.userName?json_string}#${member.discriminator}</#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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "echo_redirect_response"/>",
|
||||||
|
"messageConfig": {
|
||||||
|
"ephemeral": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"additionalMessage": "<@safe_include "enableFeature_response_text"/>",
|
"additionalMessage": "<@safe_include "enableFeature_response_text"/><#if validationText?has_content>${validationText}</#if>",
|
||||||
"messageConfig": {
|
"messageConfig": {
|
||||||
"ephemeral": true
|
"ephemeral": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,22 +10,32 @@
|
|||||||
|
|
||||||
<#if command.help??>
|
<#if command.help??>
|
||||||
<#if command.help.templated>
|
<#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}`
|
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
||||||
|
</#if>
|
||||||
**<@safe_include "help_command_embed_command_detailed_help"/>**: <@safe_include "${command.name}_long_help"/>
|
**<@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"/>
|
<@safe_include "help_command_embed_command_example"/>: <@safe_include "${command.name}_example"/>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#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}`
|
**<@safe_include "help_command_embed_command_usage"/>**: `${usage}`
|
||||||
|
</#if>
|
||||||
**<@safe_include "help_command_embed_command_detailed_help"/>**: ${command.help.longHelp?json_string}
|
**<@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}
|
<@safe_include "help_command_embed_command_example"/>:${command.help.example?json_string}
|
||||||
</#if>
|
</#if>
|
||||||
</#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}`
|
<@safe_include "help_command_embed_command_aliases"/>: `${command.aliases?join("`, `")?json_string}`
|
||||||
</#if>
|
</#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}`
|
<@safe_include "help_command_embed_command_server_aliases"/>: `${serverSpecificAliases?join("`, `")?json_string}`
|
||||||
</#if>
|
</#if>
|
||||||
<#if cooldowns??>
|
<#if cooldowns??>
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "removeCommandMemberCooldown_response_text"/>",
|
||||||
|
"messageConfig": {
|
||||||
|
"ephemeral": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "setCommandMemberCooldown_response_text"/>",
|
||||||
|
"messageConfig": {
|
||||||
|
"ephemeral": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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>
|
<#assign reason>${model.reason.reason}</#assign>
|
||||||
<#include "command_cool_down_detail_text">
|
<#include "command_cool_down_detail_text">
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<#include "user_user_name">
|
||||||
{
|
{
|
||||||
"embeds": [
|
"embeds": [
|
||||||
{
|
{
|
||||||
@@ -7,7 +8,7 @@
|
|||||||
<#else>
|
<#else>
|
||||||
"author":
|
"author":
|
||||||
{
|
{
|
||||||
"name": "${fullUser.user.name?json_string}#${fullUser.user.discriminator}",
|
"name": "<@user_user_name user=fullUser.user/>",
|
||||||
"avatar": "${fullUser.user.effectiveAvatarUrl}"
|
"avatar": "${fullUser.user.effectiveAvatarUrl}"
|
||||||
},
|
},
|
||||||
</#if>
|
</#if>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
<#include "abstracto_color">,
|
||||||
|
"description": "<@safe_include "createCustomCommand_response_description"/>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
<#include "abstracto_color">,
|
||||||
|
"description": "<@safe_include "deleteCustomCommand_response_description"/>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "getCustomCommand_response_text"/>"
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<#assign name=command.name/>
|
||||||
|
<#assign content=command.content/>
|
||||||
|
<#assign creator=command.creator.memberMention/>
|
||||||
|
<#include "listCustomCommands_entry_text">
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
<#include "abstracto_color">,
|
||||||
|
"description": "<@safe_include "listCustomCommands_no_commands_response_text"/>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
"description": "<#list row as command><#assign command=command><@safe_include "listCustomCommands_entry"/>\n</#list>"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"buttons": [
|
||||||
|
<#include "paginator_buttons">
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
<#assign exitOnly=innerModel.customCommands?size lt 5/>
|
||||||
|
"embedConfigs": [
|
||||||
|
<#assign chunks=innerModel.customCommands?chunk(4)>
|
||||||
|
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "listCustomCommands_response_entry"><#sep>,</#list>
|
||||||
|
],
|
||||||
|
"timeoutSeconds": 120,
|
||||||
|
"restrictUser": true
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "custom_command_exists_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "custom_command_not_found_exception_text">
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
<#assign user=memberDisplay.memberMention>
|
||||||
|
"additionalMessage": "<@safe_include "pressF_join_text"/>"
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
<#assign userCount=userCount>
|
||||||
|
<#assign text=text?json_string>
|
||||||
|
"additionalMessage": "<@safe_include "pressF_result_text"/>"
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "already_pressed_f_exception_text">
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
<#assign retryDuration>${fmtDuration(model.tryAgainDuration)}</#assign>
|
|
||||||
<#include "payday_cooldown_exception_text">
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
<#assign retryDuration>${fmtDuration(model.tryAgainDuration)}</#assign>
|
|
||||||
<#include "payday_cooldown_exception_text">
|
|
||||||
@@ -4,13 +4,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<artifactId>experience-tracking</artifactId>
|
<artifactId>experience-tracking</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
35
abstracto-modules/giveaway/pom.xml
Normal file
35
abstracto-modules/giveaway/pom.xml
Normal 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>
|
||||||
15
abstracto-modules/giveaway/src/main/assembly/assembly.xml
Normal file
15
abstracto-modules/giveaway/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,6 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "cancelGiveaway_response_text"/>",
|
||||||
|
"messageConfig": {
|
||||||
|
"ephemeral": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "createGiveaway_response_text"/>",
|
||||||
|
"messageConfig": {
|
||||||
|
"ephemeral": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "reRollGiveaway_response_text"/>",
|
||||||
|
"messageConfig": {
|
||||||
|
"ephemeral": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "giveaway_not_found_exception_message">
|
||||||
@@ -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>
|
||||||
|
}
|
||||||
@@ -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}"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "giveaway_already_joined_response_text"/>",
|
||||||
|
"messageConfig": {
|
||||||
|
"ephemeral": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "giveaway_join_response_text"/>",
|
||||||
|
"messageConfig": {
|
||||||
|
"ephemeral": true
|
||||||
|
}
|
||||||
|
}
|
||||||
36
abstracto-modules/image-generation/pom.xml
Normal file
36
abstracto-modules/image-generation/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">
|
||||||
|
<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>
|
||||||
@@ -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 @@
|
|||||||
|
{}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<#assign inputText=model.inputText>
|
||||||
|
<#assign errorMessage=model.errorMessage>
|
||||||
|
<#include "amongusText_exception_message"/>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"embeds": [
|
"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"/>",
|
"description": "<@safe_include "user_joined_text"/>",
|
||||||
<#include "abstracto_color"/>
|
<#include "abstracto_color"/>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"embeds": [
|
"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"/>",
|
"description": "<@safe_include "user_left_text"/>",
|
||||||
<#include "abstracto_color"/>
|
<#include "abstracto_color"/>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<artifactId>moderation</artifactId>
|
<artifactId>moderation</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
<#include "user_detail">
|
<#include "user_detail">
|
||||||
<#include "full_member_info">
|
<#include "full_member_info">
|
||||||
|
<#assign bannedUserName=bannedUser.name>
|
||||||
"title": {
|
"title": {
|
||||||
"title": "<@safe_include "ban_log_title"/>"
|
"title": "<@safe_include "ban_log_title"/>"
|
||||||
},
|
},
|
||||||
@@ -26,11 +27,11 @@
|
|||||||
"name": "<@safe_include "ban_log_reason_field_title"/>",
|
"name": "<@safe_include "ban_log_reason_field_title"/>",
|
||||||
"value": "${reason?json_string}"
|
"value": "${reason?json_string}"
|
||||||
}
|
}
|
||||||
<#if deletionDays gt 0>
|
<#if deletionDuration?has_content>
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "ban_log_deletion_days_field_title"/>",
|
"name": "<@safe_include "ban_log_deletion_duration_field_title"/>",
|
||||||
"value": "${deletionDays?c}"
|
"value": "${fmtDuration(deletionDuration)}"
|
||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "honeypot_ban_reason_text">
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
<#include "user_detail">
|
<#include "user_detail">
|
||||||
<#include "abstracto_color">,
|
<#include "abstracto_color">,
|
||||||
|
<#assign bannedUserName=bannedUser.name>
|
||||||
"description" : "<@safe_include "userBanned_description"/>",
|
"description" : "<@safe_include "userBanned_description"/>",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<artifactId>modmail</artifactId>
|
<artifactId>modmail</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"additionalMessage": "<@safe_include "contact_response_text"/>",
|
"additionalMessage": "<@safe_include "contact_response_text"/>"
|
||||||
"messageConfig": {
|
|
||||||
"ephemeral": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "modmail_thread_closed_exception_text">
|
||||||
@@ -8,13 +8,15 @@
|
|||||||
},
|
},
|
||||||
<#include "modmail_color">,
|
<#include "modmail_color">,
|
||||||
<#assign user><@member_user_name member=member/>(${member.user.id})</#assign>
|
<#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": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "modmail_notification_field_title_channel"/>",
|
"name": "<@safe_include "modmail_notification_field_title_channel"/>",
|
||||||
"value": "${channel.asMention}"
|
"value": "${channel.asMention}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
</#if>
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"messageConfig": {
|
"messageConfig": {
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates</groupId>
|
||||||
<artifactId>templates</artifactId>
|
<artifactId>templates</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>core</module>
|
<module>core</module>
|
||||||
@@ -35,6 +35,8 @@
|
|||||||
<module>anti-raid</module>
|
<module>anti-raid</module>
|
||||||
<module>custom-command</module>
|
<module>custom-command</module>
|
||||||
<module>twitch</module>
|
<module>twitch</module>
|
||||||
|
<module>giveaway</module>
|
||||||
|
<module>image-generation</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<artifactId>statistic</artifactId>
|
<artifactId>statistic</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
<#include "format_instant">
|
||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
<#include "abstracto_color"/>,
|
||||||
|
<#assign pollId=id>
|
||||||
|
<#assign description=description>
|
||||||
|
<#assign pollCreationDate><@format_instant_date_time instant=creationDate/></#assign>
|
||||||
|
<#assign pollTargetDate><@format_instant_date_time instant=targetDate/></#assign>
|
||||||
|
<#assign allowMultipleStr>${allowMultiple?string('✅', '❌')}</#assign>
|
||||||
|
<#assign showDecisionsStr>${showDecisions?string('✅', '❌')}</#assign>
|
||||||
|
<#assign allowAdditionsStr>${allowAdditions?string('✅', '❌')}</#assign>
|
||||||
|
<#assign totalVotes=totalVotes>
|
||||||
|
"description": "<@safe_include "showPoll_response_description"/><#list options as option><#assign option=option><@safe_include "showPoll_response_option_display"/><#sep>\n</#list>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Option: `${option.value}` - votes: ${option.votes} (${option.percentage}%)<#if option.adder?has_content> - Added by ${option.adder.memberMention}</#if>
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
<#if message?? && message.attachments?size gt 0>
|
<#if message?? && message.attachments?size gt 0>
|
||||||
"imageUrl": "${message.attachments[0].proxyUrl}",
|
"imageUrl": "${message.attachments[0].proxyUrl}",
|
||||||
</#if>
|
</#if>
|
||||||
"description": "<@safe_include "suggest_text_label"/>: ${text}"
|
"description": "<@safe_include "suggest_text_label"/>: ${text?json_string}"
|
||||||
<#if reason?has_content || buttonsActive>,
|
<#if reason?has_content || buttonsActive>,
|
||||||
"fields": [
|
"fields": [
|
||||||
<#if reason?has_content>
|
<#if reason?has_content>
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "poll_does_not_exist_exception_text">
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|||||||
@@ -5,7 +5,9 @@
|
|||||||
"description": "<#list streamers as streamer>
|
"description": "<#list streamers as streamer>
|
||||||
<#assign streamer=streamer>
|
<#assign streamer=streamer>
|
||||||
<#assign name=streamer.name>
|
<#assign name=streamer.name>
|
||||||
|
<#if streamer.targetChannel?has_content>
|
||||||
<#assign targetChannel=streamer.targetChannel.channelMention>
|
<#assign targetChannel=streamer.targetChannel.channelMention>
|
||||||
|
</#if>
|
||||||
<#assign showNotificationsDisplay>${streamer.showNotifications?string('✅', '❌')}</#assign>
|
<#assign showNotificationsDisplay>${streamer.showNotifications?string('✅', '❌')}</#assign>
|
||||||
<#assign streamerURL=streamer.streamerURL>
|
<#assign streamerURL=streamer.streamerURL>
|
||||||
<#include "listTwitchStreamer_response_streamer_display"><#sep>
|
<#include "listTwitchStreamer_response_streamer_display"><#sep>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"title": "${title?json_string}"
|
"title": "${title?json_string}"
|
||||||
},
|
},
|
||||||
"description": "<@safe_include "twitch_streamer_go_live_notification_current_section"/> <#if pastSections?? && pastSections?size gt 0><@safe_include "twitch_streamer_go_live_notification_past_sections"/></#if>",
|
"description": "<@safe_include "twitch_streamer_go_live_notification_current_section"/> <#if pastSections?? && pastSections?size gt 0><@safe_include "twitch_streamer_go_live_notification_past_sections"/></#if>",
|
||||||
"imageUrl": "${thumbnail}"
|
"imageUrl": "${thumbnail}?${randomString}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"messageConfig": {
|
"messageConfig": {
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<artifactId>utility</artifactId>
|
<artifactId>utility</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -7,8 +7,9 @@
|
|||||||
"imageUrl": "${memberInfo.user.effectiveAvatarUrl}",
|
"imageUrl": "${memberInfo.user.effectiveAvatarUrl}",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
|
<#include "member_user_name">
|
||||||
"name": "<@safe_include "showAvatar_response_embed_user_field_title"/>",
|
"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"
|
"inline": "true"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>abstracto-modules</artifactId>
|
<artifactId>abstracto-modules</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -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>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "dictionary_api_request_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "no_dictionary_api_definition_found_exception_text">
|
||||||
@@ -28,8 +28,16 @@
|
|||||||
"inline": "true"
|
"inline": "true"
|
||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
<#if humidity??>
|
<#if windSpeed??>
|
||||||
<#if temperature??>,</#if>
|
<#if temperature??>,</#if>
|
||||||
|
{
|
||||||
|
"name": "<@safe_include "openWeatherMap_command_response_field_wind_field_title"/>",
|
||||||
|
"value": "${windSpeed}m/s",
|
||||||
|
"inline": "true"
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
|
<#if humidity??>
|
||||||
|
<#if windSpeed?? || temperature??>,</#if>
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "openWeatherMap_command_response_field_humidity_field_title"/>",
|
"name": "<@safe_include "openWeatherMap_command_response_field_humidity_field_title"/>",
|
||||||
"value": "${humidity}%",
|
"value": "${humidity}%",
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "no_wikipedia_article_found_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "wikipedia_request_exception_text">
|
||||||
11
pom.xml
11
pom.xml
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>dev.sheldan.abstracto-templates</groupId>
|
<groupId>dev.sheldan.abstracto-templates</groupId>
|
||||||
<artifactId>templates</artifactId>
|
<artifactId>templates</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>abstracto-modules</module>
|
<module>abstracto-modules</module>
|
||||||
@@ -21,10 +21,11 @@
|
|||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<url>https://maven.pkg.github.com/Sheldan/abstracto-templates</url>
|
<connection>scm:git:${project.scm.url}</connection>
|
||||||
<developerConnection>scm:git:git@github.com:Sheldan/abstracto-templates.git</developerConnection>
|
<developerConnection>scm:git:${project.scm.url}</developerConnection>
|
||||||
<tag>templates-1.4.18</tag>
|
<url>https://github.com/Sheldan/abstracto-templates.git</url>
|
||||||
</scm>
|
<tag>HEAD</tag>
|
||||||
|
</scm>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
|||||||
19
settings.xml
Normal file
19
settings.xml
Normal 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>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>translations</artifactId>
|
<artifactId>translations</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>translations</artifactId>
|
<artifactId>translations</artifactId>
|
||||||
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
<groupId>dev.sheldan.abstracto-templates.translations</groupId>
|
||||||
<artifactId>translations</artifactId>
|
<artifactId>translations</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<artifactId>core</artifactId>
|
<artifactId>core</artifactId>
|
||||||
<version>1.4.18</version>
|
<version>1.4.33-SNAPSHOT</version>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Sent to ${channel.channelMention}.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The channel to post the message to
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
This command is only available as a message command.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
This command is only available as a slash command.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Removes the server wide cooldown for an individual member
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
This removes the cooldown that is applied to each member when they execute the command. The cooldown is the same on the whole server.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The command name to remove the cooldown for.
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user