You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### UPDATED
- Item links from RSS feed sources that have `follow-redirects` enabled will now be trottled to prevent from being flagged as an automated query
### FIXED
- Missing additional space when removing source from Google News RSS feed item titles
### ADDED
- Ability to only allow certain links to post from an RSS feed source
- Ability to add a dynamic year to messages routed via the Message Proxy
- RSS feeds will now track item titles due to some feeds changing URLs after item is published
Copy file name to clipboardExpand all lines: README.md
+20-16Lines changed: 20 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -791,6 +791,7 @@ __NOTE:__ For Google News RSS Feeds, the source will be stripped from the title
791
791
|`rss-feeds[x].user-agent`|`string`| User agent to use when retrieving RSS feed | no | Most popular user agents found in [Tech Blog (wh)](https://techblog.willshouse.com/2012/01/03/most-common-user-agents/)|
792
792
|`rss-feeds[x].follow-redirects`|`boolean`| Follow redirects for each RSS update | no |`true` or `false`|
793
793
|`rss-feeds[x].remove-parameters`|`boolean`| Remove all parameters for each RSS update | no |`true` or `false`|
794
+
|`rss-feeds[x].allowed-urls`|`string[]`| Allow only URLs you specify to be sent | no | Partial URL beginning with. For example, `https://www.example.com/news/example.html` is allowed if `https://www.example.com/news/` is specified |
794
795
|`rss-feeds[x].payload`|`object`| Message content to send for each RSS update | yes |`BaseMessageOptions` in [discord.js Documentation](https://discord.js.org/#/docs/main/stable/typedef/BaseMessageOptions). Variables include `%ITEM_LINK%` and `%ITEM_TITLE%`|
795
796
|`rss-feeds[x].channel`|`object`|| yes ||
796
797
|`rss-feeds[x].channel.description`|`string`| Description of the channel used to send message content | no ||
@@ -813,6 +814,9 @@ __NOTE:__ For Google News RSS Feeds, the source will be stripped from the title
813
814
"user-agent": "stonker-bot",
814
815
"follow-redirects": true,
815
816
"remove-parameters": true,
817
+
"allowed-urls": [
818
+
"https://www.example.com/news/"
819
+
],
816
820
"payload": {
817
821
"content": "Sample: %ITEM_TITLE% - %ITEM_LINK%"
818
822
},
@@ -1236,22 +1240,22 @@ __NOTE:__ Replacements will expose the entire payload using regular expression.
1236
1240
1237
1241
__NOTE:__ Message edits and deletions will not be passed onto their offsets.
|`message-proxies[x].replacements[x].flags`|`string`| Regex flags | no | Read [Advanced searching with flags](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#advanced_searching_with_flags)|
1250
-
|`message-proxies[x].replacements[x].replace-with`|`string`| Replace with | yes | Read [Using a regular expression to change data format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#using_a_regular_expression_to_change_data_format)|
1251
-
|`message-proxies[x].print-payload`|`boolean`| Print the "payload_json" value before and after replacements | no |`true` or `false`|
1252
-
|`message-proxies[x].webhook`|`object`|| yes ||
1253
-
|`message-proxies[x].webhook.description`|`string`| Description of the webhook | no ||
1254
-
|`message-proxies[x].webhook.webhook-url`|`string`| Link to webhook | yes | Discord webhook link |
|`message-proxies[x].replacements[x].flags`|`string`| Regex flags | no | Read [Advanced searching with flags](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#advanced_searching_with_flags)|
1254
+
|`message-proxies[x].replacements[x].replace-with`|`string`| Replace with | yes | Read [Using a regular expression to change data format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#using_a_regular_expression_to_change_data_format). Variables include `%YEAR%`|
1255
+
|`message-proxies[x].print-payload`|`boolean`| Print the "payload_json" value before and after replacements | no |`true` or `false`|
1256
+
|`message-proxies[x].webhook`|`object`|| yes ||
1257
+
|`message-proxies[x].webhook.description`|`string`| Description of the webhook | no ||
1258
+
|`message-proxies[x].webhook.webhook-url`|`string`| Link to webhook | yes | Discord webhook link |
0 commit comments