mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-26 19:21:43 +00:00
[SIS-xxx] adding weekly text feature specific to miepscord server
This commit is contained in:
@@ -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 "addWeeklyText_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "removeWeeklyText_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -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"/>
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<@safe_include "showWeeklyTexts_no_items_found_text"/>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"description": "<#list row as item><#assign item=item><@safe_include "showWeeklyTexts_item_entry"/>\n</#list>"
|
||||
}
|
||||
],
|
||||
"buttons": [
|
||||
<#include "paginator_buttons">
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
<#assign rolePing="<@&1300195018933534843>">
|
||||
<#assign text=text>
|
||||
"additionalMessage": "<@safe_include "weekly_text_item_post_text"/>",
|
||||
"messageConfig": {
|
||||
"allowsRoleMention": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user