Skip to content

Conversation

@omardeleo
Copy link
Contributor

This PR adds a flag hasTwilioCredentials that checks for the presence of the necessary Twilio credentials (TWILIO_ACCOUNT_SID,
TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER) in order to send a followup text to volunteers upon task completion.

If the credentials are present, hasTwilioCredentials is set to true, and the bot attempts to send a followup text to the volunteer.
If any credentials are missing, hasTwilioCredentials is set to false, and the bot logs the following error: Twilio credentials missing -- Followup text not sent.

⚠️ In order to test this update, the Airtable schema changes in #67 will need to be implemented. ⚠️

@omardeleo omardeleo requested a review from azlyth September 18, 2020 14:31
@omardeleo omardeleo changed the title Check for Twilio credentials before attempting to send to a followup text Check for Twilio credentials before attempting to send a followup text Sep 18, 2020
@azlyth azlyth merged commit 7419c1b into followup-text Jan 3, 2021
@azlyth azlyth deleted the twilio-credentials-flag branch January 3, 2021 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants