1.0.2-dev • Published 6 months ago

zwa v1.0.2-dev

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

ZWA MD - WhatsApp NodeJS

Simple package to make Whatsapp bot Light and Fast! This is a replacement for the removed @adiwajshing/baileys library. and now this package uses the library from @whiskeysockets/baileys then I make it easier and I break it down so that everyone can easily make WhatsApp Bot.

Installation

Install zwa in your project :

  npm install zwa
  yarn add zwa

Running Tests

To run tests, run the following command :

  git clone https://github.com/zaadevofc/zwa
  cd zwa
  npm install
  npm run test

Usage

initial configuration that needs to be considered when running it.

const { Connection, Config } = require('zwa')

const config = Config({
    /*  */
})

// must async function ...
const connect = async () => {
    const ZWA = new Connection({ config })
    await ZWA.initial(connect) // fill with function name
}

connect()

Configuration

{
    showLogs: true, // show a logs of some actions
    dir: 'session', // folder path of your session
    prefix: '/', // set prefix for use command object
    authors: [/* 628... */], // set authors
    banned: [/* 628... */], // set banned
    browser: ['ZWA MD', 'Safari', '3.0.0'] // set browser to show in your connection
}

Event Listener

ZWA.on('connection', ({ status }) => {
    // this event for actived and running the bot
    // don't delete this event
    // status "connecting" || "open" || "close"
})

ZWA.on('messages', (msg) => {
    /* .... */
})

ZWA.on('messages.delete', (msg) => {
    /* .... */
})

ZWA.on('call', (msg) => {
    /* .... */
})

ZWA.on('update.status', (msg) => {
    /* .... */
})

Demo

Demo

Feedback

If you have any feedback, please reach out to us at zaadevofc@gmail.com

License

Copyright (c) 2022 Dominik Wilkowski. Licensed under the GNU GPL-3.0-or-later.

1.0.1-dev

6 months ago

1.0.2-dev

6 months ago

1.9.7-dev

9 months ago

1.9.6-dev

10 months ago

1.9.5-dev

10 months ago

1.9.4-dev

10 months ago

1.9.3-dev

10 months ago

1.9.2-dev

10 months ago

1.9.1-dev

10 months ago

1.9.0-dev

10 months ago

1.8.0-dev

10 months ago

1.7.0-dev

10 months ago

1.6.0-dev

10 months ago

1.5.0-dev

10 months ago

1.4.0-dev

10 months ago

1.3.0-dev

10 months ago

1.2.0-dev

10 months ago

1.1.0-dev

10 months ago

1.0.0-dev

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago