Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
3b4902b
Update settings.js
wijesuriya2017 Sep 12, 2025
92cc1cd
Update README.md
wijesuriya2017 Sep 12, 2025
06bba80
Update index.js
wijesuriya2017 Sep 12, 2025
9b900e6
Update main.js
wijesuriya2017 Sep 12, 2025
79ab5c2
Update index.js
wijesuriya2017 Sep 12, 2025
2b72b2e
Add files via upload
wijesuriya2017 Sep 12, 2025
6e741f5
Delete assets/bot_image.jpg
wijesuriya2017 Sep 12, 2025
2225b7d
Add files via upload
wijesuriya2017 Sep 12, 2025
8852a62
Add files via upload
wijesuriya2017 Sep 12, 2025
3b1d64b
Delete assets/bot_image.jpg
wijesuriya2017 Sep 12, 2025
743063e
Add files via upload
wijesuriya2017 Sep 12, 2025
df5ddff
Update alive.js
wijesuriya2017 Sep 12, 2025
04321d8
Update autoread.js
wijesuriya2017 Sep 12, 2025
743dbdc
Update autostatus.js
wijesuriya2017 Sep 12, 2025
3342bf6
Update autotyping.js
wijesuriya2017 Sep 12, 2025
ebeef87
Update clearsession.js
wijesuriya2017 Sep 12, 2025
0a909a4
Update github.js
wijesuriya2017 Sep 12, 2025
074a0a2
Update help.js
wijesuriya2017 Sep 12, 2025
7899c38
Update img-blur.js
wijesuriya2017 Sep 12, 2025
58bd834
Update pair.js
wijesuriya2017 Sep 12, 2025
4048cd4
Update simp.js
wijesuriya2017 Sep 12, 2025
2161188
Update sticker.js
wijesuriya2017 Sep 12, 2025
602ea48
Update stickercrop.js
wijesuriya2017 Sep 12, 2025
2447c5c
Update textmaker.js
wijesuriya2017 Sep 12, 2025
0bf5c01
Update autoStatus.json
wijesuriya2017 Sep 12, 2025
c29615d
Update autoread.json
wijesuriya2017 Sep 12, 2025
03a25bb
Update owner.json
wijesuriya2017 Sep 12, 2025
0dd6c5d
Update premium.json
wijesuriya2017 Sep 12, 2025
3ce4ced
Update userGroupData.json
wijesuriya2017 Sep 12, 2025
293154a
Add files via upload
wijesuriya2017 Sep 12, 2025
88f2048
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Sep 14, 2025
6423f0a
Delete session/upload creds file here
wijesuriya2017 Sep 14, 2025
fa4c513
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Sep 16, 2025
2a317d5
Update settings.js
wijesuriya2017 Sep 16, 2025
c094751
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Sep 18, 2025
51bd706
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Sep 19, 2025
4d9bb60
Update settings.js
wijesuriya2017 Sep 19, 2025
a4e6361
Update settings.js
wijesuriya2017 Sep 19, 2025
25abbad
Update settings.js
wijesuriya2017 Sep 19, 2025
fc51bd0
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Sep 19, 2025
0ca4ce2
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Sep 22, 2025
e96eec3
Merge branch 'main' into main
wijesuriya2017 Sep 24, 2025
72e15b0
Merge branch 'main' into main
wijesuriya2017 Sep 25, 2025
b9b065a
Update help.js
wijesuriya2017 Sep 25, 2025
24f5e93
Merge branch 'main' into main
wijesuriya2017 Oct 3, 2025
35a2c3a
Add files via upload
wijesuriya2017 Oct 3, 2025
45c9ea8
Add files via upload
wijesuriya2017 Oct 3, 2025
b719904
Update owner.json
wijesuriya2017 Oct 3, 2025
f662e8e
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Oct 5, 2025
5b5d9aa
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Oct 13, 2025
af1e090
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Oct 14, 2025
1cf32b9
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Oct 16, 2025
ea7e8f2
messageConfig.js
wijesuriya2017 Oct 16, 2025
ab96929
Change autoStatus default to enabled
wijesuriya2017 Oct 16, 2025
8c4d0e7
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Nov 1, 2025
0be9a9e
Merge branch 'main' into main
wijesuriya2017 Nov 4, 2025
1140c75
Merge branch 'mruniquehacker:main' into main
wijesuriya2017 Nov 7, 2025
9f3e12f
Remove incomplete support section from README
wijesuriya2017 Nov 12, 2025
c360d80
Merge branch 'main' into main
wijesuriya2017 Nov 15, 2025
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
98 changes: 32 additions & 66 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ This is a WhatsApp bot built using the Baileys library for group management, inc

<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/Knightbot-MD/blob/main/assets/bot_image.jpg" alt="Knight Bot" height="300">
</a>
</div>

Expand All @@ -23,7 +23,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 @@ -32,16 +32,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 @@ -58,21 +57,30 @@ For further customization and setup guidance, click the button below:
</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 Now 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">
Expand All @@ -88,13 +96,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 @@ -110,15 +118,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 @@ -140,56 +148,14 @@ It is lightweight and can be easily customized to add more commands as per your

---


## 📄 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).

---

## 🌟 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
Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/wijesuriya2017/Knightbot-MD/issues).

---

## ⚠️ 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 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