From e3f0ec80ebede5be0d1232d6789f97f5bcdbe73c Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Thu, 25 Jun 2020 10:57:31 +0530 Subject: [PATCH] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 86e212e..a9e50f0 100644 --- a/README.md +++ b/README.md @@ -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