diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:01:20 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:01:20 +0000 |
| commit | 96ca4dc77f783c11b12111fbd0a54219f7448113 (patch) | |
| tree | 7c3fc94f0b0e3dad268d959a21ba02f59f52e112 /src | |
| parent | a3c751d3f1fe4030d514be4db90d577499d0bd85 (diff) | |
not subscribed path
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -53,6 +53,14 @@ app.post('/sms', (req, res) => { to and from the group. `; sendTextMessage([subscription], welcomeMessage); + } else { + const twiml = new MessagingResponse(); + twiml.message(` + You are not subscribed to this texting group. To subscribe, send a + text to this number with this syntax: my name is <your name> + `); + res.type('text/xml').send(twiml.toString()); + return; } } |
