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
+9 -3
View File
@@ -9,9 +9,15 @@ const notifications = {
password: process.env.EMAIL_PASSWORD ?? ''
},
phone: {
availableCarriers: ['sprint', 'verizon', 'tmobile', 'att', 'google'],
carrier: process.env.PHONE_CARRIER,
number: process.env.PHONE_NUMBER
availableCarriers: new Map([
['sprint', 'messaging.sprintpcs.com'],
['verizon', 'vtext.com'],
['tmobile', 'tmomail.net'],
['att', 'txt.att.net'],
['google', 'msg.fi.google.com']
]),
carrier: process.env.PHONE_CARRIER ?? '',
number: process.env.PHONE_NUMBER ?? ''
},
slack: {
channel: process.env.SLACK_CHANNEL ?? '',