https://github.com/zaadevofc/zwa
ZWA MD | Simple package to make Whatsapp bot Light and Fast!
https://github.com/zaadevofc/zwa
bot multidevice nodejs wa wabot zwa
Last synced: about 1 year ago
JSON representation
ZWA MD | Simple package to make Whatsapp bot Light and Fast!
- Host: GitHub
- URL: https://github.com/zaadevofc/zwa
- Owner: zaadevofc
- Created: 2023-07-19T09:59:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-17T15:50:58.000Z (over 2 years ago)
- Last Synced: 2025-03-08T12:09:31.742Z (about 1 year ago)
- Topics: bot, multidevice, nodejs, wa, wabot, zwa
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/zwa
- Size: 151 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZWA MD - WhatsApp NodeJS
Simple package to make Whatsapp bot Light and Fast! This is a replacement for the removed [@adiwajshing/baileys](https://github.com/adiwajshing/baileys) library. and now this package uses the library from [@whiskeysockets/baileys](https://github.com/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 :
```bash
npm install zwa
```
```bash
yarn add zwa
```
## Running Tests
To run tests, run the following command :
```bash
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.
```javascript
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
```javascript
{
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
```javascript
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

## 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](https://github.com/zaadevofc/zwa/blob/main/LICENSE).