Skip to content

NexusCoders-cyber/Amazing-Bot-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โœจ ๐Ÿง  AMAZING BOT ๐Ÿง  โœจ

Amazing Bot Banner

Typing SVG

๐Ÿ’ซ The Ultimate WhatsApp Automation Revolution ๐Ÿ’ซ

Node.js License Version Stars Forks Watchers

๐ŸŽฏ Built with โค๏ธ by Ilom | Powered by NexusCoders

๐Ÿš€ A next-generation WhatsApp bot featuring cutting-edge AI integration, stunning canvas graphics, advanced economy system, comprehensive admin tools, and enterprise-grade security. Experience automation like never before!

๐Ÿš€ Quick Deploy โ€ข โœจ Features โ€ข ๐Ÿ”ง Installation โ€ข ๐Ÿ“– Commands โ€ข ๐ŸŒ API โ€ข ๐Ÿ’ฌ Support

๐ŸŒŸ What's New in Latest Update

๐ŸŽ‰ Major Enhancement Release! ๐ŸŽ‰

โœจ Latest Enhancements

  • โœ… Beautiful Canvas Graphics - Stunning visual cards for all commands
  • โœ… Advanced Help System - Interactive help with onReply support
  • โœ… Epic Hangman Game - Canvas-based game with reply functionality
  • โœ… Smart Admin Commands - Enhanced permission handling
  • โœ… Anti-Link Protection - Comprehensive link detection & actions
  • โœ… Auto-Reaction System - 20+ context-aware reactions
  • โœ… Leveling System - XP progression with visual rewards
  • โœ… Self-Listening Mode - Process own messages when needed
  • โœ… Security Hardened - Enterprise-grade protection
  • โœ… Multi-Platform Deploy - One-click deployment options

๐Ÿ”ฅ Key Highlights

  • โšก Sub-100ms Response Time
  • ๐ŸŽจ Canvas Graphics - Professional visual cards
  • ๐Ÿ›ก๏ธ Enterprise-Grade Security
  • ๐Ÿค– Multi-AI Integration (GPT, Gemini)
  • ๐Ÿ’พ Optional Database - Works without it!
  • ๐ŸŒ 10+ Languages Supported
  • ๐Ÿ“Š Real-time Analytics Dashboard
  • ๐ŸŽฎ Interactive Games - Reply-based gameplay
  • ๐Ÿ’ฌ Reply Handlers - Smart message interactions
  • ๐Ÿ”˜ Interactive Buttons - Quick command access

WhatsApp Bot Features

๐Ÿš€ Experience the Future of WhatsApp Automation! ๐Ÿš€


๐Ÿš€ Quick Deploy

๐Ÿ“‹ System Requirements

Component Requirement Status
Node.js 20.0 or higher โœ… Required
MongoDB 4.4 or higher ๐ŸŸก Optional
WhatsApp Account Any โœ… Required
Memory 512MB+ โœ… Recommended
Storage 1GB+ โœ… Recommended
Processor 1 vCPU+ โœ… Recommended
Internet Stable Connection โœ… Required

๐ŸŽฏ Platform-Specific Deployment

๐Ÿš€ Koyeb Deployment (Recommended)

Step-by-Step Guide

1๏ธโƒฃ Fork this repository to your GitHub account

2๏ธโƒฃ Create Koyeb account at koyeb.com

3๏ธโƒฃ Deploy from GitHub:

  • Click "Create App"
  • Select "GitHub" as source
  • Choose your forked repository
  • Koyeb will auto-detect settings from koyeb.yaml

4๏ธโƒฃ Set Environment Variables:

SESSION_ID=your_session_id_here
OWNER_NUMBERS=your_phone_number
PREFIX=.
BOT_NAME=Amazing Bot

5๏ธโƒฃ Optional - Add MongoDB:

MONGODB_URL=mongodb+srv://username:[email protected]/botdb

6๏ธโƒฃ Deploy - Click "Deploy" and wait 2-3 minutes

โœ… Done! Your bot is now live 24/7

