Simple deployment
-
First above all, install Termux Apk. Click Here to download.
-
Open Termux App info and Allow access to Files and Media:
-
Install repo
pkg install root-repo
-
Install X11
pkg install x11-repo
-
Update and upgrade Termux packages (Run command "y" if paused):
apt update && apt upgrade -y
-
Install required packages:
pkg install wget openssl-tool proot -y
-
Downloading ubuntu Setup file:
wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh
-
Give the Executable Permission:
chmod +x *
-
Run the Setup file. This setup process will take 10–15 minutes, depending on your internet speed:
./ubuntu.sh
-
Run Ubuntu / Open Ubuntu:
bash start-ubuntu.sh
-
Install git, ffmpeg, and curl:
apt -y update && apt -y upgrade apt -y install git ffmpeg curl
-
Install nodejs:
curl -fsSl https://deb.nodesource.com/setup_lts.x | bash - && apt -y install nodejs
-
Update nodejs version:
npm install -g npm@10.8.0
-
Install yarn:
npm install -g yarn
-
Install pm2:
yarn global add pm2
-
Clone the repository and install packages:
git clone https://github.com/lyfe00011/whatsapp-bot-md botName cd botName yarn install --network-concurrency 1
-
Obtain Session_ID from Levanter:
-
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
-
To save, press Ctrl + O then press Enter, press Ctrl + X to exit.
-
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
-
Click acquire Wakelock in the Termux notification to enable it run in background. Exit both the ubuntu & Termux
-
After closing, open Termux again and navigate to Ubuntu:
bash start-ubuntu.sh
-
Open your bot folder:
cd botName
-
Start the bot:
pm2 start . --name botName --attach --time
-
Stop bot:(Incase you wanna stop it):
pm2 stop botName