index.js:Main application file
package.json:Dependencies and scripts
config.js:Application settings
plugins:Additional commands
lib:Helper functions
README.md:Installation instructions
Session folder:Authentication information
This is an example structure. Your selected project may be different.
Always read the README before continuing.
Step 3: Install the Required Software
Install Node.js from https://nodejs.org/ and choose a version supported by your selected project.
Install Git: https://git-scm.com/
Install a Code Editor: Visual Studio Code, https://code.visualstudio.com/
You do not need to be an expert programmer to start using a basic mini bot, but understanding the files will help you troubleshoot problems.
Step 4: Install the Bot Dependencies
Open the mini bot project folder in your terminal.
For many Node.js projects, the general dependency installation command is:
npm install
If you encounter an error, check: Your Node.js version. The project's installation instructions. Whether the dependencies are available. Whether the correct project folder is open.
Do not assume every project uses exactly the same installation process.
Step 5: Connect Your MD Mini Bot to WhatsApp
Depending on the project, it may support: Session ID authentication. Pairing code authentication. QR code authentication.
Option A: Using a Pair Code
Open the pairing page linked by the developer.
Enter your WhatsApp number with its country code.
Request a pairing code.
Open WhatsApp on your phone.
Navigate to Linked Devices.
Select Link With Phone Number if available.
Enter the temporary code.
Complete the linking process.
The pairing code may expire quickly, so enter it promptly.
Option B: Using a QR Code
Start the authentication process.
Wait for the QR code.
Open WhatsApp on your phone.
Open Linked Devices.
Select Link a Device.
Scan the displayed QR code.
Wait for authentication to complete.