Founder & Core Developer of Goat Bot V2 |
Advanced Features & Custom Modifications |
🔮 Custom Facebook Chat API for enhanced bot functionality & performance
📝 Note |
🚧 Requirements |
📝 Tutorial |
💡 How it works |
🔔 Updates |
🆙 Upgrade |
🛠️ Commands |
💭 Support |
📚 Languages |
📌 Problems |
❌ Warning |
📸 Screenshots |
📜 License
⚠️ Warning: This is a messenger chat bot using a personal account, utilizing an unofficial API (Origin here)
- 🔒 Account Safety: Using this bot may lead to your Facebook account being locked due to spam or policy violations
- 🎭 Recommendation: Use a clone/alternate account that you're willing to risk
- ⚖️ Disclaimer: I am not responsible for any problems that may arise from using this bot
- Node.js 20.x Download | Releases
- Knowledge of:
- JavaScript/Node.js programming
- Unofficial Facebook API basics
- Command-line interface
- 📱 For Mobile/Replit: https://www.youtube.com/watch?v=grVeZ76HlgA
- 💻 For VPS/Windows: https://www.youtube.com/watch?v=uCbSYNQNEwY
📄 Summary Instructions:
- See detailed guide here
🔽 Click to expand workflow details
The bot uses the unofficial Facebook API to send and receive messages. When a new event occurs (message, reaction, user joins/leaves, etc.), the bot emits an event to the handlerEvents.
- ✅ Checks if user called a command
- 🔐 Validates user isn't banned
- 👑 Checks admin-only mode status
- 🛡️ Verifies user permissions
- ⏱️ Checks command cooldown
- 🚀 Executes command and logs to console
- 💬 Runs when user sends a message
- 🔐 Checks user permissions
- ✅ Validates user status (not banned, etc.)
- 🎯 Executes command if it returns a function
- 📊 Logs activity to console
- 🆕 Runs when receiving first message from chat box since bot started
- 🔄 Works similarly to
onChat
- 👍 Handles user reactions to messages
- 📍 Works with messages stored in
GoatBot.onReaction:global.GoatBot.onReaction.set(msg.messageID, { messageID: msg.messageID, commandName, // ... additional data });
- 🗑️ Auto-adds delete method
- 🔐 Checks permissions before executing
- 💬 Handles user replies to bot messages
- 📍 Works with messages stored in
GoatBot.onReply:global.GoatBot.onReply.set(msg.messageID, { messageID: msg.messageID, commandName, // ... additional data });
- 🗑️ Auto-adds delete method
- 🔐 Validates permissions
- 🎉 Runs on Facebook events (joins, leaves, admin changes, etc.)
- 🔄 Loops through all registered event handlers
- 🎯 Executes matching command's onEvent function
- 📊 Logs activity
- 🎭 Processes all event-type messages
- 📂 Gets commands from
scripts/eventsfolder - 🔄 Loops and executes each event command
- 📝 Logs execution
- Click the ⭐ Watch button in the upper right corner
- Select Custom
- Check Pull requests and Releases
- Click Apply
You'll now receive notifications for updates!
- 📱 On Mobile/Replit: https://youtu.be/grVeZ76HlgA?t=1342
- 💻 On VPS/Computer: https://youtu.be/uCbSYNQNEwY?t=508
See full documentation here
Need Help? Join Our Communities! ![]()
Currently supports 2 languages:
- 🇺🇸 English (
en) - 🇻🇳 Vietnamese (
vi)
Configuration:
- Change language in
config.jsonfile - Customize translations in
languages/,languages/cmds/andlanguages/events/folders
📌 Error 400: redirect_uri_mismatch
1. Enable Google Drive API: Tutorial
2. Add uri https://developers.google.com/oauthplayground to Authorized redirect URIs: Tutorial
3. Choose correct scopes in OAuth 2.0 Playground: Tutorial
📌 Error: Invalid domain for site key
1. Go to reCAPTCHA Admin
2. Add domain repl.co to Domains: Tutorial
📌 GaxiosError: invalid_grant, unauthorized_client
If project not published in Google Console, refresh token expires after 1 week. Tutorial
🚨 DANGER: Unknown source code can infect your device with viruses, malware, or hack your social accounts and banks!
- ✅ Official Source: https://github.com/ntkhang03/Goat-Bot-V2
- ❌ Avoid: All other sources, forks, or repls are FAKE and violate policy
- 🔒 Consequence: Using unofficial sources will result in a permanent ban without notice
- ❌ Không bán mã nguồn của tôi
- ❌ Không tự xưng là chủ sở hữu của mã nguồn của tôi
- ❌ Không kiếm tiền từ mã nguồn của tôi (mua bán lệnh, bot, kêu gọi quyên góp, v.v.)
- ❌ Không xóa/sửa đổi credit (tên tác giả) trong mã nguồn của tôi
- ❌ Don't sell my source code
- ❌ Don't claim my source code as your own
- ❌ Do not monetize my source code (buy/sell commands, bots, donations, etc.)
- ❌ Don't remove/edit my credits (author name) in my source code





























