gitmyhub

Knightbot-MD

JavaScript ★ 7.7k updated 1mo ago

A simple WhatsApp bot to manage groups

A JavaScript WhatsApp bot that connects to your account and automates group admin tasks, tagging all members, detecting spam links, muting users, creating stickers, controlled entirely by chat commands.

JavaScriptNode.jsBaileyssetup: moderatecomplexity 2/5

Knight Bot is a WhatsApp bot built in JavaScript that helps group administrators manage large WhatsApp groups. Once connected to your WhatsApp account, it responds to text commands typed into the chat, carrying out admin tasks automatically so you do not have to do them by hand.

The bot runs using the Baileys library, which is an unofficial way to connect to WhatsApp Web. You link your WhatsApp account to the bot either by scanning a QR code that appears in your terminal when you start it, or through a pairing code generated by a web tool the README links to. After that, the bot stays connected and listens for commands.

The main features are aimed at group management. The ".tagall" command pings every member of a group in one message. Admin-only restrictions mean regular members cannot trigger sensitive commands. There is anti-link detection to automatically catch and act on messages that contain links, which is useful for keeping spam out of groups. Members can also be warned, muted, or removed using bot commands. Lighter features include sticker creation from images, text-to-speech conversion, and a Tic-Tac-Toe game for group entertainment.

Setting it up requires Node.js on your machine. You clone the repository, run npm install to get the dependencies, and then start the bot with node index.js. Alternatively, the README describes deploying it to a hosting panel or VPS service.

The project carries a clear warning: it is unofficial software, not endorsed by WhatsApp, and using it carries a risk that WhatsApp may ban the account running it. The README states it is intended for educational purposes and notes the developers are not responsible for any consequences of using it.

Where it fits