Remove duplicate message from showing

This commit is contained in:
Wizzard 2024-03-13 23:20:53 -04:00
parent 79f7d4763a
commit d1802a291d
1 changed files with 1 additions and 6 deletions

View File

@ -40,11 +40,6 @@ async function immediatePriceCheckAndAnnounce() {
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();
}