{"id":48708797,"url":"https://github.com/outlasttrialsstats/discord-bot","last_synced_at":"2026-04-26T15:00:47.066Z","repository":{"id":344478542,"uuid":"1175655014","full_name":"OutlastTrialsStats/discord-bot","owner":"OutlastTrialsStats","description":"A Discord bot that automatically assigns roles, syncs nicknames, and displays leaderboards based on player stats from The Outlast Trials.","archived":false,"fork":false,"pushed_at":"2026-04-11T12:02:19.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-11T13:25:59.672Z","etag":null,"topics":["bot","discord","outlast","outlast-trials"],"latest_commit_sha":null,"homepage":"https://outlasttrialsstats.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OutlastTrialsStats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-08T01:45:34.000Z","updated_at":"2026-04-11T12:02:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e96440c-bd24-493f-94d1-6414ed698ec2","html_url":"https://github.com/OutlastTrialsStats/discord-bot","commit_stats":null,"previous_names":["outlasttrialsstats/discord-bot"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/OutlastTrialsStats/discord-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutlastTrialsStats%2Fdiscord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutlastTrialsStats%2Fdiscord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutlastTrialsStats%2Fdiscord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutlastTrialsStats%2Fdiscord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OutlastTrialsStats","download_url":"https://codeload.github.com/OutlastTrialsStats/discord-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutlastTrialsStats%2Fdiscord-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32301330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bot","discord","outlast","outlast-trials"],"created_at":"2026-04-11T13:15:12.528Z","updated_at":"2026-04-26T15:00:47.060Z","avatar_url":"https://github.com/OutlastTrialsStats.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TOTStats Discord Bot\n\n[![Invite Bot](https://img.shields.io/badge/Discord-Invite%20Bot-5865F2?style=for-the-badge\u0026logo=discord\u0026logoColor=white)](https://discord.com/oauth2/authorize?client_id=1464019044817571941\u0026scope=bot%20applications.commands\u0026permissions=257698425936)\n\nA Discord bot that automatically assigns roles, syncs nicknames, and displays leaderboards based on player stats from [The Outlast Trials](https://outlasttrialsstats.com).\n\n**[Add the bot to your server](https://discord.com/oauth2/authorize?client_id=1464019044817571941\u0026scope=bot%20applications.commands\u0026permissions=257698425936)**\n\n## Features\n\n### Setup (`/setup`)\n\n| Command | Description |\n|---|---|\n| `/setup start` | Automatically create roles for selected categories (Prestige, Level, Reagent Rig, Invasion Ranking, Total Invasion Matches, Platform, Account Type) |\n| `/setup delete` | Delete all bot-managed roles and remove mappings |\n| `/setup language` | Change the bot's response language (English, Deutsch) |\n| `/setup role-mapping \u003ccategory\u003e` | Link a role to a category (prestige, level, skill, invasion-ranking, total-invasion-matches, platform, account-type) |\n| `/setup remove-role-mapping \u003ccategory\u003e` | Remove a role mapping for any category |\n| `/setup nickname` | Toggle automatic nickname sync — verified users get their in-game display name as their server nickname |\n| `/setup messages-upload` | Upload a custom `.properties` file to override bot messages |\n| `/setup messages-download` | Download all current messages as a `.properties` file |\n| `/setup messages-reset` | Reset custom messages to defaults |\n\n### Profile\n\n| Command | Description |\n|---|---|\n| `/sync-profile` | Sync your Discord roles with your Outlast Trials stats |\n| `/sync-all` | Scan all server members and assign roles based on their stats |\n\nRoles are also automatically assigned when a verified member joins the server.\n\n### Leaderboard\n\n| Command | Description |\n|---|---|\n| `/leaderboard \u003ccategory\u003e` | View a paginated leaderboard for a stat category (ephemeral, with Previous/Next buttons) |\n| `/setup leaderboard \u003cchannel\u003e \u003ccategory\u003e \u003cpages\u003e` | Set up an auto-updating leaderboard in a channel (refreshes hourly) |\n\nTo remove a leaderboard, simply delete its message in Discord — the bot will automatically clean up the binding.\n\n## Self-Hosting with Docker\n\nThe easiest way to run the bot is with Docker.\n\n### 1. Set up `docker-compose.yml`\n\n```yaml\nservices:\n  bot:\n    container_name: totstats-discord-bot\n    image: ghcr.io/outlasttrialsstats/discord-bot:latest\n    restart: always\n    mem_limit: 1g\n    environment:\n      DISCORD_BOT_TOKEN: \"your-bot-token\"\n      SPRING_DATASOURCE_URL: \"jdbc:postgresql://postgres:5432/totstats\"\n      SPRING_DATASOURCE_USERNAME: \"totstats\"\n      SPRING_DATASOURCE_PASSWORD: \"change-me\"\n    depends_on:\n      - postgres\n\n  postgres:\n    container_name: totstats-discord-postgres\n    image: postgres:17\n    restart: always\n    mem_limit: 512m\n    environment:\n      POSTGRES_USER: totstats\n      POSTGRES_PASSWORD: change-me\n      POSTGRES_DB: totstats\n    volumes:\n      - postgres_data:/var/lib/postgresql/data\n\nvolumes:\n  postgres_data:\n```\n\n### 2. Start the bot\n\n```bash\ndocker compose up -d\n```\n\n### 3. Invite the bot\n\nInvite the bot to your server using the OAuth2 URL from the Developer Portal with the `bot` and `applications.commands` scopes.\n\n## Development\n\n### Prerequisites\n\n- Java 25+\n- Docker (for PostgreSQL)\n- A [Discord Bot Token](https://discord.com/developers/applications) with **Server Members Intent** enabled\n\n### 1. Start the database\n\n```bash\ndocker compose up -d\n```\n\n### 2. Configure environment\n\nCreate a `.env` file in the project root:\n\n```properties\nDISCORD_BOT_TOKEN=your-bot-token-here\n```\n\n### 3. Run the bot\n\n```bash\n./mvnw spring-boot:run\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutlasttrialsstats%2Fdiscord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutlasttrialsstats%2Fdiscord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutlasttrialsstats%2Fdiscord-bot/lists"}