GithubHelp home page GithubHelp logo

i-am-muhammed / whatsapp-bot-md Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lyfe00011/whatsapp-bot-md

0.0 0.0 0.0 13.06 MB

A whatsapp Multi Device bot based on baileys

JavaScript 99.60% Nix 0.22% Dockerfile 0.18%

whatsapp-bot-md's Introduction

WhatsApp MD user bot

A simple Whatsapp User bot

Setup

  1. 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 Now.
    4. If You Don't have a github account SignUp Now.
    5. FORK this repo
    6. Now DEPLOY
  2. Deploy on koyeb

    1. Create an account in koyeb. SignUp Now
    2. Get DATABASE_URL, You needs while depolying
    3. Get SESSION_ID, Open Linked Devices in WhatsaApp and SCAN Now.
    4. Get Koyeb API key. Let Go
    5. DEPLOY Now.
    6. Enter Environment Variables, Read More
    7. Enter Name and Click Create service
  3. Deploy on VPS or PC (Example here as in Ubuntu

    Install with script

    wget -N https://www.levanter.ml/install && chmod +x install && ./install
    

    Install without script

    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 packages
      git clone https://github.com/lyfe00011/whatsapp-bot-md botName
      cd botName
      yarn install --network-concurrency 1
    
    6. Enter Environment Variables
    copy paste lines below (remove SESSION_ID if not needs)
      echo "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
      VPS = true
      AUTO_STATUS_VIEW = true
      SEND_READ = true
      AJOIN = true" > config.env
    
    nano config.env, if you want edit. TO Save ctrl + o press enter then ctrl + x
    7. start and stop bot
      To start bot `pm2 start . --name botName --attach --time`
      To stop bot `pm2 stop botName`
    

Thanks To

whatsapp-bot-md's People

Contributors

lyfe00011 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.