I trying to create script whatsapp bot using open-wa library.
sudo apt-get install -y git
git clone https://github.com/Terror-Machine/fn-whatsapp-bot
cd fn-whatsapp-bot
bash fn.sh
pm2 startup
pm2 start main.js
pm2 save
pm2 logs
This script is made for public bots, so use a second account to scan the qr and main account to command.