Created by SirNewton | Owner: AndalaTheMr
A fully-featured, production-ready WhatsApp bot built with Baileys. Supports QR scan and pairing code login, persistent sessions, group management, anti-delete, view-once bypass, games, and much more.
| Feature | Status |
|---|---|
| Auto View Status | β |
| Anti-Delete (text, image, video, audio, sticker) | β |
| View-Once Bypass (.ss / .ss2) | β |
| Group Management (kick, add, promote, demote, muteβ¦) | β |
| Blacklist System | β |
| Tag All / HideTag | β |
| VCF Exporter | β |
| Welcome / Goodbye Messages | β |
| Anti-Link | β |
| Anti-Bot | β |
| Sticker Creator (image & video) | β |
| Warn System (auto-kick at 3 warns) | β |
| Games (TTT, Quiz, Riddle, Truth, Dare, Guess) | β |
| Runtime Stats (RAM, CPU, Uptime) | β |
| Premium Menu UI | β |
| QR Scan Login | β |
| Pairing Code Login | β |
| Persistent Session | β |
| Anti-Crash | β |
| JSON Database (LowDB) | β |
megamind-ai/
βββ index.js β Bot entry point
βββ settings.js β All configuration
βββ package.json
βββ Procfile β For Heroku / Koyeb / Railway
βββ render.yaml β For Render.com
βββ Dockerfile β For Docker / VPS
βββ .gitignore
βββ plugins/ β Command handlers
β βββ basic.js β ping, alive, menu, runtime, ownerβ¦
β βββ groups.js β group management commands
β βββ antidelete.js β anti-delete system
β βββ autoview.js β auto-view statuses
β βββ viewonce.js β .ss / .ss2
β βββ sticker.js β sticker creator
β βββ blacklist.js β blacklist manager
β βββ games.js β ttt, quiz, riddle, truth, dare, guess
β βββ vcf.js β VCF contact exporter
βββ lib/
β βββ database.js β LowDB wrapper
β βββ handler.js β Message router / plugin loader
β βββ logger.js β Pino logger
β βββ utils.js β Helpers (download, format, stats)
βββ database/
β βββ data.json β Persistent data store
βββ session/ β WhatsApp session (auto-created)
βββ assets/
βββ menu.jpg β Menu thumbnail (add your own)
Edit settings.js to set your details before deploying:
ownerName: 'AndalaTheMr',
ownerNumber: '254793753327', // Without + or spaces
prefix: '.',
mode: 'public', // 'public' | 'private'
presenceMode: 'online', // 'online' | 'composing' | 'recording'
autoViewStatus: true,
antiDelete: true,- Node.js 18+
- npm or yarn
# 1. Clone or extract
git clone https://github.com/SirNewton/megamind-ai.git
cd megamind-ai
# 2. Install dependencies
npm install
# 3. Start the bot
npm startA QR code will appear in the terminal. Scan it with WhatsApp:
WhatsApp β Settings β Linked Devices β Link a Device
If you cannot scan a QR code (e.g., headless server), use pairing mode:
USE_PAIRING=true PAIRING_NUMBER=254793753327 npm startOr set environment variables:
USE_PAIRING=true
PAIRING_NUMBER=2547XXXXXXXX
The pairing code will be printed to the console. Enter it in:
WhatsApp β Settings β Linked Devices β Link with phone number
- Push your project to GitHub
- Go to render.com β New β Web Service
- Connect your repo
- Build command:
npm install - Start command:
node index.js - Add env vars:
USE_PAIRING=true,PAIRING_NUMBER=your_number - Deploy β your pairing code will appear in the logs
- Push to GitHub
- Create new project β Deploy from GitHub
- Add env vars as above
- Deploy
- Download and extract the ZIP
- Upload via File Manager or Git
- Set Node.js version to 18+
- Set start command:
node index.js - Add env variables if using pairing mode
- Start the service
- Push to GitHub
- Create app β GitHub source β select repo
- Build:
npm install, Run:node index.js - Set env vars and deploy
# Install Node.js 20
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs ffmpeg
# Clone and start
git clone <your-repo> megamind-ai
cd megamind-ai
npm install
# Run with PM2 for persistence
npm install -g pm2
pm2 start index.js --name megamind-ai
pm2 save
pm2 startupdocker build -t megamind-ai .
docker run -d \
-e USE_PAIRING=true \
-e PAIRING_NUMBER=2547XXXXXXXX \
-v $(pwd)/session:/app/session \
-v $(pwd)/database:/app/database \
--name megamind-ai \
megamind-ai- Create a new Replit project β Import from GitHub
- Set
npm installas the install command - Set
node index.jsas the run command - Add Secrets:
USE_PAIRING=true,PAIRING_NUMBER=your_number - Run and check the console for the pairing code
| Command | Description |
|---|---|
.ping |
Check bot speed |
.alive |
Bot status |
.uptime |
Uptime |
.runtime |
System stats (RAM, CPU) |
.menu |
Full command menu |
.owner |
Owner contact |
.repo |
GitHub link |
.mode public/private |
Set bot mode (owner only) |
.restart |
Restart bot (owner only) |
| Command | Description |
|---|---|
.group open/close |
Lock/unlock group |
.promote @user |
Make admin |
.demote @user |
Remove admin |
.kick @user |
Remove member |
.add number |
Add member |
.mute / .unmute |
Mute/unmute group |
.tagall [msg] |
Tag all members |
.hidetag [msg] |
Silent tag all |
.warn @user |
Warn member (auto-kick at 3) |
.welcome on/off |
Toggle welcome messages |
.goodbye on/off |
Toggle goodbye messages |
.antilink on/off |
Toggle anti-link |
.antibot on/off |
Toggle anti-bot |
.vcf |
Export member VCF file |
| Command | Description |
|---|---|
.antidelete on/off |
Toggle anti-delete |
.antidelete dm on/off |
Set DM or same-chat recovery |
.autoview on/off |
Toggle auto-view status |
.blacklist add/remove/list |
Manage blacklist |
.ss |
Recover view-once β DM |
.ss2 |
Recover view-once β current chat |
| Command | Description |
|---|---|
.sticker (or .s) |
Convert image/video to sticker |
| Command | Description |
|---|---|
.ttt [1-9] |
Tic Tac Toe vs bot |
.truth |
Random truth question |
.dare |
Random dare |
.guess [number] |
Guess the number |
.quiz [answer] |
Trivia quiz |
.riddle [answer] |
Riddle game |
| Variable | Default | Description |
|---|---|---|
USE_PAIRING |
false |
Use pairing code instead of QR |
PAIRING_NUMBER |
`` | Your WhatsApp number (no +) |
NODE_ENV |
development |
Environment |
- Bot Name: MEGAMIND AI
- Creator: SirNewton
- Owner: AndalaTheMr
- Library: @whiskeysockets/baileys
MIT β Free to use, modify and deploy.