Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/FUNDING.yml

This file was deleted.

125 changes: 36 additions & 89 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# 🤖 Knight Bot
# 🤖 Knight-Bot-MD

This is a WhatsApp bot built using the Baileys library for group management, including features like tagging all members, muting/unmuting, and many more. It's designed to help admins efficiently manage WhatsApp groups.

<div align="center">
<a href="https://git.io/typing-svg">
<img src="https://readme-typing-svg.demolab.com?font=Ribeye&size=50&pause=1000&color=33ff00&center=true&width=910&height=100&lines=Knight-Bot;Multi+Device+Whatsapp+Bot;Coded+By+Professor" alt="Typing SVG" />
<img src="https://readme-typing-svg.demolab.com?font=Ribeye&size=50&pause=1000&color=33ff00&center=true&width=910&height=100&lines=Knight-Bot;Multi+Device+Whatsapp+Bot;Coded+By+Navida+Wijesuriya" alt="Typing SVG" />
</a>
</div>

<div align="center">
<a href="https://youtube.com/@mr_unique_hacker">
<img src="https://github.com/mruniquehacker/Knightbot-MD/blob/main/assets/bot_image.jpg" alt="Knight Bot" height="300">
<a href="https://www.youtube.com/@rc_jestor">
<img src="https://github.com/wijesuriya2017/Knight-Bot-MD/blob/main/assets/bot_image.jpg" alt="Knight Bot" height="300">
</a>
</div>

Expand Down Expand Up @@ -53,7 +53,7 @@ This is a WhatsApp bot built using the Baileys library for group management, inc
Click the button below to fork the Knight Bot repository to your GitHub account:

<div align="center">
<a href="https://github.com/mruniquehacker/Knightbot-MD/fork">
<a href="https://github.com/wijesuriya2017/Knightbot-MD/fork">
<img src="https://img.shields.io/badge/Fork-Repository-blue?style=for-the-badge" alt="Fork the repository"/>
</a>
</div>
Expand All @@ -62,16 +62,15 @@ Click the button below to fork the Knight Bot repository to your GitHub account:

### Step 2: Get Pair Code

Deploy the bot and easily connect it to your WhatsApp account by pair code. Click the button below to deploy the bot on Replit.
Deploy the bot and easily connect it to your WhatsApp account by pair code. Click the button below to generate a pair code.

<div align="center">
<a href="https://knight-bot-paircode.onrender.com" target="_blank">
<img src="https://img.shields.io/badge/GET%20PAIR%20CODE-Easy%20Method-ff4d4d?style=for-the-badge" alt="Generate Pair Code"/>
</a>
</div>


### After getting creds.json file, upload it to session folder
> After getting `creds.json` file, upload it to the `session` folder.

---

Expand All @@ -80,36 +79,45 @@ Deploy the bot and easily connect it to your WhatsApp account by pair code. Clic
For further customization and setup guidance, click the button below:

<div align="center">
<a href="https://youtu.be/-oz_u1iMgf8">
<a href="">
<img src="https://img.shields.io/badge/Deploy Tutorial-dc3545?style=for-the-badge&logo=youtube" alt="YouTube Link"/>
</a>
<a href="https://bot-hosting.net/?aff=1068419752923508776">
<img src="https://img.shields.io/badge/Deploy on Panel-28a745?style=for-the-badge" alt="Deploy on Panel"/>
</a>
</div>

---

### Deploy on VPS

If you prefer a VPS deployment, here are recommended providers and a quick link:

<div align="center">
<a href="https://client.petrosky.io/aff.php?aff=394" target="_blank">
<img src="https://img.shields.io/badge/petrosky vps-0078E7?style=for-the-badge" alt="petrosky vps"/>
<img src="https://img.shields.io/badge/petrosky%20VPS-0078E7?style=for-the-badge" alt="petrosky vps"/>
</a>
</div>

### Deploy on Below Panel
---

### Deploy Now on Panel (Katabump)

<div align="center">
<a href="https://dashboard.katabump.com/auth/login#d6b7d6" target="_blank">
<img src="https://img.shields.io/badge/Katabump-D6B7D6?style=for-the-badge&logo=server&logoColor=black" alt="Katabump"/>
</a>
<a href="https://dashboard.katabump.com/auth/login#d6b7d6" target="_blank">
<img src="https://img.shields.io/badge/Katabump-D6B7D6?style=for-the-badge&logo=server&logoColor=black" alt="Katabump"/>
</a>
</div>

---

### Join Us

<div align="center">
<a href="https://t.me/+3QhFUZHx-nhhZmY1">
<a href="https://t.me/rc_jestor">
<img src="https://img.shields.io/badge/Join%20Telegram-0078E7?style=for-the-badge&logo=telegram&logoColor=white" alt="Join Telegram"/>
</a>
<a href="https://whatsapp.com/channel/0029Va90zAnIHphOuO8Msp3A">
<a href="https://whatsapp.com/channel/0029Vb67r0SEquiMPLiAq51A">
<img src="https://img.shields.io/badge/Join%20WhatsApp-25D366?style=for-the-badge&logo=whatsapp&logoColor=white" alt="Join WhatsApp"/>
</a>
</div>
Expand All @@ -118,13 +126,13 @@ For further customization and setup guidance, click the button below:

## ⚙️ Features

