A small python seed to create a Whatsapp Bot, with regex-callback routes (just like a web framework).
(practical extension of the examples on https://github.com/tgalal/yowsup)
- Install the image handling system dependencies on
bash opt/system-requirements.sh
- Create a virtualenv and install the requirements
pip install -r opt/requirements.pip
- Follow the instructions on
src/config.py
to get the whatsapp credentials. - Then just run the server with
python src/server.py
$ git clone https://github.com/joaoricardo000/whatsapp-bot-seed/
$ cd whatsapp-bot-seed
(Edit Dockerfile to include your credentials)
$ docker build -t whatsapp-bot .
$ docker run -p 0.0.0.0:9005:9005 whatsapp-bot
The server will be running. Access http://localhost:9005 (default: admin:password) for process controll and logs.