diff --git a/src/index.js b/src/index.js index da55edb..c2fc8ac 100644 --- a/src/index.js +++ b/src/index.js @@ -226,7 +226,7 @@ async function checkAndNotify(keyword, marketplace = "EBAY_US") { if (cheapItems.length > 0) { console.log(`Found ${cheapItems.length} item(s) below $${PRICE_THRESHOLD}`); - const message = `========= ${keyword.toUpperCase()} (${marketplace}) ==========\n` + + const message = `========= MACBOOK PRO M1 32GB (${marketplace}) ==========\n` + cheapItems.slice(0, 10).map(item => `${item.title}\n$${item.price} ${item.currency || 'USD'}\nhttps://${item.currency === 'USD' ? 'www.ebay.com' : 'www.ebay.com.au'}/itm/${item.legacyItemId}` ).join('\n==================================\n') + @@ -271,11 +271,11 @@ app.post('/check', express.json(), async (req, res) => { const EBAY_SEARCH_CONFIGS = [ { marketplace: "EBAY_US", - q: `macbook "pro" "m1" "32gb"`, + q: `macbook "pro" "m1" "32gb" -"logic board"`, }, { marketplace: "EBAY_AU", - q: `macbook "pro" "m1" "32gb"`, + q: `macbook "pro" "m1" "32gb" -"logic board"`, }, ];