|
|
@ -23,6 +23,8 @@ module.exports = function createPastebinComScraper(options = {}) {
|
|
|
|
let knownPastes = [];
|
|
|
|
let knownPastes = [];
|
|
|
|
let previousKnownPastes = [];
|
|
|
|
let previousKnownPastes = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
debug(`Initializing with pasteInterval ${options.pasteInterval}, listInterval ${options.listInterval}, and listLimit ${options.listLimit}`);
|
|
|
|
|
|
|
|
|
|
|
|
queue.define("fetchPaste", (task) => {
|
|
|
|
queue.define("fetchPaste", (task) => {
|
|
|
|
return Promise.try(() => {
|
|
|
|
return Promise.try(() => {
|
|
|
|
debug(`Fetching paste ID ${task.pasteKey}...`)
|
|
|
|
debug(`Fetching paste ID ${task.pasteKey}...`)
|
|
|
|