UNPKG

@seaavey/bot

Version:

The Library for Seaavey Bot

67 lines (46 loc) โ€ข 1.69 kB
<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. ```