-
Notifications
You must be signed in to change notification settings - Fork 6
Add guild-specific variant management via Discord commands #237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
7
commits into
main
Choose a base branch
from
copilot/add-variant-management-commands
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…es, and commands Co-authored-by: sonikro <11502789+sonikro@users.noreply.github.com>
Co-authored-by: sonikro <11502789+sonikro@users.noreply.github.com>
…ecific variants Co-authored-by: sonikro <11502789+sonikro@users.noreply.github.com>
Co-authored-by: sonikro <11502789+sonikro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add commands for creating and deleting variants
Add guild-specific variant management via Discord commands
Dec 15, 2025
Owner
|
@copilot Changes:
|
…ger to use VariantRepository, remove empty_minutes_terminate from user config Co-authored-by: sonikro <11502789+sonikro@users.noreply.github.com>
…e - all variant config now through VariantRepository Co-authored-by: sonikro <11502789+sonikro@users.noreply.github.com>
Contributor
Author
All changes implemented in commits 787f100 and 59c4b7c:
ConfigManager.getVariantConfig is now async and uses VariantRepository internally. All ServerManager implementations updated to await variant config retrieval. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Guild administrators can now create and manage custom server variants through Discord slash commands. Variants are stored per-guild in the database, with existing config-based variants migrated to the database.
Changes
Database Schema
guild_variantstable storing variant configurations per guildguild_idcolumn toserverstable for variant resolutiondefault.jsonCore Domain
GuildVariantmodel andVariantRepositoryinterfaceVariantRepositoryhandles all variant configuration (replacesVariantService)CreateVariant,DeleteVariant,GetVariantsForGuildgetVariantConfigandgetVariantConfigsfunctions - all variant data now read fromVariantRepositoryCommands
/create-variant- Admin-only command accepting variant name, display name, hostname, default configs (JSON), admins (Steam IDs), and image (dropdown with 4 allowed images)/delete-variant- Removes guild-specific variants/create-serverupdated to useVariantRepositoryfor variant listingArchitecture Changes
ConfigManager.getVariantConfig()is now async and usesVariantRepositoryinternallyguildIdtoDeploymentContextandServerManager.deployServer()interfaceConfiguration
default.jsonnow contains onlydefaultandstandard-competitivevariantsImplementation Details
Test Coverage
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.