mirror of
https://github.com/Sheldan/OnePlusBot.git
synced 2026-04-14 04:29:08 +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,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,12 @@
|
||||
{
|
||||
<#assign roleMention="<@&823285857515470868>"/>
|
||||
<#assign authorMention>${author.user.name}#${author.user.discriminator}</#assign>
|
||||
"additionalMessage": "<@safe_include "news_post_description"/>",
|
||||
<#if message.attachments?size gt 0>
|
||||
"imageUrl": "${message.attachments[0].proxyUrl}",
|
||||
</#if>
|
||||
"metaConfig": {
|
||||
"allowsRoleMention": true,
|
||||
"preventEmptyEmbed": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_post_locked_exception_message">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_post_not_found_exception_text">
|
||||
Reference in New Issue
Block a user