summaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 23:13:59 +0000
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 23:13:59 +0000
commitbde28799c7b487377e3d6bb16c0041b1ed5347ac (patch)
treeb6235968512ba9426ba34d337b879d546a4aba11 /src/app.js
parent3faf1ec00ba8a96b257ed23586e5d048b037e7b6 (diff)
don't 'quit'
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index 1d07fbd..97fe6c5 100644
--- a/src/app.js
+++ b/src/app.js
@@ -39,7 +39,7 @@ app.post('/sms', (req, res) => {
return;
}
- if (['quit', 'exit', 'unsubscribe'].includes(bodyLowerCase)) {
+ if (['exit', 'unsubscribe'].includes(bodyLowerCase)) {
unsubscribe(senderPhoneNumber);
const twiml = new MessagingResponse();
twiml.message(`
@@ -76,7 +76,7 @@ app.post('/sms', (req, res) => {
const welcomeMessage = `
Well done, ${senderName}! You have successfully subscribed to the Glen
Coe meet texting group. You will now be able to send and receive messages
- to and from the group. Send 'list' to list participants, and send 'quit'
+ to and from the group. Send 'list' to list participants, and send 'exit'
to unsubscribe.
`.replace(/\s+/g, ' ');
sendTextMessage([subscription], welcomeMessage);