A Discord bot and Flask server that allows you to automatically like Free Fire profiles via their user ID.
Includes advanced features like channel restrictions, cooldowns, JSON config, and support for both RapidAPI and a self-hosted API.
- 🚀 Features
- 🧰 Requirements
- ⚙️ Installation
- 💬 Usage
- 🤖 Create a Discord Bot
- 🌐 Custom or Public API
- 📤 Example Output
- 🛠 Technologies Used
- 📄 License
- 👨💻 Author
- ✅
/like <uid>: Send likes to Free Fire users. - 🔐
/setlikechannel <channel>: Restrict usage to selected channels. - 🔁 Per-user cooldown (30 seconds).
- 🧠 Channel config saved in
like_channels.json. - 📡 Flask web server at
http://localhost:10000for status. - 🔑 Secure token/key storage via
.env. - 🌐 Choose between RapidAPI or your own hosted API.
- 📊 Embedded responses with like count before/after.
- Python 3.8+
- A Discord bot token
- A RapidAPI key or a self-hosted API server
- A
.envfile containing:
TOKEN=your_discord_bot_token
RAPIDAPI_KEY=your_rapidapi_key_or_custom_api_key-
Clone this repository:
git clone https://github.com/paulafredo/free-freefire-like-bot cd free-freefire-like-bot -
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows use: .venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile in the root directory and add your credentials:TOKEN=your_discord_bot_token RAPIDAPI_KEY= your_rapidapi_key_or_empty_if_custom
-
Run the bot:
python app.py
- Use
/like <user_id>in a Discord server where the bot is present. - Use
/setlikechannel <channel>to toggle allowed channels for the like command.
- Go to the Discord Developer Portal.
- Click "New Application", and give your bot a name.
- In the left sidebar, go to the "Bot" section and click "Add Bot", then confirm with "Yes, do it!".
- Under the Token section, click "Reset Token" or "Copy" to get your
TOKEN. - Go to "General Information" and copy the
APPLICATION_ID. - Paste both values into your
.envfile:TOKEN=your_bot_token - If you don't have api like you can go to rapid api to create account in link
.envfile: https://rapidapi.com/greatthug/api/free-fire-like1RAPIDAPI_KEY=your api key from rapid api
- Go to Free Fire Like API on RapidAPI.
- Subscribe and get your API key.
- Paste it in your
.envfile:
RAPIDAPI_KEY=your_key_here- Host your own version of the API: Free Fire Like api.
- In the bot code (cogs/likeCommands.py), replace:
self.api_host = https://free-fire-like1.p.rapidapi.com
with:
self.api_host = "http://localhost:5000" # or your public server URL
- Leave RAPIDAPI_KEY empty in .env:
RAPIDAPI_KEY=
- Python
- Discord.py
- Flask
- dotenv
- aiohttp
This project is licensed under the MIT License. Feel free to use and modify it.
