Update README.md

This commit is contained in:
Adhiraj Singh
2020-06-25 10:57:31 +05:30
committed by GitHub
parent 0cf6ca66d0
commit e3f0ec80eb

View File

@@ -10,10 +10,14 @@
If you're interested in building a WhatsApp bot, you may wanna check out [WhatsAppInfoBot](https://github.com/adiwajshing/WhatsappInfoBot) and an actual bot built with it, [Messcat](https://github.com/adiwajshing/Messcat).
## Install
Create and cd to your NPM project directory and then in terminal, write: `npm install @adiwajshing/baileys`
Create and cd to your NPM project directory and then in terminal, write:
```
echo @adiwajshing:registry=https://npm.pkg.github.com > .npmrc
npm install @adiwajshing/baileys
```
Then import in your code using:
``` javascript
const WhatsAppWeb = require('baileys')
const WhatsAppWeb = require('@adiwajshing/baileys')
```
## Connecting