mirror of
https://github.com/Sheldan/OnePlusBot.git
synced 2026-04-04 01:18:19 +00:00
[OPB-12] adding news/newsupdate command and introducing mechanisms for cleanup thereof
changing templates to have the metaconfig moving starboard custom templates
This commit is contained in:
@@ -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">
|
||||
<parent>
|
||||
<groupId>dev.sheldan.oneplus.bot.templates.modules</groupId>
|
||||
<artifactId>oneplus-bot-modules-templates</artifactId>
|
||||
<version>1.3.9-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>starboard-custom-templates</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>starboard-custom-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,41 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "starboard_post_created_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "starboard_post_created_description"/>",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "starboard_post_notification_field_starboard_message"/>",
|
||||
<#if starboardMessage??>
|
||||
"value": "[<@safe_include "starboard_post_notification_field_starboard_message_jump"/>](${starboardMessage.jumpUrl})"
|
||||
<#else>
|
||||
"value": "${post.starboardMessageId?c}"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "starboard_post_notification_field_starred_message"/>",
|
||||
<#if starredMessage??>
|
||||
"value": "[<@safe_include "starboard_post_notification_field_starboard_message_jump"/>](${starredMessage.jumpUrl})"
|
||||
<#else>
|
||||
"value": "${post.postMessageId?c}"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "starboard_post_notification_field_starred_user"/>",
|
||||
<#if starredMember??>
|
||||
"value": "${starredMember.asMention}"
|
||||
<#else>
|
||||
"value": "${starredUserId?c} (<@safe_include "user_left_server"/>)"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "starboard_post_notification_field_starring_user"/>",
|
||||
<#if starringMember??>
|
||||
"value": "${starringMember.asMention}"
|
||||
<#else>
|
||||
"value": "${starringUserId?c} (<@safe_include "user_left_server"/>)"
|
||||
</#if>
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "starboard_post_deleted_title"/>"
|
||||
},
|
||||
<#include "abstracto_color">,
|
||||
"description": "<@safe_include "starboard_post_deleted_description"/>",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "starboard_post_notification_field_starred_message"/>",
|
||||
<#if starredMessage??>
|
||||
"value": "[<@safe_include "starboard_post_notification_field_starboard_message_jump"/>](${starredMessage.jumpUrl})"
|
||||
<#else>
|
||||
"value": "${starredMessageSimple.jumpUrl}"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "starboard_post_notification_field_starred_user"/>",
|
||||
<#if starredMember??>
|
||||
"value": "${starredMember.asMention}"
|
||||
<#else>
|
||||
"value": "${starredUserId?c} (<@safe_include "user_left_server"/>)"
|
||||
</#if>
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "starboard_post_notification_field_starring_user"/>",
|
||||
<#if starringMember??>
|
||||
"value": "${starringMember.asMention}"
|
||||
<#else>
|
||||
"value": "${starringUserId?c} (<@safe_include "user_left_server"/>)"
|
||||
</#if>
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user