: Install the core tools required for the scripts. pkg install git nodejs ffmpeg -y
Note: If the bot relies on Yarn, use yarn install instead. This process might take several minutes depending on your device's processing power and internet speed. Step 5: Configure and Start the Bot
Open WhatsApp on your primary phone (or the phone hosting the bot number). Navigate to > Link a Device .
Auto-kick members, welcome messages, and anti-link protection.
Once scanned, Termux will synchronize session data and save an authentication folder (usually named session/ or auth_info_baileys/ ). The bot is now online. Step 6: Keep the Bot Running 24/7 (Optional)
pkg install ffmpeg -y pkg install imagemagick -y pkg install libwebp -y