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.

Last updated