Skip to content

anbuinfosec/Goat-WhatsApp-Bot

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Goat WhatsApp Bot Banner

🐐 Goat WhatsApp Bot

A clean, modular, and production-ready WhatsApp chatbot using personal accounts via Baileys.

Node.js >= 20 Repo Size GitHub Stars MIT License


🧠 About

Goat WhatsApp Bot was built with a single goal: to offer a lightweight, stable, and developer-friendly chatbot platform for WhatsApp. It’s crafted from the ground up with clarity, modularity, and maintainability in mind β€” making it easier for developers to understand, extend, and collaborate on.

With clean, fully readable code (no obfuscation or encryption), this project is designed to help developers of all levels learn, modify, and extend it with confidence.

🎯 Built for Developers. Shared with the Community.


πŸ“‹ Features

  • πŸ”Œ Modular Plugin System – Drop-in commands & event files.
  • βš™οΈ Hot Reload – Update without restarting the bot.
  • πŸ” Pairing/QR Login – Choose your auth flow.
  • πŸ’» Dashboard UI – Real-time stats, settings & more.
  • 🧠 Smart Commands – Prebuilt utilities, media, tools.
  • 🌍 Multilingual Support – Easily extend to other languages.
  • πŸ“ JSON DB (Pluggable) – Add MongoDB, SQLite, etc.
  • πŸ“œ Built-in Logger – Simple and effective console outputs.

πŸ› οΈ Installation Guide

Follow these steps to get the bot running on your machine.

πŸ“¦ Requirements

  • Node.js >= 20.x β€” Download here
  • Git (optional but recommended)
  • WhatsApp account (use a secondary or throwaway account)

πŸš€ Quick Start

1. Clone the Repository

git clone https://github.com/tas33n/Goat-WhatsApp-Bot.git
cd Goat-WhatsApp-Bot

2. Install Dependencies

npm install

3. Start the Bot

npm start

The bot will prompt you to scan a QR code (for the first time login).

🐳 Optional: Run with Docker

A ready-to-use Dockerfile is included with Node.js 20 and FFmpeg preinstalled.

# Build the Docker image
docker build -t goat-whatsapp-bot .

# Run the bot container interactively
docker run -it goat-whatsapp-bot

# Run the bot with persistent session
docker run -it -p 3000:3000 -v $(pwd)/session:/app/session goat-whatsapp-bot

βœ… Authentication Note

If you want to reuse the session, your credentials are stored locally in session/ folder. Do not share it.


🧩 Plugin System

✏️ Creating a Command

// plugins/commands/ping.js
module.exports = {
  config: {
    name: "ping",
    aliases: ["p"],
    description: "Check bot responsiveness.",
    author: "Tas33n",
    cooldown: 5,
    role: 0,
    category: "utility"
  },
  onCmd: async ({ reply }) => {
    reply("Pong!");
  }
};

🧠 Event Listener Example

// plugins/events/welcome.js
module.exports = {
  config: {
    name: "welcome",
    author: "Anbuinfosec",
    category: "events"
  },
  onEvent: async ({ api, event }) => {
    if (event.action !== "add") return;
    for (const user of event.participants) {
      api.sendMessage(event.id, {
        text: `πŸ‘‹ Welcome @${user.split("@")[0]}`,
        mentions: [user]
      });
    }
  }
};

For detailed documentation, see DOCS.md


πŸ“Έ Previews

πŸ€– Bot Commands
  • Bot sample commands
πŸ“Š Dashboard UI
  • Admin Login Page
  • Bot Dashboard
  • Admin command dashboard

πŸ™‹β€β™‚οΈ Contributing

We welcome contributions from developers of all skill levels! Whether it's fixing bugs, suggesting features, or improving documentation β€” your input makes this project better.

Please feel free to open an issue or submit a pull request.


🚫 Respect the Project & Credits

This project is licensed under the MIT License, which allows you to use and modify it freely. However, please do not remove author credits or attempt to rebrand this project as your own.

Doing so hurts community collaboration and makes it harder to track real improvements. If you want to build on this, we encourage you to fork it and credit the original authors so others know where the foundation came from.

Let’s build better tools β€” together.


πŸ™Œ Authors


πŸ™ Acknowledgements

  • 🐐 GoatBot V2 – A Messenger chatbot project that inspired the modular plugin-based architecture and command flow.
  • πŸ“‘ Baileys – For their awesome WhatsApp Web API library that powers the bot.
  • πŸ€– ChatGPT – For help with writing, refactoring, and improving documentation, Docker setup, and best practices.

πŸ’° Support & Donations

If you find this project helpful and want to support further development, donations are appreciated πŸ™

🏦 Binance Pay

Binance ID: 471390205

πŸ’΅ USDT (TRC-20)

TR95UPDfsB1Ammyj4w62xDuAJEA8wH5GSz

πŸ’Έ Litecoin (LTC)

LeaKUHCiAhRa6U3jrQa4bCAvaAfniJ6pXP

πŸ’Έ Bitcoin (BTC)

16NyoNtkDk8uHejqNsKkhpc8RyPEEfu1m9


πŸ“œ License

This project is licensed under the MIT License – see the LICENSE file.

About

A clean, modular, and production-ready WhatsApp chatbot using personal accounts via Baileys.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.5%
  • CSS 6.3%
  • HTML 5.1%
  • Dockerfile 0.1%