feat(levelup): add command to update prestige level emoji - #280
Merged
Conversation
Add [p]levelset prestige emoji <level> <emoji> to update the emoji of an existing prestige level in place, instead of having to remove and re-create the level. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nUXaNwKUjaJM3zgzgmUNu
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an admin subcommand to edit the emoji for an already-configured prestige level in-place, reducing the need to remove and recreate prestige levels when only the emoji needs to change.
Changes:
- Added
[p]levelset prestige emoji <level> <emoji>to update the stored emoji string and URL for an existing prestige level. - Bumped the LevelUp cog version to
5.2.7.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| levelup/main.py | Version bump to reflect the new feature release. |
| levelup/commands/admin.py | Adds a new prestige subcommand to update an existing prestige level’s emoji configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1745
to
+1747
| url = utils.get_twemoji(emoji) if isinstance(emoji, str) else emoji.url | ||
| conf.prestigedata[prestige].emoji_string = str(emoji) | ||
| conf.prestigedata[prestige].emoji_url = url |
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
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.
Add [p]levelset prestige emoji to update the emoji of an
existing prestige level in place, instead of having to remove and
re-create the level.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_016nUXaNwKUjaJM3zgzgmUNu