[SIS-xxx] adding weekly text feature specific to miepscord server

This commit is contained in:
Sheldan
2024-10-29 22:20:57 +01:00
parent 4d69a90d5d
commit 170588d638
62 changed files with 1062 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
<?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.sissi.templates</groupId>
<artifactId>module-templates</artifactId>
<version>1.4.61-SNAPSHOT</version>
</parent>
<artifactId>miepscord-templates</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>miepscord-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 "addWeeklyText_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

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

View File

@@ -0,0 +1,6 @@
<#include "format_instant">
<#assign done=item.done>
<#assign text=item.text>
<#assign id=item.id>
<#assign created><@format_instant_long_date_time instant=item.created/></#assign>
<@safe_include "showWeeklyTexts_response_text"/>

View File

@@ -0,0 +1,7 @@
{
"embeds": [
{
"description": "<@safe_include "showWeeklyTexts_no_items_found_text"/>"
}
]
}

View File

@@ -0,0 +1,9 @@
{
<#assign exitOnly=innerModel.items?size lt 11/>
"embedConfigs": [
<#assign chunks=innerModel.items?chunk(10)>
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "showWeeklyTexts_response_item_entry"><#sep>,</#list>
],
"timeoutSeconds": 120,
"restrictUser": true
}

View File

@@ -0,0 +1,10 @@
{
"embeds": [
{
"description": "<#list row as item><#assign item=item><@safe_include "showWeeklyTexts_item_entry"/>\n</#list>"
}
],
"buttons": [
<#include "paginator_buttons">
]
}

View File

@@ -0,0 +1,8 @@
{
<#assign rolePing="<@&1300195018933534843>">
<#assign text=text>
"additionalMessage": "<@safe_include "weekly_text_item_post_text"/>",
"messageConfig": {
"allowsRoleMention": true
}
}