A WhatsApp Bot Built on Top of Baileys
Work in progress. More features and commands will be added soon
- ๐ Object Oriented
- ๐ Written in TypeScript
- ๐ Event-Based
- ๐ Express Contorl Panel
- ๐ Self-Resoting Auth
- ๐ Built with Baileys (The Best WhatsApp Library Out There)
Make sure you have the following softwares installed
- Git
- Node.JS
- WebP
- FFMpeg
- ImageMagick (Make sure to enable the
legacy functions
while installing)
Clone the repo and install the npm packages after installing these
> git clone https://github.com/SomnathDas/Whatsapp-Botto-Xre
> cd Whatsapp-Botto-Xre
> npm i && npm i -D
Edit the
config.json
according to your needs
{
"name": "Xre",
"prefix": "!",
"admins": []
}
name
The name of the Bot
prefix
The Prefix of the Bot
admins
The JIDs of the users who you want to the Admins/Mods for the bot
Now, follow the instructions here to install MongoDB and run a Local DB in your system or Create a Cloud Database using Mongo Atlas
Create a file named
.env
In the created .env
and make sure to add every fields wrriten below
MONGO_URI=YOUR_MONGODB_CONNECTION_URI
MONGO_URI
is the connection URI for the Database (If you're using Mongo Atlas, Use the Connection URI got from there. Else use the URL in .env.example
)
Run npm run build
and the Compiled JS files, Decleration Files, Maps and Declaration Maps with their folder will appear in the dist
folder
npm start
Running the above command will start the bot. To authenticate scan the QR which shows up in the terminal or the link which is logged when the QR event fires using the WA-Web Scanner on your WhatsApp. Now you're on your own. Good Luck!
- Feel free to open issues regarding any problems or if you have any feature requests
- Make sure to follow the ESLint Rules while editing the code and run
npm run prettier-format
before opening PRs