๐ฎ Free On Epic WhatsApp Notifier is a fun little project that fetches free games from the Epic Games Store and sends notifications to your WhatsApp group using the Green API. Because who doesn't love free games and WhatsApp notifications?
- Fetch Free Games: The script fetches the latest free games from the Epic Games Store.
- Send Notifications: It sends a beautifully crafted message with game details and an image to your WhatsApp group using the Green API.
- Python 3.x
- A WhatsApp account (duh!)
- Green API account (to send WhatsApp messages)
-
Clone this repository:
git clone https://github.com/sh13y/free-on-epic-whatsapp-notifier.git cd free-on-epic-whatsapp-notifier
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the project directory and add your Green API credentials and WhatsApp number:API_URL=apiUrl GREEN_API_INSTANCE_ID=your_instance_id GREEN_API_API_TOKEN=your_api_token WHATSAPP_NUMBER=your_whatsapp_number_with_country_code
Run the script:
python script.py
Sit back, relax, and watch as your WhatsApp group gets flooded with notifications about free games. ๐
- Imports: We import
requests
for making HTTP requests,dotenv
for loading environment variables,os
for accessing environment variables, anddatetime
for formatting dates. - Environment Variables: Load your Green API credentials and WhatsApp number from the
.env
file. - Fetch Free Games: Fetches free games from the Epic Games Store.
- Format Date: Formats the date to be more human-readable.
- Send WhatsApp Notification: Sends a WhatsApp message with game details and an image using the Green API.
- Main Function: Fetches games and sends notifications.
Green API is a service that allows you to send WhatsApp messages programmatically. It's like having a personal WhatsApp butler who sends messages for you. ๐งโ๐ผ
- Easy to Use: Simple API endpoints for sending messages.
- Reliable: Ensures your messages are delivered.
- Affordable: Great pricing for hobby projects.
For more details, check out the Green API documentation.
Here is an example of what the notification looks like:
Feel free to fork this repository, make improvements, and submit pull requests. Let's make this project even more awesome together! ๐
This project is licensed under the WTFPL License. See the LICENSE file for details.
Happy coding! And may your WhatsApp group always be filled with free games! ๐ฎ๐ฑ