A simple script which automatically responds to new WhatsApp messages
- send a "I use Signal" message everytime a new message received
I dont use WhatsApp and don't like it so i wrote this simple script which is a copypasta from whatsapp-web.js docs to answer with a "I use Signal" message everytime a new message is received.
- clone project
- install dependencies using
npm i
- start script using
npm start
- authenticate using the qr code which is displayed in the shell
To run the script without interruption on a server or a Raspberry Pi, simply install pm2 and
- start script using
pm2 start npm --name "WhatsApp responder" -- start
- stop script using
pm2 stop "WhatsApp responder"
- remove script from pm2
pm2 remove "WhatsApp responder"