Added starting message to verify pushover config

This commit is contained in:
Phil Skentelbery
2017-11-14 20:20:03 -06:00
parent 382e3dce31
commit d12719be22

View File

@ -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();