mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-26 19:21:43 +00:00
[SIS-25] adding rss news module
updating abstracto version
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
<module>quotes-templates</module>
|
||||
<module>meetup-templates</module>
|
||||
<module>debra-templates</module>
|
||||
<module>rss-news-templates</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
@@ -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>
|
||||
<artifactId>module-templates</artifactId>
|
||||
<groupId>dev.sheldan.sissi.templates</groupId>
|
||||
<version>1.4.19-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>rss-news-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>rss-news-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,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "createServerNewsCategory_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "createServerNewsCategoryMapping_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "createNewsCategorySubscription_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "deleteServerNewsCategory_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "deleteServerNewsCategoryMapping_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "deleteNewsCategorySubscription_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
<#macro categoryDisplay category>
|
||||
<#assign categoryName=category.name>
|
||||
<@safe_include "showNewsCategories_category_display"/>
|
||||
|
||||
<#list category.mappings as mapping>
|
||||
<#assign channelDisplay = mapping.channel>
|
||||
<#assign statusIndicator>${mapping.enabled?string('✅', '❌')}</#assign>
|
||||
<@safe_include "showNewsCategories_mapping_display"/>
|
||||
|
||||
<#else> <@safe_include "showNewsCategories_no_mappings"/>
|
||||
</#list>
|
||||
<#list category.subscriptions as subscription>
|
||||
<#assign feedName = subscription.newsFeedName>
|
||||
<#assign categories>`${subscription.newsFeedCategories?join("`, `")}`</#assign>
|
||||
<@safe_include "showNewsCategories_subscription_display"/>
|
||||
|
||||
<#else> <@safe_include "showNewsCategories_no_subscriptions"/>
|
||||
</#list>
|
||||
</#macro>
|
||||
"description": "<#list newsCategories as category><@categoryDisplay category=category/><#else><@safe_include "showNewsCategories_no_categories"/></#list>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_category_already_exists_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_category_channel_mapping_already_exists_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_category_channel_mapping_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_category_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_feed_source_category_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_feed_source_category_subscription_already_exists_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_feed_source_category_subscription_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "news_feed_source_not_found_exception_text">
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"author": {
|
||||
"name": "<@safe_include "orf_news_post_author"/>"
|
||||
},
|
||||
"title": {
|
||||
"title": "${title}",
|
||||
"url": "${url}"
|
||||
},
|
||||
"description": "${url}<#if description?has_content>\n-${description}</#if>",
|
||||
"footer": {
|
||||
"text": "${category}"
|
||||
}
|
||||
<#if imageURL?has_content>
|
||||
,"imageUrl": "${imageURL}"
|
||||
</#if>
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -13,6 +13,7 @@
|
||||
<module>quote-translations</module>
|
||||
<module>meetup-translations</module>
|
||||
<module>debra-translations</module>
|
||||
<module>rss-news-translations</module>
|
||||
</modules>
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
<artifactId>module-translations</artifactId>
|
||||
<groupId>dev.sheldan.sissi.templates.translations</groupId>
|
||||
<version>1.4.19-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>rss-news-translations</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>rss-news-translations-${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 @@
|
||||
Created news category.
|
||||
@@ -0,0 +1 @@
|
||||
Creates a news category
|
||||
@@ -0,0 +1,3 @@
|
||||
A news category represents the grouping of external categories and defines where these categories should be posted to.
|
||||
A news category can group together multiple categories from multiple news feeds and then posts them to multiple channels.
|
||||
It is identified by a name and is individual per server.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the news category to create
|
||||
@@ -0,0 +1 @@
|
||||
Created server news category mapping.
|
||||
@@ -0,0 +1 @@
|
||||
Maps a news category to one or more channels
|
||||
@@ -0,0 +1,2 @@
|
||||
This command can be used to map a news category to one or more channels.
|
||||
Each of the channels will then get a message, once a new message is found for the given news category.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the category
|
||||
@@ -0,0 +1 @@
|
||||
The channel to post to
|
||||
@@ -0,0 +1 @@
|
||||
Created server news category subscription.
|
||||
@@ -0,0 +1 @@
|
||||
Subscribes the news category to a category
|
||||
@@ -0,0 +1,2 @@
|
||||
This command can be used to subscribe one news category to one particular news feed category.
|
||||
These news feed categories are the ones from the original sources and are determined externally.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the category
|
||||
@@ -0,0 +1 @@
|
||||
The name of the news feed
|
||||
@@ -0,0 +1 @@
|
||||
The name of the category in the news feed
|
||||
@@ -0,0 +1 @@
|
||||
Deleted server news category.
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a news category
|
||||
@@ -0,0 +1 @@
|
||||
This command deletes a news category with all mappings and subscriptions.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the news category to delete
|
||||
@@ -0,0 +1 @@
|
||||
Deleted server news category mapping.
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a news category channel mapping
|
||||
@@ -0,0 +1 @@
|
||||
This command can be used to delete a channel mapping in a news category
|
||||
@@ -0,0 +1 @@
|
||||
The category to remove the channel from
|
||||
@@ -0,0 +1 @@
|
||||
The channel to remove
|
||||
@@ -0,0 +1 @@
|
||||
Subscription deleted.
|
||||
@@ -0,0 +1 @@
|
||||
Deletes a news category subscription
|
||||
@@ -0,0 +1 @@
|
||||
Deletes the given news category subscription.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the category
|
||||
@@ -0,0 +1 @@
|
||||
The name of the news feed
|
||||
@@ -0,0 +1 @@
|
||||
The news feed category
|
||||
@@ -0,0 +1 @@
|
||||
Shows the current news category configuration
|
||||
@@ -0,0 +1 @@
|
||||
Shows the news category configuration including subscriptions and channel mappings
|
||||
@@ -0,0 +1 @@
|
||||
Category `${categoryName}`
|
||||
@@ -0,0 +1 @@
|
||||
Channel ${channelDisplay.channelMention} ${statusIndicator}
|
||||
@@ -0,0 +1 @@
|
||||
No news categories found.
|
||||
@@ -0,0 +1 @@
|
||||
No channels found.
|
||||
@@ -0,0 +1 @@
|
||||
No subscriptions.
|
||||
@@ -0,0 +1,2 @@
|
||||
Newsfeed `${feedName}`:
|
||||
Categories ${categories}
|
||||
@@ -0,0 +1 @@
|
||||
ORF News
|
||||
@@ -0,0 +1 @@
|
||||
RSS News
|
||||
@@ -0,0 +1 @@
|
||||
News category already exists.
|
||||
@@ -0,0 +1 @@
|
||||
News category channel mapping already exists.
|
||||
@@ -0,0 +1 @@
|
||||
News category channel mapping not found.
|
||||
@@ -0,0 +1 @@
|
||||
News category not found.
|
||||
@@ -0,0 +1 @@
|
||||
Source category not found.
|
||||
@@ -0,0 +1 @@
|
||||
Already subscribed to that category.
|
||||
@@ -0,0 +1 @@
|
||||
Not subscribed.
|
||||
@@ -0,0 +1 @@
|
||||
News feed not found.
|
||||
Reference in New Issue
Block a user