From 0ca9af8c3af6203264a53dac15cc5a4079240e7d Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 31 Jul 2022 10:07:14 -0700 Subject: [PATCH] only post discord if setting active --- src/scraper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scraper.js b/src/scraper.js index 2c03ea3..9a14c80 100644 --- a/src/scraper.js +++ b/src/scraper.js @@ -258,7 +258,7 @@ class Scrape extends Collection { writeToDatabase(q) .then((res) => this.writeLastBlock(log.blockNumber)) .catch((err) => console.log(`Error writing to database: ${err}`)); - if (checkUnsentNotif(txHash, logIndex)) { + if (process.env.DISCORD_ACTIVE == 1 && checkUnsentNotif(txHash, logIndex)) { postDiscord(q) .then(async res => { await markSent(txHash, logIndex);