Note: The bot works perfectly without MongoDB - it will use temporary data storage.

๐Ÿš‚ Railway Deployment

Quick Setup

1๏ธโƒฃ Deploy to Railway:

  • Click the Railway badge above
  • Connect your GitHub account
  • Select this repository

2๏ธโƒฃ Environment Variables:

  • Railway will use settings from railway.toml
  • Add required variables in Railway dashboard:
SESSION_ID=your_session_id
OWNER_NUMBERS=your_number

3๏ธโƒฃ Database (Optional):

  • Railway offers free PostgreSQL/MongoDB
  • Add database plugin from Railway dashboard
  • Connection URL is auto-injected

4๏ธโƒฃ Deploy:

  • Railway auto-deploys on git push
  • Check deployment logs for QR code

โœ… Production Ready!

๐ŸŽจ Render Deployment

Setup Process

1๏ธโƒฃ Create Render Account at render.com

2๏ธโƒฃ New Web Service:

  • Connect GitHub repository
  • Render auto-detects from render.yaml
  • Set environment variables:
SESSION_ID=your_session_id
OWNER_NUMBERS=your_phone_number

3๏ธโƒฃ Free MongoDB (Optional):

  • Use MongoDB Atlas free tier
  • Or Render's managed database

4๏ธโƒฃ Deploy:

  • Click "Create Web Service"
  • Wait for build to complete

โœ… Live in minutes!

๐ŸŸฃ Heroku Deployment

Heroku Setup

1๏ธโƒฃ Prerequisites:

  • Heroku CLI installed
  • Git initialized in project

2๏ธโƒฃ Deploy Commands:

heroku login
heroku create amazing-bot-app
git push heroku main

3๏ธโƒฃ Set Config Vars:

heroku config:set SESSION_ID="your_session_id"
heroku config:set OWNER_NUMBERS="your_number"
heroku config:set PREFIX="."

4๏ธโƒฃ Optional MongoDB:

heroku addons:create mongolab:sandbox

5๏ธโƒฃ Check Logs:

heroku logs --tail

โœ… Deployed!

๐Ÿ’ป Replit Deployment (Development)

Replit Setup

1๏ธโƒฃ Import to Replit:

  • Click "Import from GitHub"
  • Paste repository URL
  • Replit auto-configures from replit.md

2๏ธโƒฃ Environment Secrets:

  • Click "Secrets" in sidebar
  • Add:
SESSION_ID = your_session_id
OWNER_NUMBERS = your_number

3๏ธโƒฃ Run:

  • Click "Run" button
  • Bot starts automatically
  • Scan QR if no SESSION_ID set

โœ… Perfect for testing!

Note: Replit works great without database - data is temporary until you add MongoDB URL.

๐Ÿ”ง Local Installation

Prerequisites

Requirement Status Download
Node.js 20+ โœ… Required Download
Git โœ… Required Download
FFmpeg ๐ŸŸก Optional Download
MongoDB ๐ŸŸก Optional MongoDB Atlas

Windows Users: For shell scripts (backup, update, etc.), use Git Bash or WSL. Alternatively, run commands manually from the scripts.

Option 1: Automated Setup (Recommended)

git clone https://github.com/NexusCoders-cyber/Amazing-Bot-.git
cd Amazing-Bot-

npm run setup

This will:

  • โœ… Check Node.js version
  • โœ… Install all dependencies
  • โœ… Create directory structure
  • โœ… Generate .env from template
  • โœ… Verify required binaries

Option 2: Manual Setup

git clone https://github.com/NexusCoders-cyber/Amazing-Bot-.git
cd Amazing-Bot-

npm install

cp .env.example .env
nano .env

npm start

โš™๏ธ Configuration

๐Ÿ”‘ Essential Variables

Create .env file with these required settings:

SESSION_ID=Ilom~base64_encoded_session_here
OWNER_NUMBERS=1234567890,9876543210
PREFIX=.
BOT_NAME=Amazing Bot

MONGODB_URL=mongodb+srv://user:[email protected]/botdb
DATABASE_ENABLED=true

