Code Monkey home page Code Monkey logo

whatsapp-bot-md's Introduction

WhatsApp MD User Bot

A simple WhatsApp User bot.

Setup

1. Deploy on Heroku

  1. Scan QR Code:

    • Click SCAN and scan the QR code through the "WhatsApp Linked Devices" option in your WhatsApp app.
    • You will get a session ID in WhatsApp; copy the ID only.
  2. Create Accounts:

  3. Fork Repository:

    • FORK this repository.
  4. Deploy:

2. Deploy on Koyeb

  1. Create an Account:

  2. Get Required Information:

  3. Deploy:

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

Install with Script

  • Run the following command:
    bash <(curl -fsSL http://bit.ly/43JqREw)

Install without Script

  1. Install Git, ffmpeg, and curl:

    sudo apt -y update && sudo apt -y upgrade
    sudo apt -y install git ffmpeg curl
  2. Install Node.js:

    curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh
    sudo -E bash nodesource_setup.sh
    sudo apt-get install -y nodejs
  3. Install Yarn:

    sudo npm install -g yarn
  4. Install pm2:

    sudo yarn global add pm2
  5. Clone Repository and Install Packages:

    git clone https://github.com/lyfe00011/whatsapp-bot-md botName
    cd botName
    yarn install
  6. Enter Environment Variables:

    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
    DISABLE_START_MESSAGE = false
    PERSONAL_MESSAGE = null" > config.env
  7. Edit config.env Using Nano (if needed):

    • To save, press Ctrl + O, then press Enter, and to exit, press Ctrl + X.
  8. Start and Stop the Bot:

    • To start the bot:
      pm2 start . --name botName --attach --time
    • To stop the bot:
      pm2 stop botName

4. Deploy on Replit

Run on Replit

  1. Fork the repository.
  2. Edit config.env.
  3. Click run.

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.