MonitoRSS
  • Welcome to v6.0.0
  • Setting Up (Self Hosting)
    • Bot
    • Web Interface
      • Setting up HTTPS
    • Docker
    • Existing Bot/NPM
    • Process Managers
    • Staying Updated
  • Configuration
    • Bot Config
      • Schedules
    • Web Interface Config
    • Environment Variables
    • Discord Commands
    • MongoDB vs Databaseless
  • Bot Customizations
    • Placeholders
    • Text
    • Embed
    • Filters
      • Regular
      • Regex
    • Subscribers
    • Dates and Timezone
    • Webhooks
  • Advanced Bot Customizations
    • Custom Comparisons
    • Filtered Message Formats
    • Custom Regex Placeholders
  • More Info
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Configuration
  2. Bot Config

Schedules

A custom schedule is a way to put feeds with certain specified words in their links on a separate schedule from everything else. Every schedule is defined in a file named settings/schedules.json. For example:

settings/schedules.json
{
    "feed43": {
        "refreshRateMinutes": 100,
        "keywords": [
            "feed43",
            "feed43.com"
        ]
    },
    "some other one": {
        "refreshRateMinutes": 1000,
        "keywords": [
            "whatever.com"
        ]
    }
}

Keywords is an array of words that the links must include. Note that this is done with the function <string>.includes. This means that if you "a" into the keywords array, it will trigger all links that has the letter a in it.

Any links assigned to a custom schedule (the assignment of links to custom schedules is logged on initialization, specifying what link is assigned to what schedule) will be excluded from the default schedule. If more than one schedule's keywords matches a feed link, whichever schedule gets to it first will 'claim' it.

You can also specify feeds by their IDs:

settings/schedules.json
{
    "feed43": {
        "refreshRateMinutes": 15,
        "feeds": [
            "id123"
        ]
    }
}

To get feed IDs, you may use the backup command by looking for the _id key in objects within the feeds array.

PreviousBot ConfigNextWeb Interface Config

Last updated 3 years ago

Was this helpful?