OPENAI_API_KEY=sk-your-openai-api-key-here
GEMINI_API_KEY=your-google-gemini-api-key
OPENAI_MODEL=gpt-3.5-turbo

ENCRYPTION_KEY=your-secure-encryption-key-min-32-chars
JWT_SECRET=your-jwt-secret-key-here
SESSION_SECRET=your-session-secret-here

PUBLIC_MODE=true
SELF_MODE=false
AUTO_READ=false
AUTO_TYPING=true
MARK_ONLINE=true

MAX_CONCURRENT_COMMANDS=50
COMMAND_COOLDOWN=3
RATE_LIMIT_REQUESTS=20
CACHE_SIZE=1000

๐Ÿ“ฑ Getting SESSION_ID

Method 1: QR Code (Easiest)

npm start

Method 2: From Running Bot

๐Ÿ—„๏ธ Database Setup

Without Database (Quick Start)

MONGODB_URL=mongodb://localhost:27017/ilombot

With MongoDB (Production)

Option 1: MongoDB Atlas (Free)

MONGODB_URL=mongodb+srv://username:[email protected]/botdb

Option 2: Local MongoDB

MONGODB_URL=mongodb://localhost:27017/ilombot

Option 3: Platform Managed

  • Railway, Render, Heroku offer managed databases
  • Auto-inject connection strings

Bot Features Dashboard

โœจ Features

๐ŸŽฏ Core Capabilities

Category Features Count
๐Ÿค– AI & Chat OpenAI GPT, Gemini, Smart Responses 15+
๐ŸŽฎ Games 8-ball, Trivia, Blackjack, Hangman 12+
๐Ÿ’ฐ Economy Currency, Daily Rewards, Gambling, Shop 18+
๐Ÿ‘‘ Admin Group Management, Moderation, Bans 20+
๐Ÿ“ฅ Downloaders YouTube, Instagram, TikTok, Facebook 10+
๐Ÿ”ง Utilities QR, Encryption, Translate, Weather 15+
๐ŸŽจ Media Stickers, Filters, Compress, Convert 12+
๐ŸŒ Info News, Search, Dictionary, Time 10+
๐Ÿ‘ค Owner System Control, Backup, Execute Code 9+

Total: 142+ Commands loaded and tested!

๐Ÿš€ Advanced Capabilities

๐Ÿ” Security

  • Multi-level permissions
  • Rate limiting
  • Input validation
  • Session encryption
  • JWT authentication
  • Credential sanitization

โšก Performance

  • Sub-100ms responses
  • Efficient caching
  • Database pooling
  • Async processing
  • Memory optimization
  • Queue management

๐ŸŒ Platform Support

  • Universal compatibility
  • Cloud-native design
  • Auto-scaling ready
  • Zero-downtime updates
  • Health monitoring
  • Multi-platform deploy

๐Ÿ’ก Smart Features

  • ๐Ÿ”„ Auto-Recovery - Reconnects automatically
  • ๐Ÿ“Š Real-time Stats - Live monitoring
  • ๐ŸŒ Multi-Language - 10+ languages
  • ๐ŸŽจ Canvas Graphics - Professional cards
  • ๐Ÿ’พ Smart Storage - Works with/without DB
  • ๐Ÿ”” Notifications - Owner alerts
  • ๐Ÿ“ˆ Analytics - Usage tracking
  • ๐Ÿ›ก๏ธ Anti-Spam - Smart detection
  • โšก Auto-Reaction - Context-aware
  • ๐ŸŽฏ Leveling System - XP progression

๐Ÿ“– Command Guide

โœจ Enhanced Help Command

The bot features a stylish, user-personalized help menu with:

๐ŸŽฏ User Info Display
Shows name, ID, status, credits
โšก Real-time Stats
Current date, time, bot status
๐Ÿ“ฑ Interactive Buttons
Quick access to features
๐Ÿ’ฌ Reply Support
Detailed command assistance
๐ŸŽจ Beautiful Formatting
Clean, organized categories
๐ŸŒ Global Images
Enhanced visual appeal

