Skip to content

Repository files navigation

InstaBOT Banner

⚡ InstaBOT

Next-Generation High-Performance Instagram Chatbot Engine

Node.js VersionGitHub RepositoryBuild StatusCommands LoadedICA EngineLicense

OverviewShowcaseArchitectureCommandsInstallationConfigurationDeploymentCredits


🌟 Overview

InstaBOT is a fully modular, enterprise-grade Instagram Direct Messenger chatbot built with an integrated native Instagram Chat API (ICA) engine. Engineered for maximum speed, security, and scalability, InstaBOT operates with dual command execution handlers (full backward compatibility for GoatBot V2 and standard formats), a 5-tier role hierarchy, anti-ban protections, AI conversational memory, web dashboard, and multimedia processing.


📸 Interface & Dashboard

🖥️ Real-Time Web Dashboard

InstaBOT Dashboard Overview
📱 Messenger Interactive Commands

InstaBOT Chat Commands Showcase

🏗️ Architecture & Core Components

 ┌─────────────────────────────┐
│ Instagram Servers / MQTT │
└──────────────┬──────────────┘
│ Realtime Stream
▼
┌─────────────────────────────┐
│ Native Built-In ICA Engine │
│ (ica/ - Zero Lock-In) │
└──────────────┬──────────────┘
│
┌────────────────────────┴────────────────────────┐
▼ ▼
┌─────────────────────────────┐ ┌─────────────────────────────┐
│ Anti-Ban & Rate Limiter │ │ Event Dispatch Pipeline │
│ • Adaptive Cooling Windows │ │ • message, reaction, ready │
│ • Modern Chrome 133 Headers │ │ • gc_join, gc_leave, error │
└──────────────┬──────────────┘ └──────────────┬──────────────┘
│ │
▼ ▼
┌─────────────────────────────┐ ┌─────────────────────────────┐
│ Outbound Message Queue │ │ Dual Command Loader Engine │
│ • Human-like Delay Jitter │ │ • Standard (run) │
│ • Automatic Retry & Backoff │ │ • GoatBot V2 (onStart) │
└─────────────────────────────┘ └──────────────┬──────────────┘
│
▼
┌─────────────────────────────┐
│ 5-Tier Permission & Storage │
│ • Normal, Admin, Dev (0-4) │
│ • JSON / SQLite / MongoDB │
└─────────────────────────────┘

🔥 Key Highlights

  • 🚀 Zero External API Lock-In: Complete native Instagram Chat API (ica/) bundled directly into the codebase.
  • 🛡️ Anti-Ban & Stealth Protection: Realistic Chrome 133 & Android 14/15 User-Agents with authentic Sec-Fetch, compression, and randomized typing jitter (40–200ms).
  • 🔄 Dual Command Architecture: Supports standard run() functions as well as GoatBot V2 hooks (onStart, onReply, onReaction, onChat, onFirstChat, onLoad, onReady).
  • 👑 5-Tier Role System: Granular permission checks (0 Normal User, 1 Group Admin, 2 Bot Admin, 3 Premium User, 4 Developer).
  • 🧠 AI Intelligence Suite: Integrated Gemini, GPT, Claude 3, Meta AI, Nano-Banana Pro (!nbpro), and image generation models.
  • 🎬 Media Downloader Engine: Stream and fetch YouTube audio/video (!sing, !video), TikToks (!tiktok), Pinterest boards (!pinterest), and cloud uploads (!imgbb, Catbox, Imgur).
  • 📊 Live Web Dashboard: Browser-based administration interface for real-time uptime, logs, statistics, and command monitoring.

👑 5-Tier Permission Hierarchy

Role LevelRole TitleAccess DescriptionExample Commands
0Normal UserAccess to all public utilities, games, and info commands!help, !ai, !sing, !quote
1Group AdminGroup thread management, kicking members, group settings!kick, !warn, !bot on/off
2Bot AdminConfigured bot administrators in config.adminBot!ban, !approve, !whitelist
3Premium UserPriority queue and exclusive high-capacity AI features!fluxdev, !veo, !nbpro
4DeveloperUnrestricted system commands, shell execution, code evaluation!eval, !shell, !restart, !cmd

📚 Complete Command Catalog (129+ Commands)

