Git Product home page Git Product logo

queen-sakura_ai's Introduction

whabot - WhatsApp Bot with whasapi

Overview

whabot is a WhatsApp Bot built using the whasapi library. This bot allows you to automate various tasks on WhatsApp, and it supports a modular architecture through plugins.

Features

  • Message Handling: Handle incoming messages and respond accordingly.
  • Command Parsing: Parse commands sent by users to trigger specific actions.
  • Interactive Responses: Provide interactive and dynamic responses to user queries.
  • Media Handling: Support for sending and receiving media files such as images, videos, and documents.
  • Plugin System: Easily extend and customize the bot by adding new plugins.

Getting Started

Follow these steps to set up and run whabot:

  1. Clone Repository:

    git clone https://github.com/KazeDevID/whabot.git
    cd whabot
  2. Install Dependencies:

    npm install
  3. Configuration: Copy the config.example.js file to config.js and update the necessary configuration values, such as Owner number, API key, etc.

  4. Run the Bot:

    npm start
  5. QR Code Authentication: Scan the QR code generated by the bot using your WhatsApp mobile app to authenticate.

  6. Start Interacting: Once authenticated, the bot is ready to handle incoming messages and execute commands.

Customization

Adding a New Plugin

To add a new plugin, follow these steps:

  1. Create a new JavaScript file in the plugins folder with your desired functionality. For example, ping.js:

    // plugins/info-ping.js
    
    module.exports = {
      name: 'ping',
      category: 'info',
      code: async (sock) => {
        sock.reply('Pong!');
      }
    };
  2. Your plugin is now ready to use. Users can trigger it by sending /ping in the chat.

For more details on using the underlying library, refer to the whasapi documentation.

Contributions

Contributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or submit a pull request.

queen-sakura_ai's People

Contributors

blacksyberzizuko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.