A bot might respond with a message confirming that it is working.
The available commands depend on the project.
9. Owner
The owner is the person who controls or manages the bot installation.
Many MD bots include an owner setting that identifies the administrator responsible for configuration and management.
Some commands are restricted to the owner.
10. Sudo
Sudo refers to users who receive additional administrative permissions in some bot projects.
For example, a developer may allow selected trusted users to access certain owner level commands.
The exact permissions depend on the bot's programming.
11. Mode: Public and Private
Mode controls who can interact with a bot.
Public mode: The bot may accept commands from other users, depending on its permissions.
Private mode: The bot generally restricts command access to the owner or authorized users.
Not every project implements these modes in the same way.
12. Baileys
Baileys is an open source JavaScript library used by developers to build WhatsApp automation applications.
It provides functionality for connecting to WhatsApp and handling messages and other events.
Many open source MD bot projects use Baileys, but not every project uses the same library.
13. Node.js
Node.js is a JavaScript runtime that allows developers to run JavaScript applications outside a web browser.
Many WhatsApp MD bots use Node.js to run their main application.
If a project requires Node.js, you normally need to install the version specified in its documentation.
14. Deploy
Deploy means making an application available to run in its intended environment.
For an MD bot, deployment usually means installing and starting the application on a computer, VPS, or supported cloud hosting platform.
A successful deployment allows the bot to operate without requiring you to keep your local terminal open.
15. Fork
A fork is a copy of another GitHub repository under your own GitHub account.
Developers often fork open source MD bot projects so they can modify the code or use their own copy for deployment.
Forking does not automatically install or start the bot.
16. Session Folder
A session folder is a directory where an application stores authentication information.
Some MD bots use a folder to save WhatsApp credentials and restore their connection after restarting.
For example, a project might use a folder named:
session/
Other projects may use different folder names or storage methods.
Never upload sensitive session files to a public repository.
17. Environment Variables
Environment variables are settings provided to an application when it runs.
They can store configuration information such as:
Session ID.
Owner number.
Command prefix.
Database connection.
Bot name.
Operating mode.
A project may store these settings in a .env file or a hosting dashboard.
Sensitive values should remain private.
Other Common Files in MD Bot Projects
index.js:Main application file
config.js:Contains configuration settings
package.json:Lists dependencies and scripts
.env:Stores environment variables
plugins/ / Contains additional command files