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 install
heroku login
- Create a new Heroku app
heroku create your-app-name
heroku buildpacks:set heroku/nodejs
heroku 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 logs
until 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
WhatsApp
in your phone. -
It should be working!