From d1802a291ddc30368adb68fd8e5e7764ba1c9caa Mon Sep 17 00:00:00 2001 From: Wizzard Date: Wed, 13 Mar 2024 23:20:53 -0400 Subject: [PATCH] Remove duplicate message from showing --- main.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main.js b/main.js index ed243c0..141ef53 100644 --- a/main.js +++ b/main.js @@ -39,12 +39,7 @@ async function immediatePriceCheckAndAnnounce() { const solanaData = readSolanaData(); const lastKnownPrice = solanaData ? solanaData.price : null; const currentPrice = await fetchSolanaPrice(); - - if (currentPrice && lastKnownPrice !== null && (parseFloat(currentPrice) - lastKnownPrice >= 2.5)) { - const announcementsChannel = await client.channels.fetch(announcementsChannelId); - await announcementsChannel.send(`@everyone Significant Solana price increase detected! Previous recorded price: $${lastKnownPrice}. Current price: $${currentPrice}.`); - } - + checkPriceContinuously(); }