-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #33 Update Opt-In Verbiage to Include Help and Opt-Out Directions
- Loading branch information
1 parent
f79b5fc
commit a382336
Showing
1 changed file
with
57 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
"use strict"; | ||
|
||
const Config = { | ||
GenericErrorMessage: "There was a problem with your request. Please try again later.", | ||
InvalidRequest: "Thank you for messaging Literal Life Church. This phone number is unmonitored and does not accept generic messages or replies. If you have a question about this messaging service text the word HELP or send a message to one of our deacons or trustees.", | ||
WebhookUrl: process.env.WEBHOOK_URL, | ||
|
||
// region AuthN and Twilio Services | ||
|
||
AccountSid: process.env.ACCOUNT_SID, | ||
AuthToken: process.env.AUTH_TOKEN, | ||
NotifyServiceSid: process.env.NOTIFY_SERVICE_SID, | ||
|
||
// endregion | ||
|
||
// region Regulatory Messages | ||
|
||
Help: { | ||
IsNotRegistered: "You are not set up to receive any messages from Literal Life Church.", | ||
IsRegistered: "You are currently set up to receive messages from Literal Life Church on the following channels: {tags}." | ||
}, | ||
|
||
Resubscribe: { | ||
Message: "You are currently set up to receive messages from Literal Life Church on the following channels: {tags}." | ||
}, | ||
|
||
Status: { | ||
IsNotRegistered: "You are not set up to receive any messages from Literal Life Church. Reply with HELP for more info.", | ||
IsRegistered: "You are currently set up to receive messages from Literal Life Church on the following channels: {tags}. Reply with HELP for more info." | ||
}, | ||
|
||
// endregion | ||
|
||
// region Custom Actions | ||
|
||
AnnouncementCalendar: { | ||
BindingType: "sms", | ||
Tags: ["announcement", "calendar"], | ||
|
||
Broadcast: { | ||
AuthorizedPhoneNumbers: process.env.AUTHORIZED_BROADCAST_PHONE_NUMBERS, | ||
EmptyMessage: "Please specify a message as part of your broadcast command. Note that MMS messages are not supported. Here is an example of a valid command: broadcast There is no meetup tonight.", | ||
Success: "Your message will be delivered to all subscribed recipients within a few minutes.", | ||
Unauthorized: "You are not authorized to broadcast a message." | ||
}, | ||
|
||
Subscribe: { | ||
ExistingUser: "You are already set to receive announcements and calendar events from Literal Life Church. If you need assistance, please respond with the word HELP for more information.", | ||
NewUser: "You are now subscribed to receive future announcements and calendar events from Literal Life Church. Unsubscribe anytime by replying STOP to no longer receive messages." | ||
} | ||
} | ||
|
||
// endregion | ||
}; | ||
|
||
Object.freeze(Config); | ||
module.exports = Config; | ||
"use strict"; | ||
|
||
const Config = { | ||
GenericErrorMessage: "There was a problem with your request. Please try again later.", | ||
InvalidRequest: "Thank you for messaging Literal Life Church. This phone number is unmonitored and does not accept generic messages or replies. If you have a question about this messaging service text the word HELP or send a message to one of our deacons or trustees.", | ||
WebhookUrl: process.env.WEBHOOK_URL, | ||
|
||
// region AuthN and Twilio Services | ||
|
||
AccountSid: process.env.ACCOUNT_SID, | ||
AuthToken: process.env.AUTH_TOKEN, | ||
NotifyServiceSid: process.env.NOTIFY_SERVICE_SID, | ||
|
||
// endregion | ||
|
||
// region Regulatory Messages | ||
|
||
Help: { | ||
IsNotRegistered: "You are not set up to receive any messages from Literal Life Church.", | ||
IsRegistered: "You are currently set up to receive messages from Literal Life Church on the following channels: {tags}." | ||
}, | ||
|
||
Resubscribe: { | ||
Message: "You are currently set up to receive messages from Literal Life Church on the following channels: {tags}. Unsubscribe anytime by replying STOP to opt-out. Reply HELP for assistance." | ||
}, | ||
|
||
Status: { | ||
IsNotRegistered: "You are not set up to receive any messages from Literal Life Church. Reply with HELP for more info.", | ||
IsRegistered: "You are currently set up to receive messages from Literal Life Church on the following channels: {tags}. Reply with HELP for more info." | ||
}, | ||
|
||
// endregion | ||
|
||
// region Custom Actions | ||
|
||
AnnouncementCalendar: { | ||
BindingType: "sms", | ||
Tags: ["announcement", "calendar"], | ||
|
||
Broadcast: { | ||
AuthorizedPhoneNumbers: process.env.AUTHORIZED_BROADCAST_PHONE_NUMBERS, | ||
EmptyMessage: "Please specify a message as part of your broadcast command. Note that MMS messages are not supported. Here is an example of a valid command: broadcast There is no meetup tonight.", | ||
Success: "Your message will be delivered to all subscribed recipients within a few minutes.", | ||
Unauthorized: "You are not authorized to broadcast a message." | ||
}, | ||
|
||
Subscribe: { | ||
ExistingUser: "You are already set to receive announcements and calendar events from Literal Life Church. Unsubscribe anytime by replying STOP to opt-out. Reply HELP for assistance.", | ||
NewUser: "You are now subscribed to receive future announcements and calendar events from Literal Life Church. Unsubscribe anytime by replying STOP to opt-out. Reply HELP for assistance." | ||
} | ||
} | ||
|
||
// endregion | ||
}; | ||
|
||
Object.freeze(Config); | ||
module.exports = Config; |