Remove duplicate message from showing
This commit is contained in:
parent
79f7d4763a
commit
d1802a291d
5
main.js
5
main.js
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue