diff --git a/src/scrapers/pastebin-com.js b/src/scrapers/pastebin-com.js index 4136d3c..3310951 100644 --- a/src/scrapers/pastebin-com.js +++ b/src/scrapers/pastebin-com.js @@ -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) => {