[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:
Sheldan
2021-04-24 01:38:59 +02:00
parent d860ad6291
commit bf55064984
64 changed files with 2477 additions and 10 deletions
@@ -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 @@
Posts a news post in the news channel
@@ -0,0 +1,4 @@
Creates a news with the provided text and any attachments in the `news` post target with the defined template.
The news post can be updated via editing the original message containing the command or by the command `updateNews`.
This is only possible as long as the news post has not been locked. This is the case a few hours after posting it.
The news posts are completely removed from the database a few days after locking them.
@@ -0,0 +1 @@
The text the news post should contain
@@ -0,0 +1,4 @@
${messageText}
${roleMention?json_string}
- ${authorMention}
@@ -0,0 +1 @@
Command used to update an existing news post content
@@ -0,0 +1,4 @@
This command can be used to update the news post complete.
This will effectively render the template new (including author) and replace the contents of the existing news post.
Editing the news post does not re-ping any roles.
This is only possible as long as the news post was not locked and is still stored in the database.
@@ -0,0 +1 @@
The ID of the news post message which was created.
@@ -0,0 +1 @@
The channel in which the news should be posted in. Currently: ${currentTarget}
@@ -0,0 +1 @@
Module used to post & update news in the server
@@ -0,0 +1 @@
News post is locked and cannot be edited.