GTBitsOfGood / hdg-chatbot

An Azure Functions (FaaS) Serverless WhatsApp/SMS chatbot that leverages the Twilio API and a MongoDB backend to guide users through educational modules created by Health and Development in Guatemala, an Emory-based organization.
GNU General Public License v3.0
4 stars 1 forks source link

Deleted HTTP stuffs, refactored folder structure, changed .js to .ts for sendMessage, and cleaned up code #18

Closed alexb8z closed 3 years ago

alexb8z commented 3 years ago

The chatbot works as expected for the user even after our changes.

image image

We do get a warning about dataConsent not existing for IUserState, and we are pretty sure this occurs here:

const manageKeywordSent = async function ( sentMessage: qs.ParsedQs, curUserState: IUserState, req: HttpRequest, ): Promise {

When the userState is null/ we have a new user image

doesn't affect functionality, just leaving here as reference!!

:-D