Git Product home page Git Product logo

muindi6602.github.io's Introduction

Levanter Md in Termux

Simple deployment

Setup

  1. First above all, install Termux Apk. Click Here to download.

  2. Open Termux App info and Allow access to Files and Media:

  3. Install repo

          pkg install root-repo
    
  4. Install X11

          pkg install x11-repo
    
  5. Update and upgrade Termux packages (Run command "y" if paused):

          apt update && apt upgrade -y
    
  6. Install required packages:

          pkg install wget openssl-tool proot -y
    
  7. Downloading ubuntu Setup file:

          wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh
    
  8. Give the Executable Permission:

          chmod +x *
    
  9. Run the Setup file. This setup process will take 10โ€“15 minutes, depending on your internet speed:

          ./ubuntu.sh
    
  10. Run Ubuntu / Open Ubuntu:

         bash start-ubuntu.sh
    
  11. Install git, ffmpeg, and curl:

         apt -y update && apt -y upgrade
         apt -y install git ffmpeg curl
    
  12. Install nodejs:

         curl -fsSl https://deb.nodesource.com/setup_lts.x | bash - && apt -y install nodejs
    
  13. Update nodejs version:

         npm install -g [email protected]
    
  14. Install yarn:

         npm install -g yarn
    
  15. Install pm2:

         yarn global add pm2
    
  16. Clone the repository and install packages:

         git clone https://github.com/lyfe00011/whatsapp-bot-md botName
         cd botName
         yarn install --network-concurrency 1
    
  17. Obtain Session_ID from Levanter:

  18. Enter Environment Variables: Edit them to your preference:

         echo "SESSION_ID = Session_Id
         PREFIX = .
         STICKER_PACKNAME = Muindi
         ALWAYS_ONLINE = true
         RMBG_KEY = null
         LANGUAG = en
         WARN_LIMIT = 1
         FORCE_LOGOUT = false
         BRAINSHOP = 159501,6pq8dPiYt7PdqHz3
         MAX_UPLOAD = 200
         REJECT_CALL = true
         SUDO = 254739642355,254115783375
         TZ = Africa/Nairobi
         VPS = true
         AUTO_STATUS_VIEW = no-dl
         SEND_READ = true
         AJOIN = true
         DISABLE_START_MESSAGE = false
         PERSONAL_MESSAGE = null" > config.env
    
  19. To save, press Ctrl + O then press Enter, press Ctrl + X to exit.

  20. Start the Bot: {After this, your bot should start running}

        pm2 start . --name botName --attach --time
    
  • You can leave it at this point, but if you want the bot to run even on offline mode: Do as below
  1. Click acquire Wakelock in the Termux notification to enable it run in background. Exit both the ubuntu & Termux

  2. After closing, open Termux again and navigate to Ubuntu:

        bash start-ubuntu.sh
    
  3. Open your bot folder:

        cd botName
    
  4. Start the bot:

        pm2 start . --name botName --attach --time
    
  5. Stop bot:(Incase you wanna stop it):

        pm2 stop botName
    

Thanks To

Get me on:

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.