From bde28799c7b487377e3d6bb16c0041b1ed5347ac Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 7 Mar 2024 23:13:59 +0000 Subject: don't 'quit' --- src/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3