๐ŸŽฏ Essential Commands

.help              .menu              .ping              
.info              .status            .support           

๐Ÿ‘‘ Admin Commands

Group Management
.kick @user          .ban @user         .unban @user       
.promote @user       .demote @user      .mute @user        
.unmute @user        .warn @user        .unwarn @user      
.tagall [msg]        .hidetag [msg]     .setdesc <text>    
.setname <text>      .groupinfo         .antilink on/off   
.delete              

๐Ÿง  AI Integration

AI Commands
.ai <message>        .chatgpt <msg>     .gemini <msg>      
.analyze <text>      .translate <txt>   .imagine <prompt>  
.stt [audio]         .tts <text>        .ocr [image]       

๐Ÿ’ฐ Economy System

Money & Shop
.balance             .daily             .weekly            
.work                .gamble <amt>      .rob @user         
.transfer @user $    .shop              .buy <item>        
.inventory           .sell <item>       .leaderboard       

๐ŸŽฎ Games & Fun

Entertainment
.8ball <question>    .dice [sides]      .coin              
.rps <choice>        .joke              .quote             
.trivia              .blackjack         .tictactoe         
.hangman             .math              .word              
.memory              

๐Ÿ“ฅ Downloaders

Social Media Downloads
.ytdl <url>          .ytmp3 <url>       .ytmp4 <url>       
.igdl <url>          .fbdl <url>        .tikdl <url>       
.twdl <url>          .pinterest <url>   .mediafire <url>   
.gdrive <url>        

๐ŸŽจ Media Processing

Image & Video Tools
.sticker             .filter <type>     .blur              
.compress            .resize <width>    .crop              
.watermark           .meme <text>       .toaudio           
.toimg               .tovideo           .gif               

๐Ÿ”ง Utilities

Useful Tools
.qr <text>           .encrypt <text>    .decrypt <text>    
.hash <text>         .base64 <text>     .short <url>       
.weather <city>      .news              .search <query>    
.time                .uptime            .profile [@user]   

๐Ÿ”’ Owner Commands

System Management
.restart             .shutdown          .update            
.backup              .restore           .eval <code>       
.exec <command>      .setprefix <pfx>   .setstatus <txt>   
.setpp [image]       .broadcast <msg>   .join <link>       
.leave               .addpremium @user  .removepremium     
.gban @user          .gunban @user      

๐ŸŽจ Canvas-Based Group Events

Professional Visual Notifications

๐Ÿ‘‹ Welcome Messages
Beautiful gradient cards
with user avatars
๐Ÿ‘‹ Goodbye Messages
Stylish farewell cards
with user info
๐Ÿ‘‘ Promotion/Demotion
Celebration-themed
notification cards
๐Ÿ“ Group Updates
Name & description
change notifications

Advanced Systems

๐ŸŽฏ Level-Up System
XP-based progression
Beautiful achievement cards
โšก Auto-Reactions
20+ context-aware emojis
Smart sentiment analysis
๐ŸŽจ Custom Graphics
Professional design
Fully customizable

๐ŸŒ API Reference

Base URL

http://localhost:5000/api

๐Ÿ“Š Available Endpoints

Endpoint Method Description
/api/health GET Health check
/api/stats GET System statistics
/api/commands GET List all commands
/api/users GET User management
/api/groups GET Group management
/api/qr GET QR code for pairing
/api/messages POST Send messages
/api/analytics GET Usage analytics

๐Ÿ“Š Health Check Response

{
  "status": "healthy",
  "timestamp": "2025-11-02T00:00:00.000Z",
  "uptime": "5h 23m 15s",
  "memory": {
    "used": "45.2 MB",
    "total": "512 MB"
  },
  "whatsapp": {
    "connected": true,
    "qr_scanned": true
  },
  "database": {
    "connected": true,
    "type": "mongodb"
  }
}

๐Ÿ”ง Troubleshooting

โŒ MongoDB Connection Timeout

Problem: Operation users.findOne() buffering timed out after 10000ms

