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;