Goat Bot-V2 is a powerful Facebook Messenger chatbot that runs using your Facebook account's appstate (cookies). This bot listens to your messages in Messenger and handles 250+ useful commands with an easily customizable structure for developers.
- π€ Facebook Messenger Integration - Direct chatbot functionality
- π Secure Login - Uses Facebook
appstate.json(cookies) for authentication - β‘ 250+ Built-in Commands - Extensive command library
- π οΈ Developer Friendly - Easily customizable structure
- π Auto-restart - Automatic bot recovery and restart functionality
- π Dashboard - Web-based control panel
- π Multi-language Support - Support for multiple languages
- πΎ Database Integration - SQLite and MongoDB support
- Node.js version 18 or higher (18+)
- Facebook account with valid cookies
- Internet connection for Facebook API access
git clone https://github.com/AminulSardar1/Goat-Bot-V2.git
cd Goat-Bot-V2npm installCreate an account.txt file in the root directory and add your Facebook account cookies in one of these formats:
[
{
"key": "c_user",
"value": "your_c_user_value",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-01-01T00:00:00.000Z",
"lastAccessed": "2024-01-01T00:00:00.000Z"
},
{
"key": "xs",
"value": "your_xs_value",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-01-01T00:00:00.000Z",
"lastAccessed": "2024-01-01T00:00:00.000Z"
}
]c_user=your_value; xs=your_value; datr=your_value; fr=your_value
your_email@example.com
your_password
your_2fa_code_or_secret
Edit config.json to customize your bot settings:
{
"prefix": "!",
"adminBot": ["your_facebook_id"],
"language": "en",
"nickNameBot": "Goat Bot"
}npm startOnce the bot is running:
- The bot will automatically login to your Facebook account
- It listens to Messenger chats in the background
- Use commands with your configured prefix (default:
!)
!help # Show all available commands
!uptime # Check bot uptime
!ping # Test bot response
!admin # Admin panel access
!user # User information
!balance # Check your balance
!daily # Daily rewardsGoat-Bot-V2/
βββ bot/ # Core bot files
β βββ handler/ # Event and action handlers
β βββ login/ # Login and authentication
β βββ custom.js # Custom bot functions
βββ scripts/ # Bot commands and events
β βββ cmds/ # Command files
β βββ events/ # Event handlers
βββ database/ # Database models and controllers
βββ languages/ # Language files
βββ config.json # Bot configuration
βββ account.txt # Facebook authentication
βββ package.json # Dependencies
Key configuration options:
prefix: Command prefix (default: "!")adminBot: Array of admin Facebook IDslanguage: Bot language ("en", "vi", etc.)autoRestart: Auto-restart settingsdashBoard: Dashboard configuration
Configure individual commands:
- Enable/disable commands
- Set command permissions
- Configure command-specific settings
The bot supports multiple FCA implementations:
# Primary (Recommended)
aminul-new-fca
# Alternative
fca-unofficialβ οΈ Never share youraccount.txtfile- π Use strong passwords and enable 2FA
- π‘οΈ Keep your bot updated to the latest version
- π Review permissions before adding new commands
-
Login Failed
- Update your cookies in
account.txt - Check if your Facebook account is locked
- Verify 2FA settings
- Update your cookies in
-
Commands Not Working
- Check the prefix in
config.json - Verify command permissions
- Check bot admin status
- Check the prefix in
-
Database Errors
- Ensure proper file permissions
- Check SQLite database integrity
- Verify database configuration
- π Check the Issues page
- π¬ Join our community discussions
- π§ Contact support for critical issues
- Import your repository to Replit
- Set up your
account.txtfile - Configure environment variables
- Run the bot using the Run button
Set these in your deployment environment:
NODE_ENV: Production environmentPORT: Server port (default: 5000)
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style
- Add comments for complex functions
- Test your changes thoroughly
- Update documentation as needed
- Enhanced login system with aminul-new-fca
- Improved error handling
- Added new commands
- Bug fixes and performance improvements
See CHANGELOG.md for complete version history.
This project is licensed under the MIT License - see the LICENSE file for details.
Developed with β€οΈ by MD. AMINUL SARDAR
- π GitHub: MDAMINULSARDAR
- π Facebook: facebook.com/100071880593545
- π§ Contact: Create an Issue
- Original GoatBot framework by NTKhang
- Facebook Chat API community
- All contributors and supporters
- This bot is for educational and personal use only
- Users are responsible for compliance with Facebook's Terms of Service
- The author is not responsible for any misuse of this software
- Use at your own risk
If you find this project helpful:
- β Star this repository
- π΄ Fork and contribute
- π Report bugs and issues
- π‘ Suggest new features
- π’ Share with others
Made with β€οΈ by Aminul Sardar