Skip to content

Commit f3f9c91

Browse files
committed
docs: add javadocs to rss feed config & update config with more minimal headers
1 parent 9d4370d commit f3f9c91

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

application/config.json.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@
175175
"fallbackChannelPattern": "java-news-and-changes",
176176
"pollIntervalInMinutes": 10,
177177
"clientRequestHeaders": {
178-
"User-Agent": "Mozilla/5.0",
179-
"Accept": "application/xhtml+xml,application/xml;",
180-
"Accept-Language": "en-US,en;"
178+
"User-Agent": "Mozilla",
179+
"Accept": "application/xml;",
180+
"Accept-Language": "en-US;"
181181
}
182182
},
183183
"memberCountCategoryPattern": "Info"

application/src/main/java/org/togetherjava/tjbot/config/RSSFeedsConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* @param feeds The list of RSS feeds to subscribe to.
1414
* @param fallbackChannelPattern The pattern used to identify the fallback text channel to use.
1515
* @param pollIntervalInMinutes The interval (in minutes) for polling the RSS feeds for updates.
16+
* @param clientRequestHeaders The headers that will be sent with each request to the RSS feeds.
1617
*/
1718
public record RSSFeedsConfig(@JsonProperty(value = "feeds", required = true) List<RSSFeed> feeds,
1819
@JsonProperty(value = "fallbackChannelPattern",
@@ -26,6 +27,7 @@ public record RSSFeedsConfig(@JsonProperty(value = "feeds", required = true) Lis
2627
* @param feeds The list of RSS feeds to subscribe to.
2728
* @param fallbackChannelPattern The pattern used to identify the fallback text channel to use.
2829
* @param pollIntervalInMinutes The interval (in minutes) for polling the RSS feeds for updates.
30+
* @param clientRequestHeaders The headers that will be sent with each request to the RSS feeds.
2931
* @throws NullPointerException if any of the parameters (feeds or fallbackChannelPattern) are
3032
* null
3133
*/

0 commit comments

Comments
 (0)