Throw error when no pasteInterval is configured

master
Sven Slootweg 7 years ago
parent bd05f9535a
commit bbbf9d4fba

@ -23,6 +23,10 @@ module.exports = function createPastebinComScraper(options = {}) {
let knownPastes = [];
let previousKnownPastes = [];
if (options.pasteInterval == null) {
throw new Error("A `pasteInterval` is required in the `pastebinCom` scraper configuration, but none was provided");
}
debug(`Initializing with pasteInterval ${options.pasteInterval}, listInterval ${options.listInterval}, and listLimit ${options.listLimit}`);
queue.define("fetchPaste", (task) => {

Loading…
Cancel
Save