Skip to content

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

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages