Uses Venom Bot library.
-
Fork this repo
-
Clone it locally
git clone https://github.com/YOUR_GITHUB_USER_NAME/whatsapp-heroku-bot- Enter the folder
cd whatsapp-heroku-bot- (Optional) Install npm dependencies. Recommended if you're going to use
venom-bot's features.
npm installheroku login- Create a new Heroku app
heroku create your-app-nameheroku buildpacks:set heroku/nodejsheroku buildpacks:add jontewks/puppeteer- Add a remote to your repo.
heroku git:remote -a your-app-name- Deploy your app to Heroku. This might take a while.
git push heroku main- Do
heroku logsuntil you see the QR code. Scan it from WhatsApp in your phone.
- It should be working!
-
Fork this repo
-
Clone it locally
git clone https://github.com/YOUR_GITHUB_USER_NAME/whatsapp-heroku-bot- Enter the folder
cd whatsapp-heroku-bot- Install npm dependencies
npm install- Run index.js
node index.js
or
npm start-
Wait until you see the QR code. Scan it from
WhatsAppin your phone. -
It should be working!