Skip to content

FB-BOT (Kokoro-Project) is an enhanced fork of Facebook Autobot, designed for Messenger bot automation with AI-powered responses, customizable actions, plugin support, and optimized performance. It offers a user-friendly setup, secure authentication, and scheduled tasks, making chatbot deployment fast and efficient. πŸš€

License

Notifications You must be signed in to change notification settings

CrashClock/fb-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


FB-BOT (Kokoro-Project)

Kokoro-Project is a forked and enhanced version of the original Facebook Autobot, designed to automate Facebook Messenger bots efficiently. With a focus on performance, customization, and ease of use, Kokoro provides a seamless way to deploy and manage chatbots.


πŸš€ Features

βœ… AI-Powered Automation – Intelligent responses using multiple AI models.
βœ… Facebook Messenger Integration – Automate messages, replies, and posts.
βœ… User-Friendly Configuration – Simple .env and JSON-based setup.
βœ… Customizable Actions – Define bot behaviors with ease.
βœ… Plugin Support – Expand functionalities with modular plugins.
βœ… Optimized Performance – Lightweight, fast, and scalable.


πŸ“Έ Screenshots

Demo Site
Chatbot Interaction
Bot Commands
Admin Panel


πŸ›  Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/haji-mix/fb-bot
cd fb-bot

2️⃣ Install Dependencies

npm install

3️⃣ Configure Environment

πŸ“Œ .env Configuration

# YOU CAN SKIP ALL OF THESE ITS OPTIONAL!
# Optional login methods
APPSTATE='YOUR C3C COOKIE JSON'  
EMAIL='YOUR FACEBOOK EMAIL'  
PASSWORD='YOUR FACEBOOK PASSWORD'  

# Bot settings  
PREFIX='YOUR BOT PREFIX e.g: #'  
sitekey='YOUR RECAPTCHA SITEKEY Skip this if you already configured the kokoro.json'
pass='YOUR SERVER PASSWORD'  
PORT='YOUR PORT e.g. 25645'  

πŸ”‘ CAPTCHA Configuration

To prevent abuse and ensure security, Kokoro requires Google reCAPTCHA. You must replace the existing site key with your own.

πŸ“Œ Get Your reCAPTCHA Key

  1. Visit Google reCAPTCHA.
  2. Register your website and select reCAPTCHA v2 ("I'm not a robot").
  3. Copy the Site Key and Secret Key.

πŸ“Œ Update kokoro.json

Replace "sitekey" with your own:

{
  "author": "Kenneth Panio", // Warning: Do not Change! instant regret if you do it : (
  "sitekey": "YOUR_GOOGLE_RECAPTCHA_SITE_KEY",
  "weblink": "https://yourwebsite.com or https:///127.0.0.1",
  "port": "Add if you hosted server on Public-IP Website or Localhost e.g 8080",
  "timezone": "Asia/Manila"
}

πŸ”— More Info: Google reCAPTCHA Documentation.


4️⃣ Run the Bot

node index.js

5️⃣ Access the Web Interface

Visit:

http://localhost:${process.env.PORT}

πŸ›  Bot Configuration: Admins & Blacklist

Setting Description
Admins List of authorized users who can control the bot. They can manage commands, settings, and restart the bot.
Blacklist Users who are banned from interacting with the bot. Messages from these users will be ignored.

βœ… Example Admins

"admins": ["61571269923364", "61564046133266"]

🚫 Example Blacklist

"blacklist": ["61566761027554"]

⏳ Scheduled Tasks (Cron Jobs)

Kokoro supports automated scheduled tasks using cron jobs. You can customize bot behaviors based on time-based schedules.

Task Name Enabled Schedule
Restart Bot βœ… Yes Every 24 hours (0 */24 * * *)
Clear Chat ❌ No Every day at midnight (0 0 * * *)
Morning Greetings ❌ No 5 AM, 6 AM, 7 AM
Motivational Messages ❌ No Every 5 hours (0 */5 * * *)

πŸ“Œ Modify these schedules in kokoro.json.


πŸ”‘ Website Login Guide

  1. Download Webvium and Install.
  2. Open Webvium and log in to Facebook with a dummy account.
  3. Navigate to DevTools > Cookie Manager.
  4. Copy the Facebook cookie JSON and go to your site and paste it into APPSTATE container.
  5. (Optional) Configure bot prefix and admin settings.
  6. Click Submit and start using your chatbot!

πŸ“– Commands & Usage

Type "help" in Messenger to view available chatbot commands.


🀝 Contributing

We welcome contributions! Follow these steps:

  1. Fork the repository
  2. Create a new branch (feature/your-feature)
  3. Commit your changes
  4. Push to your fork & submit a PR

Read the Contribution Guidelines before submitting.


πŸ“œ License

This project is licensed under the MIT License. See LICENSE for details.


πŸ”— Original Source & Credits

This project is based on the open-source Facebook Autobot.


πŸ“ž Contact & Support

πŸ“§ Email: lkpanio25@gmail.com
πŸ’¬ Community: Join the discussion

✨ Happy Chatbot Building! πŸš€


About

FB-BOT (Kokoro-Project) is an enhanced fork of Facebook Autobot, designed for Messenger bot automation with AI-powered responses, customizable actions, plugin support, and optimized performance. It offers a user-friendly setup, secure authentication, and scheduled tasks, making chatbot deployment fast and efficient. πŸš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •