This app's goal is to get personal accounts balance in a legal way by using CIH bank's WhatsApp service, hint, in order to use this app you will need to enable this feature from your CIH application.
- Venom as a WhatsApp client
- Puppeteer as a headless browser
- Tesseract.js as an OCR
- Node Schedule as a scheduler
- Axios as an HTTP client
- Dotenv used to load env. variables
- Create a
.env
file based on the.env.template
file and adapt as needed. - Install a browser if its not installed (needed even in a server deployment)
- Run
npm run start
- Scan the QR code
Deploy (using PM2)
- Do step
1
and2
from theRun
section - Install PM2 (check the official docs for it)
- Run
pm2 start /home/razinj/pm2-apps/whatsapp-cih-bot/app.js --name whatsapp-cih-bot
- Run
pm2 logs <APP_ID>
(runpm2 list
to check the app ID) or just cat itcat /home/razinj/.pm2/logs/whatsapp-cih-bot-*.log
- Scan the QR code
COMPTE SUR CARNET
Numéro de compte: ################
Solde actuel: #### MAD
COMPTE CHEQUE
Numéro de compte: ################
Solde actuel: #### MAD
If you like the app, give it a star ⭐ and share it with your friends.
Your imagination is the limit, clone/fork the repo, adapt and/or add as much needed modifications or functionalities.
Wondering how to install Gotify? I will link my post on how to install Gotify server in case needed.