For those times when manually sending Hangouts chats, emails and texts simply gets too tedious...
Chris Contacter will attempt to send a message via email, then will send a text. It will wait an hour between each service, and stop when it receives a response.
This is meant to be run locally, and is not production-ready; hence unforgivable things like running Postgres in Docker, and Celery with DEBUG = True
.
If you ask nicely, Alex will let you use his very special 707-CHRIS-GO Twilio SMS number :)
- Python 3.6 (Celery 4.2 isn't compatible with Python 3.7 due to use of
async
keyword) - Docker
- Redis
- Postgres
- Django
- Bootstrap 4
(Ubuntu 18.10)
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt install docker-ce docker-compose
sudo usermod -a -G docker $USER
sudo systemctl restart docker
sudo chmod 666 /var/run/docker.sock
- Copy
chris_contacter/secrets.py.template
tochris_contacter/secrets.py
and fill in credentials- Requires Gmail and Twilio accounts
docker-compose build
docker-compose run web python manage.py migrate --rm
docker-compose run web python manage.py createsuperuser --rm
docker-compose up
docker-compose run web python manage.py shell
- Write tests (lol)