A simple structure for a WhatsApp bot using the Baileys library from WhiskeySockets.
Note
All dependencies are required.
Dependency | Version |
---|---|
@whiskeysockets/baileys | 6.7.4 |
@hapi/boom | 10.0.1 |
pino | 8.15.0 |
qrcode-terminal | 0.12.0 |
Starting the application is simple. Just install the dependencies and run the start
script found in package.json
.
$ npm install
# or
$ yarn install
# or
$ pnpm install
Note
Use
--production
for production.
Initialization consists of two levels: production and development.
$ pnpm dev # Development
# or
$ pnpm start # Production