Skip to content

EryXenX/GoatBot-Pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

636 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Version Node Base Fork FCA


◈ About

Assalamu Alaikum! GoatBot-Pro is an enhanced fork of Goat Bot V2 by ntkhang03, rebuilt and maintained by EryXenX (Mohammad Akash) with new features, multi-language support, and custom commands.

Feature Description
🔌 Custom FCA Uses fca-eryxenx — patched fork with bug fixes and stability improvements
⚙️ Handler Improvements No-prefix system for bot admins, smart command suggestion
🌐 Multi-Language Supports EN, BN, HI, TL, AR, VI
🎨 UI Overhaul Redesigned message templates with clean formatting
🛡️ React Unsend Auto-unsend messages on specific emoji reactions
🔧 Setting Command Full bot config control via chat — no need to edit files manually

⚠️ For educational purposes only. Any misuse or illegal activity is solely the user's responsibility.


◈ Support

Messenger Group Facebook GitHub YouTube Telegram Instagram


◈ Credits

Role Person Link
🏆 Original Creator NTKhang Goat Bot V2
🔧 This Fork EryXenX GoatBot-Pro

All core copyright belongs to NTKhang (ntkhang03). This fork does not override the original license.


◈ Setup Tutorial

📹 Watch Before You Start

GoatBot-Pro Setup Tutorial

Watch Tutorial


◈ Setup

git clone https://github.com/EryXenX/GoatBot-Pro.git
cd GoatBot-Pro
npm install
node index.js

Add your Facebook cookies to account.txt (JSON array format from EditThisCookie), then configure config.json.


◈ Command Structure

Commands go in scripts/cmds/yourcommand.js.

module.exports = {
  config: {
    name: "commandname",
    version: "1.0.0",
    author: "YourName",
    countDown: 5,
    role: 0,
    shortDescription: "...",
    longDescription: "...",
    category: "fun",
    guide: "{prefix}commandname [args]"
  },

  onStart: async function ({ api, event, args, message, getLang }) {
    message.reply("Hello!");
  },

  onReply: async function ({ api, event, Reply, message }) {
    if (event.senderID !== Reply.author) return;
    message.reply(`You replied: ${event.body}`);
  },

  onReaction: async function ({ api, event, Reaction, message }) {
    message.reply(`You reacted with: ${event.reaction}`);
  },

  onChat: async function ({ api, event, message }) {
    if (event.body === "hello") message.reply("hi!");
  },

  onEvent: async function ({ api, event, message }) {
    if (event.logMessageType === "log:subscribe") {
      message.reply("Welcome!");
    }
  }
};

◈ Permission Roles

Value Who can use
0 Everyone
1 Group admins only
2 Bot admins only (set in config.json)

◈ API Reference

message.reply("text")
api.sendMessage("text", threadID)
api.sendMessage({ body: "text", attachment }, tid)
api.setMessageReaction("✅", event.messageID, () => {}, true)
api.unsendMessage(messageID)
api.getCurrentUserID()
await api.getThreadInfo(threadID)
await api.getUserInfo(userID)

◈ onReply Pattern

const sent = await message.reply("What's your name?");
global.GoatBot.onReply.set(sent.messageID, {
  commandName: "mycommand",
  messageID: sent.messageID,
  author: event.senderID,
  step: 1
});

onReply: async function ({ api, event, Reply, message }) {
  if (event.senderID !== Reply.author) return;
  message.reply(`Hello, ${event.body}!`);
}

◈ Event Types

switch (event.logMessageType) {
  case "log:subscribe":
  case "log:unsubscribe":
  case "log:thread-name":
  case "log:thread-image":
  case "log:thread-admins":
}

◈ config.json Key Options

{
  "prefix": "-",
  "adminBot": ["your_facebook_id"],
  "noPrefix": { "enable": false },
  "reactUnsend": {
    "enable": true,
    "onlyAdmin": true,
    "emojis": ["😡"]
  },
  "optionsFca": {
    "listenEvents": true,
    "autoMarkDelivery": false,
    "updatePresence": false,
    "selfListen": false,
    "autoReconnect": true
  }
}

Built on the shoulders of giants · Respect Open Source · Credit your sources
Original Work © NTKhang (ntkhang03)  |  Fork by EryXenX (Mohammad Akash)

About

Assalamu Alaikum! GoatBot-Pro — An enhanced fork of GoatBot V2, rebuilt and maintained by EryXenX with new features, multi-language support, and custom commands. ⚠️ For educational purposes only. Any misuse or illegal activity is solely the user's responsibility.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors