Skip to content

An SMS bot that obtains information you want without the need for a strong network connection.

Notifications You must be signed in to change notification settings

matthpn2/SMS-Bot

Repository files navigation

SMS-Bot

An SMS bot that obtains information you want without the need for a strong network connection.

Program Overview

This program is an SMS bot built using Python and Twilio API [ https://www.twilio.com/ ], which allows you to send a Twilio phone number messages and get answers back. The Twilio library allows for you to send and receive messages, while Flask [ http://flask.pocoo.org/ ] allows your program to connect to a local server. Furthermore, Ngrok [ https://ngrok.com/ ] will connect your local host running program to the World Wide Web and will provide an http(s) address. Twilio will use this address to send you incoming messages with calls to the following APIs: Wikipedia [ https://pypi.org/project/wikipedia/ ], Open Weather Map [ https://openweathermap.org/api ], Wolfram Alpha [ https://products.wolframalpha.com/api/ ], and MapQuest [ https://developer.mapquest.com/ ].

Program Execution

source ENV/bin/activate
python3 run_applications.py
ngrok http ["insert port_number"]

Copy one of the http(s) forwarding addresses into your Twilio dashboard where it says "A MESSAGE COMES IN" and save the changes. Text your Twilio number with one of the following commands and you should get a response:

WIKI ["insert wikipedia request"]
WEATHER ["insert city name"] 
WOLFRAM ["insert wolframalpha request"]
MAPQUEST ["insert locations request separated by new line"]

About

An SMS bot that obtains information you want without the need for a strong network connection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages