Skip to content

Java RSS Feed - #1037

Merged
christolis merged 54 commits into
Together-Java:developfrom
nateweisz:feat/java-mail-feed
Apr 13, 2024
Merged

Java RSS Feed#1037
christolis merged 54 commits into
Together-Java:developfrom
nateweisz:feat/java-mail-feed

Conversation

@nateweisz

@nateweisz nateweisz commented Feb 28, 2024

Copy link
Copy Markdown
Contributor

Contains config changes

#882

This PR adds support for forwarding RSS feed's to a discord channel. It supports as many different URLs as you would like.

Screenshots

image

TODO

  • Have both text channel patterns, with the targetChannelPattern as an optional, and the javaNewsChannelPattern acting as the fallback.
  • Send the RSS posts in an ascending order by date such that the most recent post is sent last.
  • before merge remove 183ce42

@CLAassistant

CLAassistant commented Feb 28, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread application/src/main/java/org/togetherjava/tjbot/config/Config.java Outdated
@Together-Java Together-Java deleted a comment from nateweisz Feb 28, 2024
@nateweisz
nateweisz marked this pull request as ready for review February 29, 2024 17:24
@nateweisz
nateweisz requested review from a team as code owners February 29, 2024 17:24
@christolis
christolis force-pushed the feat/java-mail-feed branch 2 times, most recently from 8605901 to 431004e Compare February 29, 2024 17:34
@christolis
christolis requested a review from SquidXTV February 29, 2024 17:36
@christolis christolis added enhancement New feature or request priority: normal labels Feb 29, 2024
@Alathreon

Copy link
Copy Markdown
Contributor

Please explain in the description what is this pr.

@Alathreon Alathreon linked an issue Feb 29, 2024 that may be closed by this pull request
Comment thread application/src/main/java/org/togetherjava/tjbot/config/Config.java Outdated
@christolis
christolis force-pushed the feat/java-mail-feed branch from a35ba72 to f9cf078 Compare March 1, 2024 17:25
@christolis
christolis requested a review from Alathreon March 1, 2024 23:36
Comment thread application/src/main/java/org/togetherjava/tjbot/config/Config.java Outdated
SquidXTV
SquidXTV previously approved these changes Mar 5, 2024
Comment thread application/src/main/java/org/togetherjava/tjbot/config/Config.java
@christolis
christolis force-pushed the feat/java-mail-feed branch 2 times, most recently from 6e6ccb2 to 6a2314c Compare March 10, 2024 19:18
@christolis
christolis requested a review from Alathreon March 10, 2024 20:13
christolis and others added 11 commits April 4, 2024 09:25
This also changes the functionality of how new RSS feeds get dealt with
for the first time. Before this commit, all items would get posted as
embeds on Discord, and as a result, that would bombard the target
channel with RSS posts once the routine executes.

This commit changes this behavior by assuming that all RSS posts have
been posted and it should only consider posting posts newer than the
registered date.
Co-authored-by: Nathan Weisz <151496498+nateweisz@users.noreply.github.com>
@christolis
christolis force-pushed the feat/java-mail-feed branch from 9f9e2ab to 82fd9b7 Compare April 4, 2024 06:25
Comment thread application/config.json.template Outdated
@ankitsmt211
ankitsmt211 requested a review from Alathreon April 8, 2024 17:04
Comment thread application/config.json.template Outdated
nateweisz and others added 2 commits April 9, 2024 06:32
Co-authored-by: Tanish <tanishazad03@gmail.com>
fix(rss): polling interval is now clear on unit of time
fix(rss): posting messages now uses forEachOrdered
@nateweisz
nateweisz requested a review from Taz03 April 13, 2024 16:32
@christolis
christolis merged commit 835a951 into Together-Java:develop Apr 13, 2024
@ankitsmt211 ankitsmt211 mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java Mail RSS Forwarder

6 participants