🤖 Artificial Intelligence & Generation (16 Commands)
CommandTriggersDescriptionUsage
aigpt, askChat with OpenAI GPT models!ai <prompt>
claudecldAsk Claude 3 (Haiku) with multimodal image support!claude <question>
geminibardQuery Google Gemini conversational AI!gemini <prompt>
metaaimeta, llamaChat with Meta AI with multi-turn memory!metaai <prompt>
nbpronb, nanobananaGenerate or edit images using Nano-Banana Pro!nbpro <prompt>
fluxflux2, flux3High-definition AI image synthesis!flux <prompt>
fluxdevfluxvFluxDev photo-realistic generator!fluxdev <prompt>
imagen3imagen4Google Imagen generator!imagen3 <prompt>
dalle3dalleOpenAI DALL-E 3 image generation!dalle3 <prompt>
genxart, creartArtistic image generation models!genx <prompt>
nijixnijiAnime-style image generation with aspect ratios!nijix <prompt> --ar 16:9
veotxt2videoAI Text-to-Video generation!veo <prompt>
imggenimgFast multi-engine AI image generator!imggen <prompt>
aiphotophotoaiEnhance and generate realistic portraits!aiphoto <prompt>
removebgnobg, rbgAI image background removal (transparent PNG)!removebg (reply/url)
autotalkbotContext-aware AI chatbot auto-replyAuto-triggered
🎬 Media, Video & Audio Downloaders (20 Commands)
CommandTriggersDescriptionUsage
singsong, musicSearch and download YouTube audio tracks!sing <song name>
videoytv, ytvideoSearch and download YouTube videos!video <video title>
tiktokttSearch and download TikTok videos without watermark!tiktok <query>
pinterestpinSearch and fetch high-resolution Pinterest images!pinterest <search>
moviesimdb, filmSearch movies & TV series via OMDb with posters!movies <title>
animeani, malSearch anime metadata, score, and art via Jikan!anime <anime>
mangamanhwaSearch manga details, chapters, and cover art!manga <manga>
alldldlUniversal social media video downloader!alldl <url>
ytbyoutubeDirect YouTube downloader with resolution selector!ytb <url>
anisearchanimeeditSearch and download anime edits and AMVs!anisearch <anime>
shazamfindsongIdentify songs from audio/video clips!shazam (reply)
emojimixmixemojiGoogle Emoji Kitchen composite graphic generator!emojimix 😭 🤣
memedankmemeFetch random trending community memes!meme
imgbbuploadUpload images directly to ImgBB cloud storage!imgbb (reply to image)
imgurimgurlUpload attachments to Imgur!imgur (reply to media)
catboxcbUpload files to Catbox storage!catbox (reply to file)
saytts, speakSynthesize text to native Instagram voice notes!say <text>
pfpavatarFetch full HD profile picture of any user!pfp <username>
pfpframeframeGenerate aesthetic framed avatar pictures!pfpframe (tag/user)
blurfilterApply image filters and effects!blur (reply to photo)
🎲 Economy, Games & Fun (28 Commands)
CommandTriggersDescriptionUsage
bankbalance, balCheck balance and bank account funds!bank
dailyclaimClaim daily economy reward!daily
economyeco, payTransfer coins and manage wealth!economy pay <@user> <amt>
coinflipcf, flipGamble coins on heads or tails!coinflip <heads|tails> <amt>
slotslotsSpin slot machine for jackpot winnings!slot <bet>
minesminesweeper5x5 Casino minefield risk game with cashout!mines <bet>
richrollrr, gambleHigh-stakes fortune roll gamble with 5x jackpot!richroll <bet>
wordgamescrambleUnscramble the hidden word for coin rewards!wordgame
mathquizmathFast mental arithmetic challenge with cash prize!mathquiz [diff]
guessnumberguessnumSecret number guessing game (1-100) with hints!guessnumber
quiztriviaMulti-category interactive trivia challenge!quiz
48lawlawsofpowerRobert Greene's 48 Laws of Power wisdom!48law [1-48]
marryweddingPropose, marry, and issue marriage certificates!marry @user
hugcuddleCustom canvas composite cuddle/hug image!hug @user
kisssmoochRomantic canvas composite kiss image!kiss @user
slaphitSlap tagged user with custom canvas animation!slap <@user>
shippair, coupleMatchmake and calculate compatibility!ship <@user>
dicerollRoll virtual dice!dice
rpsrockpaperscissorsPlay Rock-Paper-Scissors against bot!rps <rock|paper|scissors>
dhbcwordquizPlay interactive guess-the-word song puzzle!dhbc
bbysimiCute interactive talk bot!bby <message>
jokehumorTell random jokes!joke
quoteqInspirational quotes & custom quote card generator!quote
wantedjailGenerate Wanted/Bounty posters!wanted (tag/reply)
riptombGenerate gravestone tribute memes!rip (tag/reply)
gayhowgayFun compatibility meter!gay (tag)
choosepickRandomly pick from multiple options!choose <opt1> | <opt2>
dihchallengeTrivia challenge games!dih
🛡️ Moderation & Group Management (16 Commands)
CommandTriggersDescriptionRole Req
kickremoveKick user from group thread1 (Admin)
adduseraddAdd user to Instagram group by ID1 (Admin)
warnwarningIssue warning strikes to misbehaving members1 (Admin)
banunbanBan/unban users from bot access2 (Bot Admin)
whitelistwlManage thread/user whitelist mode2 (Bot Admin)
approveacceptApprove pending message requests2 (Bot Admin)
botbotmodeToggle bot ON/OFF or Admin-Only mode1 (Admin)
threadgroupManage thread title, photo, and settings1 (Admin)
unsenddeleteUnsend bot messages0 (User)
unsendallpurgeUnsend all bot messages in thread2 (Bot Admin)
rulesruleDisplay group rules0 (User)
busyafkSet AFK status when away0 (User)
filterantispamConfigure thread word filter1 (Admin)
adminadminsList and manage bot administrators2 (Bot Admin)
managemanagebotThread permissions and feature locks1 (Admin)
selflistenselfToggle bot self-listening capability4 (Dev)
🛠️ System, Diagnostics & Utilities (21 Commands)
CommandTriggersDescriptionUsage
helpmenu, commandsShow interactive categorized command menu!help [command]
infoaboutSystem information, node runtime & memory!info
safeguardhealthSystem health, RAM allocation & security telemetry!safeguard
statsstatisticsUser ranking and bot usage stats!stats
pinglatencyMeasure bot response and network latency!ping
githubgh, gitQuery GitHub profile details or repository stats!github <user|repo> <query>
screenshotss, webshotCapture rendered snapshots of any webpage URL!screenshot <url>
moonmoonphaseHigh-res lunar calendar phase for any date!moon [DD/MM/YYYY]
tinyurlshorturlShorten links using TinyURL / is.gd!tinyurl <url>
quransurah, ayahRead Holy Quran verses with Arabic & translations!quran <surah:ayah>
fancyfont, fontsStyle text into 30+ Unicode typographic fonts!fancy [font] <text>
uididGet Instagram User ID of sender or target!uid [@user]
userinfowhoisDetailed Instagram profile inspector!userinfo <user>
weatherforecastLive global weather conditions and forecasts!weather <city>
translatetransTranslate text into any language!translate <lang> <text>
timeclockWorld clocks and timezones!time [timezone]
calccalculateMathematical expression evaluator!calc <expr>
evalevExecute JavaScript in bot context!eval <code> (Dev)
shellsh, execExecute terminal commands on host system!shell <cmd> (Dev)
restartrebootSafely restart bot process!restart (Dev)
cmdcommandReload or load command modules on the fly!cmd load <name> (Dev)

