Skip to content
Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 MEGAMIND AI β€” Premium WhatsApp Bot

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.


✨ Features

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) βœ…

πŸ“ Project Structure

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)

βš™οΈ Configuration (settings.js)

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,

πŸš€ Installation & Running Locally

Prerequisites

  • Node.js 18+
  • npm or yarn

Steps

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

A QR code will appear in the terminal. Scan it with WhatsApp:
WhatsApp β†’ Settings β†’ Linked Devices β†’ Link a Device


πŸ“± Pairing Code (no QR)

If you cannot scan a QR code (e.g., headless server), use pairing mode:

USE_PAIRING=true PAIRING_NUMBER=254793753327 npm start

Or 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


🌐 Deployment Guides

Render.com (Free)

  1. Push your project to GitHub
  2. Go to render.com β†’ New β†’ Web Service
  3. Connect your repo
  4. Build command: npm install
  5. Start command: node index.js
  6. Add env vars: USE_PAIRING=true, PAIRING_NUMBER=your_number
  7. Deploy β€” your pairing code will appear in the logs

Railway.app

  1. Push to GitHub
  2. Create new project β†’ Deploy from GitHub
  3. Add env vars as above
  4. Deploy

Katabam / Bothosting.net

  1. Download and extract the ZIP
  2. Upload via File Manager or Git
  3. Set Node.js version to 18+
  4. Set start command: node index.js
  5. Add env variables if using pairing mode
  6. Start the service

Koyeb

  1. Push to GitHub
  2. Create app β†’ GitHub source β†’ select repo
  3. Build: npm install, Run: node index.js
  4. Set env vars and deploy

VPS (Ubuntu/Debian)

# 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 startup

Docker

docker 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

Replit

  1. Create a new Replit project β†’ Import from GitHub
  2. Set npm install as the install command
  3. Set node index.js as the run command
  4. Add Secrets: USE_PAIRING=true, PAIRING_NUMBER=your_number
  5. Run and check the console for the pairing code

πŸ“‹ Commands

Basic

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)

Group Management

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

Protection

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

Sticker

Command Description
.sticker (or .s) Convert image/video to sticker

Games

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

πŸ”§ Environment Variables

Variable Default Description
USE_PAIRING false Use pairing code instead of QR
PAIRING_NUMBER `` Your WhatsApp number (no +)
NODE_ENV development Environment

πŸ‘‘ Credits


πŸ“„ License

MIT β€” Free to use, modify and deploy.

About

best simple whatsaap bit ai

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages