https://github.com/safepre/fightlive
A discord webhook for UFC live event results and scorecards
https://github.com/safepre/fightlive
mma tweety ufc webhook
Last synced: 3 months ago
JSON representation
A discord webhook for UFC live event results and scorecards
- Host: GitHub
- URL: https://github.com/safepre/fightlive
- Owner: safepre
- License: mit
- Created: 2024-09-20T08:27:36.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-02T22:19:56.000Z (3 months ago)
- Last Synced: 2025-03-02T23:23:29.565Z (3 months ago)
- Topics: mma, tweety, ufc, webhook
- Language: Python
- Homepage:
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🥊 FightLive v1.0.0
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.
## Installation
#### make sure to set up venv before you install the dependencies
1. **Clone the Repository**
```bash
git clone https://github.com/yourusername/ufc-fight-tracker.git
cd ufc-fight-tracker
```2. **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
```
3. **Install dependencies**
```bash
pip3 install -r requirements.txt
```
4. **Setup migration files**
```bash
alembic upgrade head
```
5. **Start Docker Services**
```bash
docker-compose up -d
```
6. **Run Program**
```bash
python3 run.py
```
### Tests1. **Run pytest**
```bash
pytest tests/FILENAME.py
```
## Contributing
Feel free to contribute1. **Fork the Repository**
2. **Create a Feature Branch**
```bash
git checkout -b feature/YourFeature
```
3. **Commit Your Changes**
```bash
git commit -m "Add some feature"
```
4. **Push to the Branch**
```bash
git push origin feature/YourFeature
```
5. **Open a Pull Request**