LNMHacks / mercurysms

Mass SMS messenger with Twilio and Google Sheets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


HackCU


Dynamically extract phone numbers from a defined Google Sheets to send bulk messages with Twilio.

Setup

Needs: Python 3.X

  • pip install -r requirements.txt
  • python manage.py migrate
  • python manage.py createsuperuser

Run server

Local environment

Add 4 (2 optional) environment variables:

Run server to 0.0.0.0 python manage.py runserver 0.0.0.0:8000

Docker

In order to make deployment easier, there's an available built image.

Needs: docker

  • Create a directory
  • Copy docker_run.sh into the directory
  • Create env.list file (you can use env.list.template as a guide)
  • (Optional) Modify docker_run.sh to change the deployment port (default: 8000)
  • Run docker_run.sh
  • Login in the app as admin (password admin) and change the password for admin (and username too) from the admin console.
  • Enjoy!

Usage

Create Google Sheets

Create a Google Sheets. Open to public for viewing.

Add lists to Google Sheets

A list is a column in the mentioned Google Sheets. It is identified by each first row of a column. The rest of the rows must be the phone numbers.

Send SMS to list

  • Open root route. Ex: http://localhost:8000
  • Login with user (you can login with the super user you created in your first steps)
  • Send messages right away. Let's SPAM those users :D

Add new users

Future

  • Add hability to receive SMS
  • Answer SMS received individually
  • Keep a log of all messages sent and to what numbers

Made with ❤️ at HackCU

About

Mass SMS messenger with Twilio and Google Sheets


Languages

Language:Python 59.9%Language:HTML 32.7%Language:CSS 5.3%Language:Shell 2.1%