From d12719be225bd39b7dc0c91a4618a29b92bd766f Mon Sep 17 00:00:00 2001 From: Phil Skentelbery Date: Tue, 14 Nov 2017 20:20:03 -0600 Subject: [PATCH] Added starting message to verify pushover config --- index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.js b/index.js index 74dc61e..c4b888a 100644 --- a/index.js +++ b/index.js @@ -183,6 +183,11 @@ function displayStoresAvailable(storesAvailable) { console.log(storesAvailableStr); } +// Build start message +const kickoff = { + message: 'Starting iPhone X hunt', +} + // Build the message const msg = { message: 'iPhone X stock available nearby!', @@ -197,6 +202,12 @@ const msg = { * * Continuously check for the device availability until it is available somewhere. */ +p.send (kickoff, function (err, result){ + if (err) { + throw err; + } +}) + async function requestLoop() { // Fetch the storesAvailable array. const storesAvailable = await getStoresAvailable();