-
Notifications
You must be signed in to change notification settings - Fork 11
Home
A modern Facebook Messenger bot with advanced features Repository: GrandpaAcademy/Cyber-Bot-v2 ([GitHub]1) License: MIT ([GitHub]1)
- Overview
- Features
- Prerequisites
- Installation
- Configuration
- Command Creation
- Security Considerations
- Updates & Changelog
- Support
- Contributing
- License
Cyber-Bot v2 is a simple yet modern Facebook Messenger bot (built with Node.js) inspired by “Mirai”-style functionality. ([GitHub]1) It aims to provide a flexible command system, multilingual support (English + Bengali), group management features, and a modular architecture for extendability.
- Built on Node.js (20.x or higher) for performance and modern JS features. ([GitHub]1)
- Multi-language support: English & Bengali included. ([GitHub]1)
- Customizable command prefix, aliases, categories, permission levels (user, group admin, bot owner). ([GitHub]1)
- Cooldown system to prevent spam. ([GitHub]1)
- Built for Facebook Messenger, enabling bots to respond in threads/groups. ([GitHub]1)
- Easy to extend: add new commands quickly via template. ([GitHub]1)
Before you begin, ensure you have:
- Node.js version 20.x or above. ([GitHub]1)
- NPM or Yarn package manager. ([GitHub]1)
- Git. ([GitHub]1)
- A Facebook account (for bot integration). ([GitHub]1)
-
Clone the repository:
git clone https://github.com/GrandpaAcademy/Cyber-Bot-v2.git cd Cyber-Bot-v2 ``` :contentReference[oaicite:14]{index=14}
-
Install dependencies:
npm install --legacy-peer-deps ``` :contentReference[oaicite:15]{index=15} -
Run the bot:
node index.js # or npm start ``` :contentReference[oaicite:16]{index=16}
Edit config.json (or whichever config file is used) to adjust settings:
{
"language": "en", // "en" for English, "bn" for Bengali
"PREFIX": "!", // Command prefix
"adminOnly": false // Set to true if only admins can use commands
}
``` :contentReference[oaicite:17]{index=17} {
"encryptSt": true, // Enable appstate encryption
"ADMINBOT": ["YOUR_FACEBOOK_UID"] // Bot owner/admin UID(s)
}
``` :contentReference[oaicite:18]{index=18} Make sure to keep your appstate.json (if used) and other sensitive information private.
To add a new command:
- Create a new file under
src/commands/, e.g.,yourcommand.js. - Use the following template:
module.exports.config = { name: "yourcommand", version: "1.0.0", hasPermission: 0, // 0 = user, 1 = group admin, 2 = bot admin credits: "Your Name", description: "Describe what your command does", usePrefix: true, commandCategory: "category", usages: "[usage details]", cooldowns: 5, aliases: ["alias1", "alias2"] }; module.exports.run = async function({ api, event, args, getText }) { // Your command logic here api.sendMessage("Hello from yourcommand!", event.threadID, event.messageID); }; module.exports.languages = { en: { example: "This is an example message." } }; ``` :contentReference[oaicite:19]{index=19}
- After creating the file, restart the bot so it loads the new command.
Supported features for commands: aliases, multi-language responses, permission handling, categories, cooldowns. :contentReference[oaicite:20]{index=20}
- Enable
"encryptSt": truein config to turn on appstate encryption. :contentReference[oaicite:21]{index=21} - Keep your
appstate.jsonand any access tokens safe and not publicly accessible. - Use environment variables for highly sensitive configuration where possible.
- Regularly update dependencies to reduce risk of known vulnerabilities.
Recent improvements (examples):
- Upgraded to W3S-FCA for improved stability. :contentReference[oaicite:22]{index=22}
- Added command aliases support. :contentReference[oaicite:23]{index=23}
- Improved error handling and performance. :contentReference[oaicite:24]{index=24}
You may maintain a CHANGELOG.md for full version history.
For help and community discussion:
- Telegram: [link] :contentReference[oaicite:25]{index=25}
- YouTube: [link] :contentReference[oaicite:26]{index=26}
- Facebook: [link] :contentReference[oaicite:27]{index=27}
(Be sure to update links in the README or wiki with correct URLs.)
Contributions are welcome! If you want to help:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Push your branch.
- Open a Pull Request.
Also, please read the Contributing Guidelines (if provided). :contentReference[oaicite:28]{index=28}
This project is licensed under the MIT License. See the LICENSE file for details. :contentReference[oaicite:29]{index=29}
Feel free to modify headings, add screenshots, diagrams, or more detailed usage examples.
Would you like me to prepare a **complete wiki file structure** (like separate markdown pages) ready to paste into your Wiki tab?
```::contentReference[oaicite:30]{index=30}