A complete web API for automated emote functionality in Free Fire based on your original bot code. This API allows you to trigger emote sequences through HTTP requests with automatic team joining, emote playing, and team leaving.
- ๐ฎ Team Auto-Join: Bot automatically joins specified team using team code
- ๐ Emote Execution: Sends emotes to specified UIDs
- โก Auto-Exit: Bot automatically leaves team after 1 second
- ๐ง Multiple Targets: Support for 1-4 target UIDs (uid1 to uid4, uid1 is required)
- ๐ Status Tracking: Real-time bot status monitoring
- ๐ REST API: Clean HTTP API endpoints
GET /emote?teamcode={teamcode}&uid1={uid1}&uid2={uid2}&uid3={uid3}&uid4={uid4}&emoteid={emoteid}
Required Parameters:
teamcode: Team code to joinuid1: Target player UID (minimum requirement)emoteid: Emote ID to play
Optional Parameters:
uid2: Additional target UIDuid3: Additional target UIDuid4: Additional target UID
Example:
GET https://your-domain.vercel.app/emote?teamcode=ABC123&uid1=12345678&emoteid=50
GET /status/{bot_id}
Get status of a specific bot instance.
GET /bots
List all currently active bot instances.
GET /
API documentation and information.
Your project should have this structure:
your-project/
โโโ index.py # Main application file
โโโ api/
โ โโโ index.py # Vercel serverless entry point
โโโ requirements.txt # Python dependencies
โโโ vercel.json # Vercel configuration
โโโ bot.txt # Bot credentials (UID:PASSWORD)
โโโ important_zitado.py # Your original helper functions
โโโ byte.py # Your original byte functions
โโโ my_message_pb2.py # Protocol buffer definitions
โโโ data_pb2.py # Protocol buffer definitions
โโโ jwt_generator_pb2.py # Protocol buffer definitions
โโโ MajorLoginRes_pb2.py # Protocol buffer definitions
Create a bot.txt file with your bot credentials:
YOUR_BOT_UID:YOUR_BOT_PASSWORD
Or use environment variables:
BOT_UID: Your bot's UIDBOT_PASSWORD: Your bot's password
All required dependencies are listed in requirements.txt:
Flask==2.3.3
Flask-CORS==4.0.0
requests==2.31.0
protobuf==4.24.2
pycryptodome==3.19.0
protobuf-decoder==1.0.3
psutil==5.9.6
pyjwt==2.8.0
urllib3==2.0.7
- Install Vercel CLI:
npm install -g vercel- Login to Vercel:
vercel login- Deploy your project:
vercel- Follow the prompts:
- Link to existing project or create new
- Confirm deployment settings
- Deploy!
- Push your code to GitHub:
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/yourusername/your-repo.git
git push -u origin main- Connect to Vercel:
- Go to vercel.com
- Click "New Project"
- Import your GitHub repository
- Configure settings (Python runtime, etc.)
- Deploy!
In Vercel dashboard, set these environment variables:
BOT_UID: Your bot's UIDBOT_PASSWORD: Your bot's password
curl "https://your-domain.vercel.app/emote?teamcode=TEAM123&uid1=12345678&emoteid=50"curl "https://your-domain.vercel.app/emote?teamcode=TEAM123&uid1=12345678&uid2=87654321&uid3=55556666&emoteid=75"curl "https://your-domain.vercel.app/status/emote_bot_1699123456"curl "https://your-domain.vercel.app/bots"{
"status": "success",
"message": "Emote sequence initiated",
"bot_id": "emote_bot_1699123456",
"teamcode": "ABC123",
"emoteid": "50",
"target_uids": ["12345678"],
"note": "Bot will join team, send emote, and auto-exit after 1 second"
}{
"status": "error",
"message": "teamcode parameter is required"
}- initializing: Bot is being created
- joining_team: Bot is joining the specified team
- in_team: Bot has successfully joined the team
- sending_emote: Bot is sending emotes to target UIDs
- leaving_team: Bot is leaving the team (auto-exit)
- completed: Bot has finished the entire sequence
- error: An error occurred during execution
bot.txt to public repositories.
important_zitado.py, byte.py, etc.) are included in the deployment.
.py files with protobuf definitions are included.
- Import Errors: Make sure all helper files are included in your deployment
- Authentication Issues: Verify bot credentials in
bot.txtor environment variables - Team Join Failures: Check if team code is valid and team has space
- Deployment Failures: Ensure
vercel.jsonis properly configured
For debugging, you can check the logs in Vercel dashboard or modify the logging level in index.py.
This API is based on your original Free Fire bot code and maintains all the core functionality while providing a clean HTTP interface for web integration.
For issues related to the original bot functionality, refer to your existing codebase. For API-specific issues, check the deployment configuration and endpoint usage.