refactor: map sms, fix amazon text

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-09-19 10:28:31 -04:00
parent ef319d4b20
commit 25643c4870
6 changed files with 37 additions and 38 deletions
+7 -7
View File
@@ -5,13 +5,6 @@ import open from 'open';
import sendNotification from './notification';
import {Logger} from './logger';
/**
* Send test email.
*/
if (Config.notifications.test === 'true') {
sendNotification('test');
}
/**
* Starts the bot.
*/
@@ -94,6 +87,13 @@ function isOutOfStock(domText: string, oosLabels: string[]) {
return oosLabels.some(label => domTextLowerCase.includes(label));
}
/**
* Send test email.
*/
if (Config.notifications.test === 'true') {
sendNotification('test');
}
/**
* Will continually run until user interferes.
*/