โœ… Solution: This is now automatically handled! The bot will:

  • Use real database if connected
  • Use temporary data if database unavailable
  • No timeout errors sent to your WhatsApp

For production:

MONGODB_URL=mongodb+srv://username:[email protected]/botdb

For testing without database:

MONGODB_URL=mongodb://localhost:27017/ilombot
โŒ Canvas/Graphics Not Working

Problem: Canvas images not generating for group events

โœ… Solution: Ensure canvas dependencies are installed:

sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

brew install pkg-config cairo pango libpng jpeg giflib librsvg

npm install canvas --build-from-source
โŒ Commands Not Working

Problem: Bot doesn't respond to commands

โœ… Solution:

  1. Check prefix is correct in .env file
  2. Verify bot is running: npm start
  3. Check logs for errors: tail -f logs/bot.log 4.Ensure you have permission to use the command
  4. Test with basic command: .ping
  5. Verify WhatsApp connection is active
  6. Check if command is loaded: .help
โŒ Session Expired/Invalid

Problem: Bot keeps disconnecting or shows "Session Invalid"

โœ… Solution:

  1. Delete existing session files
  2. Clear cache/auth_info_baileys/ folder
  3. Remove SESSION_ID from .env
  4. Restart bot and scan new QR code
  5. Save new SESSION_ID for future use
rm -rf cache/auth_info_baileys/
npm start
โŒ High Memory Usage

Problem: Bot consuming too much memory

โœ… Solution:

  1. Reduce CACHE_SIZE in .env
  2. Clear temporary files: npm run cleanup
  3. Restart bot periodically
  4. Optimize database queries
  5. Monitor with: npm run logs
CACHE_SIZE=500
MAX_CONCURRENT_COMMANDS=25

๐Ÿ› ๏ธ Utility Scripts & Maintenance

Comprehensive Management Tools

๐Ÿ“ฆ Installation
npm run setup
Automated installation
๐Ÿงน Maintenance
npm run cleanup
Clean temporary files
๐Ÿ’พ Backup
npm run backup
Create full backup
๐Ÿ”„ Update
npm run update
Smart update system
๐Ÿ“Š Database
npm run migrate
Run migrations
๐Ÿ” Logs
npm run logs
View PM2 logs

Script Details

Script Purpose Safe Mode
cleanup.js Removes temp files, preserves session โœ… Yes
backup.sh Backs up session, media, database โœ… Yes
restore.sh Restores from backup with confirmation โš ๏ธ Overwrites
migrate.js Database schema migrations โœ… With rollback
seed.js Populate DB with demo data โœ… Idempotent
update.js Smart update with environment detection โœ… Platform-aware
update.sh Shell-based git pull + dependencies โš ๏ธ Stashes changes

๐Ÿ” Session Management

Multiple Session Format Support

Ilom Format
Default
Base64 JSON
Encoded
Direct JSON
Raw
Mega.nz Cloud
Cloud Storage
Multi-File
Baileys

Supported Formats

1. Ilom Format (Default)

SESSION_ID=Ilom~eyJub2lzZUtleS...

2. Base64 JSON

SESSION_ID=eyJjcmVkcyI6eyJub...

3. Direct JSON

SESSION_ID={"creds":{"noiseKey":...}}

4. Mega.nz Cloud

SESSION_ID=sypherโ„ข--MEGA_FILE_ID

