Skip to content

Repository files navigation

tag_bot_v2

A Termux-ready WhatsApp bot using Baileys.

Important fixes in V2

  • Replies only to commands starting with !.
  • Supports commands sent from your own WhatsApp number / Message Yourself chat.
  • Organized !menu and !help.
  • Sends Connected to Redmi A9 to your own DM after successful login.
  • Shows clear connection and command logs in Termux.
  • Uses dandelion / Redmi A9 device identity.
  • Includes owner/security commands.
  • Gemini works through !gemini, !ai, and !geminikey:.

Termux install

termux-setup-storage
pkg update && pkg upgrade
pkg install nodejs-lts unzip git

Clean install

Put 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 start

Login

Scan 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

Test commands

!ping
!menu
!help
!status
!jid

V2 ignores these because they do not start with !:

menu
.help
/gemini hello
gemini: hello

Owner/security commands

!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 commands

!gemini explain JavaScript closures
!ai write a short poem
!geminikey: YOUR_GEMINI_API_KEY
!geministatus
!geminimodel gemini-2.5-flash-lite
!delgemini

Security warning

Do not share these:

auth_info/
system/database/gemini.json

They contain your WhatsApp session and API key data.

About

A Termux-ready WhatsApp bot built with Baileys, featuring Gemini AI, owner controls, anti-spam, and self-message support.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages