Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ Then you've come to the right place!
# What's in this repo 📝

+ Sample TwiML
+ The code needed to run and create your own fake bf/gf/cousin/friend/coworker [Azure Functions](https://azure.microsoft.com/en-us/services/functions/?WT.mc_id=sosplzsaveme-github-chcondon)
+ The code needed to run and create your own fake bf/gf/cousin/friend/coworker [Azure Functions](https://azure.microsoft.com/services/functions/?WT.mc_id=academic-0000-chcondon)
+ MP3s you may use for the audio of your fake call

# Tools Needed 🛠

+ A [Flic Button](https://amzn.to/2FzdJZo)
+ An Azure Account- you can get a [free account here](https://azure.microsoft.com/en-us/free/?wt.mc_id=sosplzsaveme-github-chcondon)
+ An Azure Account- you can get a [free account here](https://azure.microsoft.com/free/?WT.mc_id=academic-0000-chcondon)
+ A Twilio account & phone number

# How to Build Your Own Bae 👩🏼‍💻

1. Create a resource in [Azure](https://azure.microsoft.com/en-us/free/?wt.mc_id=sosplzsaveme-github-chcondon) & create a Webhook + API Trigger. For detailed instructions check out [this page](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function/?wt.mc_id=sosplzsaveme-github-chcondon). You can also use the local.settings.json file to run locally.
1. Create a resource in [Azure](https://azure.microsoft.com/free/?WT.mc_id=academic-0000-chcondon) & create a Webhook + API Trigger. For detailed instructions check out [this page](https://docs.microsoft.com/azure/azure-functions/functions-create-first-azure-function/?WT.mc_id=academic-0000-chcondon). You can also use the local.settings.json file to run locally.

2. Connect your GitHub account with Azure. You can do this by navigating to the **Platform Features** tab on your Azure Functions **Overview** page. Select **GitHub** under Source Control, and **App Service Kudu build server** as your Build Provider. Next, select the **Oragnization**, **Repository**, and **Brand** from the dropdown menus under Configure. Finally, click **Finish** to deploy! The Microsoft Docs have step by step instructions on this with visuals [here](https://docs.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment/?WT.mc_id=sosplzsaveme-github-chcondon)
2. Connect your GitHub account with Azure. You can do this by navigating to the **Platform Features** tab on your Azure Functions **Overview** page. Select **GitHub** under Source Control, and **App Service Kudu build server** as your Build Provider. Next, select the **Oragnization**, **Repository**, and **Brand** from the dropdown menus under Configure. Finally, click **Finish** to deploy! The Microsoft Docs have step by step instructions on this with visuals [here](https://docs.microsoft.com/azure/app-service/deploy-continuous-deployment/?WT.mc_id=academic-0000-chcondon)

3. Create a Twilio account & phone number (you can use a trial, but your meesages will have trial messaging in them)

4. Create your 2 [Azure Functions](https://azure.microsoft.com/en-us/services/functions/?WT.mc_id=sosplzsaveme-github-chcondon) for your call & messages. You can repurpose the code I have provided, using your Twilio credentials, Twilio phone number, your phone number, custom message, and/or MP3s. **You will need to update your Twilio Auth token, Twilio SID, as well as your phone numbers to run this locally**. I highly suggest using your **Applications settings* in Azure to set up encrypted environment variables (to ensure your SID, token, and phone numbers don't get accidentally shared and abused). You can learn more about [App Settings](https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure/?WT.mc_id=sosplzsaveme-github-chcondon) and [Deployment](https://docs.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment/?WT.mc_id=sosplzsaveme-github-chcondon) in the Microsoft Docs!
4. Create your 2 [Azure Functions](https://azure.microsoft.com/services/functions/?WT.mc_id=academic-0000-chcondon) for your call & messages. You can repurpose the code I have provided, using your Twilio credentials, Twilio phone number, your phone number, custom message, and/or MP3s. **You will need to update your Twilio Auth token, Twilio SID, as well as your phone numbers to run this locally**. I highly suggest using your **Applications settings* in Azure to set up encrypted environment variables (to ensure your SID, token, and phone numbers don't get accidentally shared and abused). You can learn more about [App Settings](https://docs.microsoft.com/azure/app-service/web-sites-configure/?WT.mc_id=academic-0000-chcondon) and [Deployment](https://docs.microsoft.com/azure/app-service/deploy-continuous-deployment/?WT.mc_id=academic-0000-chcondon) in the Microsoft Docs!

*Note*: The TwiML used for the message itself has been provided for the MP3 + custom robot message voice. TwiML and MP3s can be hosted through Twilio in the Assets and TwiML Bins section under Runtime.

Expand All @@ -52,7 +52,7 @@ If you'd like to have the recordings and texts play seamlessly, yes.
Otherwise, you'll get a message about your trail account before each message.

#### Do I need an Azure subscription?
Yes- you can get a [free account here](https://azure.microsoft.com/en-us/free/?wt.mc_id=sosplzsaveme-github-chcondon)
Yes- you can get a [free account here](https://azure.microsoft.com/free/?WT.mc_id=academic-0000-chcondon)

#### Did you build this because guys are creepy around you?
No, I built this because I'm an ambivert. You can read all about that [here](https://medium.com/microsoftazure/an-ambiverts-guide-to-azure-functions-95931976c565).