5. Multi-File Baileys (Auto-generated)

  • Location: cache/auth_info_baileys/
  • Contains: creds.json + keys/*.json

Getting Your Session

Method 1: QR Code

  1. Leave SESSION_ID empty
  2. Run npm start
  3. Scan QR with WhatsApp
  4. Session auto-saved

Method 2: Pairing Code

QR_SCANNER_ENABLED=true
npm start

Method 3: Existing Session

  • Paste SESSION_ID in .env
  • Bot auto-detects format
  • Converts automatically

๐Ÿ“š Documentation

๐Ÿ’ฌ Support & Community

๐ŸŒŸ Join Our Thriving Community! ๐ŸŒŸ

WhatsApp
๐Ÿ’ฌ WhatsApp Group
Chat & Support
Telegram
๐Ÿ“ข Telegram Channel
Updates & News
Discord
๐ŸŽฎ Discord Server
Community Hub
GitHub Issues
๐Ÿ› Report Bugs
Issue Tracker

๐Ÿ’ก Get Help Instantly

๐Ÿ“š Documentation

Complete guides and tutorials
Read Docs

โ“ FAQ

Common questions answered
View FAQ

๐ŸŽฏ Examples

Sample code & tutorials
Browse Examples

๐Ÿ‘จโ€๐Ÿ’ป Author & Credits

๐ŸŒŸ Created by Ilom ๐ŸŒŸ


Ilom
Lead Developer & Creator

GitHub
WhatsApp
Website

๐Ÿข Powered by NexusCoders

Building next-generation automation solutions for everyone

๐Ÿ™ Acknowledgments

๐Ÿ”ง Core Technologies

๐ŸŒŸ Special Mentions

  • ๐Ÿ’– All Contributors
  • ๐Ÿ› Bug Reporters
  • ๐Ÿ“ Documentation Writers
  • ๐ŸŽจ Designers
  • ๐ŸŒ Community
  • โญ Stargazers

๐Ÿ“Š Project Statistics

๐Ÿ† Achievements & Milestones

Stars
GitHub Stars
Forks
Repository Forks
Users
Active Users
Messages
Messages Processed

๐Ÿค Contributing

We welcome contributions from the community!

How to Contribute

1๏ธโƒฃ Fork
Fork the repository
2๏ธโƒฃ Branch
Create feature branch
3๏ธโƒฃ Commit
Make your changes
4๏ธโƒฃ PR
Open pull request

Contribution Guidelines

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.

๐Ÿ“„ License

This project is licensed under the MIT License

See the LICENSE file for details

MIT License Summary

โœ… Commercial Use
Use for business
โœ… Modification
Modify the code
โœ… Distribution
Share with others
โœ… Private Use
Use privately
โš ๏ธ Liability
No warranty
โš ๏ธ Trademark
No trademark rights

๐Ÿ”’ Security

Security is Our Priority

Found a security issue? Please report it responsibly!

๐Ÿ” Report Security Issues
View Security Policy
๐Ÿ“ง Contact Security Team
[email protected]

Security Features

  • ๐Ÿ” End-to-end encryption
  • ๐Ÿ›ก๏ธ Rate limiting & DDoS protection
  • ๐Ÿ”’ Secure session management
  • โœ… Input validation & sanitization
  • ๐Ÿšซ Anti-spam & abuse prevention
  • ๐Ÿ”‘ JWT authentication

โš™๏ธ Changelog

๐Ÿ“œ View Full Changelog

Version 1.0.0 (Current)

๐ŸŽ‰ Initial Release

  • โœจ 142+ commands across 9 categories
  • ๐ŸŽจ Beautiful canvas graphics
  • ๐Ÿค– Multi-AI integration (GPT, Gemini)
  • ๐Ÿ’ฐ Complete economy system
  • ๐Ÿ‘‘ Advanced admin tools
  • ๐ŸŽฎ Interactive games
  • ๐Ÿ“ฅ Social media downloaders
  • ๐Ÿ”ง Comprehensive utilities
  • ๐Ÿ›ก๏ธ Enterprise-grade security
  • ๐ŸŒ Multi-platform deployment

๐ŸŽ‰ Thank You

Thank You

๐ŸŒŸ Thank You for Using Amazing Bot! ๐ŸŒŸ

GitHub Stars GitHub Forks GitHub Watchers

โญ If you find this project helpful, please give it a star! โญ

Maintained PRs Welcome Built with Love Made in Nigeria

๐Ÿ’ Made with Love by Ilom & NexusCoders Team ๐Ÿ’

Crafted with precision, passion, and lots of โ˜•

ยฉ 2024-2025 Amazing Bot. All Rights Reserved.

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages