A simple WhatsApp bot written in JavaScript using Venom-bot to send you the current stats of your sheepit-renderfarm account (Note, if you want to use it yourself 2 phone numbers are required, one for the bot and one for you to chat with it.) To connect the bot without having to "switch accounts" in the WhatsApp app you can use "WhatsApp Business" or a app like "Paralell Space" to create a copy of your normal WhatsApp.
- Download the main.js file and create an empty file called cookie.txt in the same directory.
- Change directory to where main.js and cookie.txt are located.
- Install https://github.com/orkestral/venom using
npm i --save venom-bot
. - Run main.js using
node main.js
. - Scan the QR-code that appers in the terminal using WhatsApp.
To register your account:
- Download the cookiehelper.py file
- Change the username and password variables accordingly
- Run it with python3
- Send
/cookie username Cookie: REMEMBERME=<your value from coockiehelper>; PHPSESSID=<your value from coockiehelper>
to your bot
Command | Syntax | Usage |
---|---|---|
/stats | "/stats" | Get your stats |
/cookie | "/cookie username Cookie: ..." | "Register" your account on your bot |
/delcookie | "/delcookie" | "Unregister" your acoount on your bot |
- The Solution with the cookies isn't perfect and I will be working on implementing cookiehelper in the main.js file
- Feel free to share any bugs you may encounter
- At the moment you can only use one account per phone number