A Termux-ready WhatsApp bot using Baileys.
- Replies only to commands starting with
!. - Supports commands sent from your own WhatsApp number / Message Yourself chat.
- Organized
!menuand!help. - Sends
Connected to Redmi A9to your own DM after successful login. - Shows clear connection and command logs in Termux.
- Uses
dandelion / Redmi A9device identity. - Includes owner/security commands.
- Gemini works through
!gemini,!ai, and!geminikey:.
termux-setup-storage
pkg update && pkg upgrade
pkg install nodejs-lts unzip gitPut tag_bot_v2.zip in your Downloads folder, then run:
cd ~
rm -rf tag_bot_v2
cd /storage/emulated/0/Download
cp tag_bot_v2.zip ~
cd ~
unzip tag_bot_v2.zip
cd tag_bot_v2
npm install
rm -rf auth_info
npm startScan QR:
WhatsApp → Linked devices → Link a device
After connection, Termux should show:
Connected. Tag Bot V2 is online.
Self-DM sent ... Connected to Redmi A9
!ping
!menu
!help
!status
!jid
V2 ignores these because they do not start with !:
menu
.help
/gemini hello
gemini: hello
!public
!private
!mode
!addOwner: 911234567890
!delOwner: 911234567890
!owners
!security
!block: 911234567890
!unblock: 911234567890
!blocklist
!antispam on
!antispam off
!logs on
!logs off
!selfmsg on
!selfmsg off
!fromme on
!fromme off
!showlogs
!dbstats
!gemini explain JavaScript closures
!ai write a short poem
!geminikey: YOUR_GEMINI_API_KEY
!geministatus
!geminimodel gemini-2.5-flash-lite
!delgemini
Do not share these:
auth_info/
system/database/gemini.json
They contain your WhatsApp session and API key data.