HuluBalangStore / whatsapp-bot-md

A whatsapp Multi Device bot based on baileys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WhatsApp MD user bot

Setup

Deploy on Heroku

  1. Click SCAN and scan QR through Whatsapp Linked Devices Option in Your whatsapp App.

  2. You will get a session id in whatsapp, copy id only.

  3. If You don't have a account in Heroku, Create a account.

  4. Click FORK

  5. Now DEPLOY

    WhatsApp

Deploy on VPS or PC (Example here as in Ubuntu)

  1. Install git ffmpeg curl
sudo apt -y update &&  sudo apt -y upgrade 
sudo apt -y install git ffmpeg curl
  1. Install nodejs
sudo apt -y remove nodejs
curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs
  1. Install yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - 
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt -y update && sudo apt -y install yarn
  1. Install pm2
sudo yarn global add pm2
  1. Clone Repo and install packages
git clone https://github.com/lyfe00011/whatsapp-bot-md
cd whatsapp-bot-md
yarn install --network-concurrency 1
  1. Enter Environment Variables
touch config.env
nano config.env

copy paste lines below (remove SESSION_ID if not needs)

SESSION_ID = Session_Id_you_Got_After_Scan_Dont_Add_This_Line_If_You_Can_Scan_From_Terminal_Itself
PREFIX = .
STICKER_PACKNAME = LyFE
ALWAYS_ONLINE = false
RMBG_KEY = null
LANGUAG = en
WARN_LIMIT = 3
FORCE_LOGOUT = false
BRAINSHOP = 159501,6pq8dPiYt7PdqHz3
MAX_UPLOAD = 200
REJECT_CALL = false
SUDO = 989876543210
TZ=Asia/Kolkata

ctrl + o and ctrl + x

  1. start and stop bot

To start bot

npm start  

To stop bot

ctrl + c
npm stop

Thanks To

About

A whatsapp Multi Device bot based on baileys


Languages

Language:JavaScript 99.8%Language:Dockerfile 0.2%