No more ERRORS when using whiskeySockets/Baileys anymore... Use Baileys Easily to make up your bot!
- Error handling correctly.
- No unnecessary stops when running.
- Connection is provided.
- Easy to debug errors.
- Live time activity monitoring
First clone the respirotary by downloading directly it from github or
using the git
git clone github.com/ARAbdulla-Dev/ZeroError-Easy-BaileysBase
Then install the required dependencies using npm.
npm i @whiskeysockets/baileys@6.7.4 chalk@2.4.2 node-fetch@2.7.0 path@0.12.7 pino@9.1.0 puppeteer@22.10.0 qrcode-terminal@0.12.0
Then edit the main.js file as needed and run the main file.
node main.js
Use it as the official whiskeySockets/Baileys.
const connectToWhatsApp = require('./base');
async function startWhatsApp() {
const { sock } = await connectToWhatsApp();
// Sock is the main object contaning all the functions including connection...
// I would provide you the connection...
// You can do anything here...
/*
Ex:-
sock.sendMessage(remoteJid, {text: "Hi"});
*/
}
startWhatsApp();
- For any help contact me on WhatsApp.
- Also don't forget to star ✨ this Repo if it is helpful.