From 97527e461cf3ed9b4639943d792df7fb7c2cb6de Mon Sep 17 00:00:00 2001 From: Wizzard Date: Fri, 15 Nov 2024 13:14:15 -0500 Subject: [PATCH] Update main.js --- main.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.js b/main.js index e5e46fa..98ab62c 100644 --- a/main.js +++ b/main.js @@ -33,6 +33,14 @@ function initializeDatabase() { }); } +db.run('INSERT OR REPLACE INTO bot_state (key, value) VALUES (?, ?)', + ['lastAnnouncedPrice', '195'], + (err) => { + if (err) console.error('Error setting initial price:', err); + else console.log('Initial price set successfully'); + } +); + async function fetchSolanaPrice() { try { const fetch = (await import('node-fetch')).default;