@seaavey/bot
Version:
The Library for Seaavey Bot
67 lines (46 loc) โข 1.69 kB
Markdown
<h1 align="center">๐ฆ Seaavey WhatsApp Bot Library</h1>
<p align="center">
A lightweight and extensible WhatsApp bot library built on top of <a href="https://github.com/WhiskeySockets/Baileys">@WhiskeySockets/Baileys</a>.<br/>
Designed to help you build scalable WhatsApp bots with ease.
</p>
<p align="center">
<img src="https://img.shields.io/badge/TypeScript-Ready-blue?style=for-the-badge" />
<img src="https://img.shields.io/badge/Baileys-Based-green?style=for-the-badge" />
<img src="https://img.shields.io/badge/Made%20by-Seaavey-informational?style=for-the-badge" />
</p>
## โจ About
This is not a feature-rich bot out of the box โ it's a **library layer** for building your own bot. It wraps around `Baileys` and adds:
- ๐ Custom event system (`on("message")`, `on("group:action")`, etc.)
- ๐ Auto reconnection
- ๐พ Session storage via multi-file auth
- ๐งฑ Clean code structure (modular, scalable)
- ๐ Basic access protection & author verification
## ๐งช Example Usage
```ts
import { Bot } from "./lib/Bot";
const bot = new Bot({
AuthDir: "./session",
online: true,
pairing: true,
});
bot.on("Authenticated", () => {
console.log("โ
Bot authenticated and connected");
});
bot.on("message", async (m) => {
console.log("๐จ New message:", m.text);
});
bot.init();
```
## ๐ Author
- ๐ง Developed by Muhammad Adriansyah
- ๐ง seaavey@gmail.com
## โ๏ธ License
This project is closed-source with author protection.
Respect the creator. No unauthorized redistribution allowed.
```bash
๐ Don't steal. Build your own. Respect others.
```