- **Tag all group members** with the `.tagall` command
- **Admin restricted usage** (Only group admins can use certain commands)
- **Games** like Tic-Tac-Toe for interactive group engagement
- **Text-to-Speech** with `.tts`
- **Sticker creation** with `.sticker`
- **Anti-link detection** for group safety
- **Warn and manage group members** with admin control
- **Tag all group members** with the `.tagall` command
- **Admin restricted usage** (Only group admins can use certain commands)
- **Games** like Tic-Tac-Toe for interactive group engagement
- **Text-to-Speech** with `.tts`
- **Sticker creation** with `.sticker`
- **Anti-link detection** for group safety
- **Warn and manage group members** with admin control

---

Expand All @@ -140,15 +148,15 @@ It is lightweight and can be easily customized to add more commands as per your

### Prerequisites

- Node.js installed on your system
- Git installed (for cloning the repository)
- Node.js installed on your system
- Git installed (for cloning the repository)

### Step-by-Step Setup

1. **Clone the repository:**

```bash
git clone https://github.com/mruniquehacker/Knightbot-MD.git
git clone https://github.com/wijesuriya2017/Knightbot-MD.git
cd Knightbot-MD
```

Expand All @@ -170,75 +178,14 @@ It is lightweight and can be easily customized to add more commands as per your

---

## ☕ Support Me

<div align="center">

<a href="https://buymeacoffee.com/mruniquehacker" target="_blank">
<img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Support%20Developer-FF813F?style=for-the-badge&logo=buy-me-a-coffee&logoColor=white" alt="Buy Me a Coffee">
</a>

</div>

If you find this project helpful and want to support the developer, consider buying me a coffee! Your support helps maintain and improve this open-source project.

<div align="center">

<img src="assets/bmc_qr.png" alt="Buy Me a Coffee QR Code" width="200">

</div>

---

## 📄 License

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](https://github.com/mruniquehacker/Knightbot-MD/blob/main/LICENSE) file for details.
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](https://github.com/wijesuriya2017/Knightbot-MD/blob/main/LICENSE) file for details.

---

## 🙌 Contributions

Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/mruniquehacker/Knightbot-MD/issues).
Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/wijesuriya2017/Knightbot-MD/issues).

---

## 🌟 Show your support

If you like this project, please give it a [⭐️ star on GitHub](https://github.com/mruniquehacker/Knightbot)!


## Credits

- [Professor](https://github.com/mruniquehacker)
- [Baileys](https://github.com/adiwajshing/Baileys)
- [TechGod143](https://github.com/TechGod143) for pair code
- [Dgxeon](https://github.com/Dgxeon) for pair code

---

## ⚠️ Important Warning

**Note:** This bot is created for educational purposes only. This is NOT an official WhatsApp bot. Using this bot may lead to your WhatsApp account being banned. Use it at your own risk. The developers will not be responsible for any consequences or account bans that may occur while using this bot.

## 📝 Legal

- This project is not affiliated with, authorized, maintained, sponsored or endorsed by WhatsApp or any of its affiliates or subsidiaries.
- This is an independent and unofficial software. Use at your own risk.
- Do not spam people with this bot.
- Do not use this bot to send bulk messages or for illegal purposes.
- The developers assume no liability and are not responsible for any misuse or damage caused by this program.

### License
This project is licensed under the MIT License. However, you must:
- Use this software in compliance with all applicable laws and regulations
- Include original license and copyright notices
- Credit original authors
- Not use for spam or malicious purposes

## 📜 Copyright Notice

Copyright (c) 2024 Professor. All rights reserved.

This project contains code from various open source projects:
- Baileys (MIT License)
- Other libraries as listed in package.json
Binary file removed assets/bmc_qr.png
Binary file not shown.
Binary file modified assets/bot_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions commands/alive.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function aliveCommand(sock, chatId, message) {
forwardingScore: 999,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand All @@ -30,4 +30,4 @@ async function aliveCommand(sock, chatId, message) {
}
}

module.exports = aliveCommand;
module.exports = aliveCommand;
10 changes: 5 additions & 5 deletions commands/autoread.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function autoreadCommand(sock, chatId, message) {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand Down Expand Up @@ -62,7 +62,7 @@ async function autoreadCommand(sock, chatId, message) {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand All @@ -85,7 +85,7 @@ async function autoreadCommand(sock, chatId, message) {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand All @@ -100,7 +100,7 @@ async function autoreadCommand(sock, chatId, message) {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand Down Expand Up @@ -195,4 +195,4 @@ module.exports = {
isAutoreadEnabled,
isBotMentionedInMessage,
handleAutoread
};
};
4 changes: 2 additions & 2 deletions commands/autostatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const channelInfo = {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand Down Expand Up @@ -258,4 +258,4 @@ async function handleStatusUpdate(sock, status) {
module.exports = {
autoStatusCommand,
handleStatusUpdate
};
};
10 changes: 5 additions & 5 deletions commands/autotyping.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function autotypingCommand(sock, chatId, message) {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand Down Expand Up @@ -62,7 +62,7 @@ async function autotypingCommand(sock, chatId, message) {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand All @@ -85,7 +85,7 @@ async function autotypingCommand(sock, chatId, message) {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand All @@ -100,7 +100,7 @@ async function autotypingCommand(sock, chatId, message) {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand Down Expand Up @@ -222,4 +222,4 @@ module.exports = {
handleAutotypingForMessage,
handleAutotypingForCommand,
showTypingAfterCommand
};
};
4 changes: 2 additions & 2 deletions commands/clearsession.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const channelInfo = {
forwardingScore: 999,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterJid: '120363421047540687@newsletter',
newsletterName: 'KnightBot MD',
serverMessageId: -1
}
Expand Down Expand Up @@ -98,4 +98,4 @@ async function clearSessionCommand(sock, chatId, msg) {
}
}

module.exports = clearSessionCommand;
module.exports = clearSessionCommand;
Loading