@ -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) => {