{"id":27969582,"url":"https://github.com/mgerb/lol-tracker","last_synced_at":"2025-05-07T21:11:38.580Z","repository":{"id":205934865,"uuid":"715425333","full_name":"mgerb/lol-tracker","owner":"mgerb","description":"Discord bot to track League of Legends players.","archived":false,"fork":false,"pushed_at":"2023-11-07T06:57:54.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T21:11:35.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgerb.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-07T05:40:24.000Z","updated_at":"2023-11-07T05:44:11.000Z","dependencies_parsed_at":"2023-11-07T07:44:40.400Z","dependency_job_id":null,"html_url":"https://github.com/mgerb/lol-tracker","commit_stats":null,"previous_names":["mgerb/lol-tracker"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Flol-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Flol-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Flol-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Flol-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgerb","download_url":"https://codeload.github.com/mgerb/lol-tracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954409,"owners_count":21830905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T21:11:37.764Z","updated_at":"2025-05-07T21:11:38.577Z","avatar_url":"https://github.com/mgerb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lol-tracker\n\nA Discord bot to track your friends' League of Legends wins and losses in real time.\n\nThis bot currently scrapes [League of Graphs](https://www.leagueofgraphs.com/) and will notify a Discord channel when a user starts or completes a game. See `src/leagueofgraphs_api/mod.rs` for details.\n\nAlternative LoL data sources can be added by implementing the `ApiStrategy` trait and replacing `strategy` in `main.rs`.\n\n### Tools Used\n\n- [Rust](https://www.rust-lang.org/)\n- [Serenity](https://github.com/serenity-rs/serenity)\n- [sqlx](https://github.com/launchbadge/sqlx)\n- [SQLite](https://www.sqlite.org/index.html)\n\n## Usage\n\n| Command    | Description                                                             |\n| ---------- | ----------------------------------------------------------------------- |\n| init       | Initialize the chat channel to receive notifications (this is required) |\n| addUser    | Add a user by summoner name.                                            |\n| removeUser | Remove user.                                                            |\n\n## How to use with Docker\n\n- add your bot token to `docker-compose.yml`\n- run `docker compose up`\n- [Adding your bot to servers](https://discordjs.guide/preparations/adding-your-bot-to-servers.html#bot-invite-links)\n\n## Example Alerts\n\n![screenshot1](screenshots/screenshot1.jpg)\n\n## Limitations\n\nCurrently the bot only works for NA accounts.\n\n### Database notes\n\nSQLX\n\n```\ncargo install sqlx-cli\ntouch db.sqlite\ncargo sqlx migrate run\ncargo sqlx prepare\n```\n\nMigrations\n\n```\ncargo sqlx migrate add \u003cname\u003e\ncargo sqlx migrate revert \u003cname\u003e\n```\n\n## Todo\n\n- accounts for all regions\n- list all users command\n- logs command\n- add autofill discord commands?\n- game history command\n- 24 hour snapshot command\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgerb%2Flol-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgerb%2Flol-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgerb%2Flol-tracker/lists"}