- JavaScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| commands | ||
| utils | ||
| app.json | ||
| config.js | ||
| database.js | ||
| handler.js | ||
| index.js | ||
| package.json | ||
| Procfile | ||
| Readme.md | ||
Knight Bot Mini is a WhatsApp MD bot built on top of the Baileys library.
It’s designed to be fast, lightweight, and easy to customize without touching the core code.
This project is fully open source — you can modify it, rebrand it, and make your own bot from this codebase free of cost, without needing any permission from our side.
All commands and the overall structure are written in a way that makes customization (bot image, prefix, name, features, etc.) as easy as possible.
✨ Features
- Fully Open Source – entire codebase is editable; host it anywhere (Heroku, panel, VPS, etc.).
- Easy Customization via Commands – change bot image, prefix, channel/newsletter, bot name, etc. with simple commands.
- Modular Command System – commands are organized in the
commandsfolder for easy editing. - Optimized for Stability – RAM‑optimized media handling (streaming, temp cleanup), better session handling via
sessionIDinconfig.js. - Owner Utilities – restart, update from ZIP, and more owner‑only tools.
1. Fork the Repository
This creates your own copy of
Knightbot-MDunder your GitHub account.
2. Get Pair Code
Deploy a small helper to generate a pair code and obtain your session string.
After scanning, you will receive a session string starting with:
KnightBot!H4....
Copy that full string and paste it into config.js:
sessionID: 'KnightBot!H4.....'
Or set it via the SESSION_ID environment variable when hosting.
3. Deploy on Panel (Katabump, etc.)
For a full step‑by‑step deployment tutorial (panels / VPS / Heroku), add or update your YouTube guide here:
- YouTube Tutorial: (coming soon)
🛠 Local Setup
1️⃣ Clone the repository
git clone https://github.com/mruniquehacker/Knightbot-MD.git
cd Knightbot-MD
2️⃣ Install dependencies
npm install
3️⃣ Configure session
Edit config.js:
-
Option A: Use session string
sessionID: 'KnightBot!H4.....' -
Option B: Scan QR
sessionID: ''Run the bot and scan the QR from the terminal.
4️⃣ Run the bot
node index.js
When the bot starts:
- If
sessionIDis empty, a QR code will appear in the terminal – scan it using Linked Devices in WhatsApp. - If
sessionIDis set, it will log in using that session string.
🌐 Community
🙏 Credits
- Mr Unique Hacker – Main developer & maintainer
- Baileys – WhatsApp Web API library (
@whiskeysockets/baileys) - Other open‑source libraries listed in
package.json
⚠️ Important Warning
- This bot is created for educational purposes only.
- This is NOT an official WhatsApp bot.
- Using third‑party bots may violate WhatsApp’s Terms of Service and can lead to your account being banned.
You use this bot at your own risk.
The developers are not responsible for any bans, issues, or damages resulting from its use.
📝 Legal
- This project is not affiliated with, authorized, maintained, sponsored, or endorsed by WhatsApp Inc. or any of its affiliates or subsidiaries.
- This is independent and unofficial software.
- Do not spam people using this bot.
- Do not use this bot for bulk messaging, harassment, or any illegal activities.
- The developers assume no liability and are not responsible for any misuse or damage caused by this program.
📄 License (MIT)
This project is licensed under the MIT License.
You must:
- Use this software in compliance with all applicable laws and regulations.
- Keep the original license and copyright notices.
- Credit the original authors.
- Not use this for spam, abuse, or malicious purposes.
📜 Copyright Notice
Copyright (c) 2026 Professor.
All rights reserved.
This project contains code from various open‑source projects and AI tools, including but not limited to:
- Baileys – MIT License
- Other libraries as listed in
package.json