🚀 Quick Start & Installation

1. Prerequisites

  • Node.js: v20.0.0 or higher (Download)
  • Git: Installed on your system
  • Instagram Account: Active Instagram account for bot usage

2. Clone Repository

git clone git@github.com:frnAlt/InstaBOT.git
cd InstaBOT

3. Install Dependencies

npm install

4. Setup Instagram Session (account.txt)

Export your Instagram session cookies from your browser (e.g. using EditThisCookie or Cookie-Editor) in Netscape format or JSON format and paste them into account.txt in the root folder:

# Netscape HTTP Cookie File
.instagram.com	TRUE	/	TRUE	1798765432	sessionid	YOUR_SESSION_ID
.instagram.com	TRUE	/	TRUE	1798765432	ds_user_id	YOUR_USER_ID
.instagram.com	TRUE	/	TRUE	1798765432	csrftoken	YOUR_CSRF_TOKEN

5. Configure Default Settings

Edit config/default.json to customize your bot prefix, bot admin IDs, and features:

{
"prefix": "!",
"noPrefix": true,
"adminBot": ["YOUR_INSTAGRAM_USER_ID"],
"devUsers": ["YOUR_INSTAGRAM_USER_ID"],
"nickNameBot": "InstaBOT",
"language": "en",
"optionsIca": {
"stealthMode": true,
"selfListen": true,
"listenEvents": true
}
}

6. Start the Bot

npm start

⚙️ Configuration Reference

Environment Variables (.env)

You can optionally configure InstaBOT via environment variables:

VariableTypeDefaultDescription
ACCOUNT_COOKIEString""Raw session cookie string
ACCOUNT_EMAILString""Fallback login email
ACCOUNT_PASSWORDString""Fallback login password
ACCOUNT_USER_AGENTStringChrome 133Custom browser / device User-Agent
PREFIXString!Default command trigger prefix
PORTNumber3000Web dashboard HTTP server port

🚢 Deployment Options

1. Running with PM2 (Recommended for VPS)

npm install -g pm2
pm2 start index.js --name "instabot"
pm2 save
pm2 startup

2. Running with Docker

docker build -t instabot .
docker run -d -p 3000:3000 --name instabot-app instabot

3. Replit Deployment

  1. Import repository into Replit.
  2. Add your cookies into account.txt or configure ACCOUNT_COOKIE in Secrets.
  3. Click Run (replit.md workflow will auto-start bot & dashboard).

🔒 Security & Best Practices

  1. Keep account.txt Secret: Never commit your account.txt or session tokens to public repositories.
  2. Use Realistic Delays: InstaBOT includes adaptive rate limiters and human typing jitter (40–200ms) by default to prevent spam triggers.
  3. Admin Controls: Ensure your Instagram ID is properly set in adminBot and devUsers to restrict sensitive commands like !eval and !shell.

👨‍💻 Developers & Credits


Crafted with ❤️ by Gtajisan && frnAlt • Powered by InstaBOT Next-Gen Engine
⭐ If you find this project useful, please consider giving it a star on GitHub! ⭐

About

GoatBot based a modular, high-performance Instagram Direct Messenger bot ported directly from the legendary GoatBot V2 architecture. Built with a bundled native Instagram Chat API (ICA)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages