...
Open the chatbot source code using your favorite IDE. We recommend Visual Studio as this was the IDE used during development and the code comes with a .sln file that you can easily open as a VS Solution.
Make sure you have .Net installed on your machine (min version .Net Core 3.1). If you are using Visual Studio, you can get all the required tools for .Net development from the IDE installer.
In order for Twilio to be able to communicate with the chatbot on a local machine, it is necessary to use a tool that exposes your localhost to the internet. For this tutorial, we are going to use Ngrok.
Download Ngrok and create a file named ‘ngrok_composer.yml’ in the same directory where ngrok.exe is located.
Copy the following text into ngrok_composer.yml
Code Block version: 2 authtoken: <REPLACE WITH YOUR NGROK TOKEN> tunnels: first: proto: http addr: https://localhost:3979/ second: proto: http addr: 80
It is assumed you also have that a local Moodle instance is running on port 80, if this is not true, there is no need to add a tunnel for this port.
...