Skip to content

A premium messenger ChatBot Created by NeoKEX ⚡

License

Notifications You must be signed in to change notification settings

kipencs577-cloud/Goatbot-updated

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credits & Development Team

🌟 Original Creator

NTKhang

Founder & Core Developer of Goat Bot V2

🔧 Modified & Enhanced By

NeoKEX

Advanced Features & Custom Modifications

GitHub
Facebook
Portfolio
YouTube


Using Custom Facebook Chat API

NeoKEX FCA

🔮 Custom Facebook Chat API for enhanced bot functionality & performance

Join Our Community

Messenger Support

💬 Get help, share ideas, and connect with other developers!


📑 Table of Contents

📝 Note | 🚧 Requirements | 📝 Tutorial | 💡 How it works | 🔔 Updates | 🆙 Upgrade | 🛠️ Commands | 💭 Support | 📚 Languages | 📌 Problems | ❌ Warning | 📸 Screenshots | 📜 License

📝 Note

Important Information:

⚠️ 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

🚧 Requirement

Prerequisites:

  • Node.js 20.x Download | Releases
  • Knowledge of:
    • JavaScript/Node.js programming
    • Unofficial Facebook API basics
    • Command-line interface

📝 Tutorial

Video Guides:

📄 Summary Instructions:

  • See detailed guide here

💡 How it works?

🔽 Click to expand workflow details

Core Workflow:

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.

🎯 Event Handlers:

onStart:

  • ✅ 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

onChat:

  • 💬 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

onFirstChat:

  • 🆕 Runs when receiving first message from chat box since bot started
  • 🔄 Works similarly to onChat

onReaction:

  • 👍 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

onReply:

  • 💬 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

onEvent:

  • 🎉 Runs on Facebook events (joins, leaves, admin changes, etc.)
  • 🔄 Loops through all registered event handlers
  • 🎯 Executes matching command's onEvent function
  • 📊 Logs activity

handlerEvent:

  • 🎭 Processes all event-type messages
  • 📂 Gets commands from scripts/events folder
  • 🔄 Loops and executes each event command
  • 📝 Logs execution

🔔 How to get notification when have new update?

  1. Click the ⭐ Watch button in the upper right corner
  2. Select Custom
  3. Check Pull requests and Releases
  4. Click Apply

You'll now receive notifications for updates!

🆙 How to Update

Update Tutorials:

🛠️ How to create new commands

See full documentation here

💭 Support

Need Help? Join Our Communities!



Discord Facebook Messenger



⚠️ Please do not inbox me directly. I do not respond to private messages. Any questions, please join the chat group for answers. Thanks!

📚 Support Languages in source code

Currently supports 2 languages:

  • 🇺🇸 English (en)
  • 🇻🇳 Vietnamese (vi)

Configuration:

  • Change language in config.json file
  • Customize translations in languages/, languages/cmds/ and languages/events/ folders

📌 Common Problems

📌 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

📌 GaxiosError: invalid_client

Check if you entered correct Google project client_id: Tutorial

📌 Error 403: access_denied

If project not published, only approved accounts can use it: Tutorial

DO NOT USE THE ORIGINAL UNDERGRADUATE VERSION

Security Warning:

🚨 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

📸 Screenshots

Bot Features

🏆 Rank System
  • Rank Card:

  • Rankup Notification:

  • Custom Rank Card:

🌤️ Weather

👋 Welcome/Goodbye Messages

🎨 AI Image Generation (Openjourney)

🤖 GPT Chat

Dashboard

🏠 Home

📊 Stats

🔐 Login/Register

💬 Thread Management

⚙️ Custom Controls

📝 Custom Messages

📜 License

🇻🇳 Vietnamese

⚠️ Nếu bạn vi phạm bất kỳ quy tắc nào, bạn sẽ bị cấm sử dụng dự án của tôi

  • ❌ 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

🇺🇸 English

⚠️ If you violate any rules, you will be banned from using my project

  • ❌ 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

Goat Bot V2




⭐ If you like this project, please give it a star! ⭐


Star History Chart

About

A premium messenger ChatBot Created by NeoKEX ⚡

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.7%
  • CSS 35.2%
  • Other 0.1%