Skip to content

Latest commit

 

History

History
69 lines (61 loc) · 1.98 KB

deploy-on-vps.md

File metadata and controls

69 lines (61 loc) · 1.98 KB

Deploy on VPS or PC.

  • You need to Install git,ffmpeg,curl,nodejs,yarn with pm2
    1. Install git ffmpeg curl

       sudo apt -y update &&  sudo apt -y upgrade 
       sudo apt -y install git ffmpeg curl
      
    2. Install nodejs

      sudo apt -y remove nodejs
      curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs
      
    3. 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
      
    4. Install pm2

      sudo yarn global add pm2
      
    5. Clone Repo and install required packages

      git clone https://github.com/akshitbhatia2004/WHATSAPP_AKBOT
      cd WHATSAPP_AKBOT
      yarn install --network-concurrency 1
      
    6. Create an env file for ENV.

      touch config.env
      nano config.env
      

      copy paste lines below.

      OWNER_NUMBER="919971606684"
      MONGODB_URI="mongodb+srv://*************"
      SESSION_ID = "put session id"
      THUMB_IMAGE = "https://raw.githubusercontent.com/SecktorBot/Brandimages/main/logos/SocialLogo%201.png"
      port = 5000
      email = "akshitbot4.0@gmail.com"
      global_url = "instagram.com"
      OWNER_NAME = "akshitbhatia2004"
      AUTO_REACTION = false
      FAKE_COUNTRY_CODE = 92
      READ_MESSAGE = false
      PREFIX = .
      WARN_COUNT = 3
      DISABLE_PM = false
      ANTI_BAD_WORD = "fuck"
      LEVEL_UP_MESSAGE= true
      WELCOME_MESSAGE =  "*Hi,* @user \n*Welcome in* @gname \n*Member count* : @count th"
      THEME= SECKTOR
      WORKTYPE = public
      PACK_INFO = "Akshit;akbot"
      ANTILINK_VALUES = "chat.whatsapp.com"
      
      

      ctrl + o and ctrl + x, To save and exit

    7. start and stop bot

      To start bot npm start, To stop bot npm stop