Stay updated with the latest UFC fight results and scorecards directly in your Discord server!
FightLive is a streamlined tool that fetches live updates from UFCNews and delivers them in an engaging format using Discord webhooks.
![Screenshot 2024-10-05 at 1 20 29 AM](https://private-user-images.githubusercontent.com/97003952/373858134-7e012935-27ba-4192-a623-2824b9baa4c1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTI2OTEsIm5iZiI6MTczOTY5MjM5MSwicGF0aCI6Ii85NzAwMzk1Mi8zNzM4NTgxMzQtN2UwMTI5MzUtMjdiYS00MTkyLWE2MjMtMjgyNGI5YmFhNGMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3NTMxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4ZjBmMmUyYjhlOGE4MTk1YjFiOTM4NzlkMjE4Njc2NjQ2MDQ4NmY2OTVmZDYxMTMxODUwM2E3ODRmZDc0MWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cfphVMqWh77EQ6fqByrNBLaNGFtegqnJNArS90BMxvU)
-
Clone the Repository
git clone https://github.com/yourusername/ufc-fight-tracker.git cd ufc-fight-tracker
-
Set Up Environment Variables
Create a
.env
file in the root directory and add the following:WEBHOOK_URL=your_discord_webhook_url AUTH_TOKEN=your_twitter_auth_token X_ACCOUNT=official_ufc_account POSTGRES_USER=your_db_user POSTGRES_PASSWORD=your_db_password POSTGRES_DB=ufc_fight_tracker DATABASE_URL=postgresql://your_db_user:your_db_password@db:5432/ufc_fight_tracker
-
Install dependencies
pip3 install -r requirements.txt
-
Setup migration files
alembic upgrade head
-
Start Docker Services
docker-compose up -d
-
Run Program
python3 run.py
-
Run pytest
pytest tests/FILENAME.py
Feel free to contribute
- Fork the Repository
- Create a Feature Branch
git checkout -b feature/YourFeature
- Commit Your Changes
git commit -m "Add some feature"
- Push to the Branch
git push origin feature/YourFeature
- Open a Pull Request