No description
- PHP 98.8%
- Dockerfile 1.2%
| migration | ||
| src | ||
| .editorconfig | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| .php-cs-fixer.php | ||
| .phpactor.json | ||
| application.php | ||
| composer.json | ||
| composer.lock | ||
| Dockerfile | ||
| phpstan.neon | ||
| README.md | ||
LoL Leaderboard Webhook
A simple tool to track League of Legends accounts, generate a leaderboard, and send match updates to a webhook.
Features
- Generate a leaderboard from tracked LoL accounts and optionaly send the leaderboard to a webhook
- Fetch recent matches for players and optionaly send the matches to a webhook
- Store data locally using SQLite
Usage
Generate a leaderboard snapshot:
php application.php -n app:generate-leaderboard <riot-players-id> --discord-webhook="webhook_url"
riot-players-id: Riot accounts identifier--discord-webhook: (optional) send leaderboard snapshot to a webhook
Fetch and track matches for players:
php application.php -n app:track-matches <riot-players-id> --discord-webhook="webhook_url"
riot-players-id: Riot accounts identifier--discord-webhook: (optional) send match updates to a webhook
Environment Variables
SQLITE_DATABASE-> path to the SQLite database fileRIOT_API_KEY-> your Riot API keyRUN_MIGRATION=1-> run database migrations