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.
β
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.
git clone https://github.com/haji-mix/fb-bot
cd fb-bot
npm install
# 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'
To prevent abuse and ensure security, Kokoro requires Google reCAPTCHA. You must replace the existing site key with your own.
- Visit Google reCAPTCHA.
- Register your website and select reCAPTCHA v2 ("I'm not a robot").
- Copy the Site Key and Secret Key.
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.
node index.js
Visit:
http://localhost:${process.env.PORT}
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"]
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
.
- Download Webvium and Install.
- Open Webvium and log in to Facebook with a dummy account.
- Navigate to DevTools > Cookie Manager.
- Copy the Facebook cookie JSON and go to your site and paste it into
APPSTATE
container. - (Optional) Configure bot prefix and admin settings.
- Click Submit and start using your chatbot!
Type "help"
in Messenger to view available chatbot commands.
We welcome contributions! Follow these steps:
- Fork the repository
- Create a new branch (
feature/your-feature
) - Commit your changes
- Push to your fork & submit a PR
Read the Contribution Guidelines before submitting.
This project is licensed under the MIT License. See LICENSE for details.
This project is based on the open-source Facebook Autobot.
π§ Email: lkpanio25@gmail.com
π¬ Community: Join the discussion
β¨ Happy Chatbot Building! π