Add buzz users set-status for the NIP-38 profile status line - #3253
Open
kaganin wants to merge 1 commit into
Open
Add buzz users set-status for the NIP-38 profile status line#3253kaganin wants to merge 1 commit into
buzz users set-status for the NIP-38 profile status line#3253kaganin wants to merge 1 commit into
Conversation
The desktop client renders a persistent user status (kind:30315, d:general) on profiles, but the CLI had no way to set it — only ephemeral presence. Integrations such as a now-playing music bridge need a scriptable way to update the status line. `buzz users set-status --text "..." [--emoji "🎶"]` signs and submits the replaceable status event via the HTTP bridge. Empty text clears the status. Signed-off-by: Kagan Yaldizkaya <[email protected]>
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.
Summary
The desktop client renders a persistent user status (NIP-38 kind:30315,
d:general) as the status line on profiles, but the CLI had no way to set it — only ephemeral presence (set-presence, kind:20001). Integrations that want a scriptable, durable status line (for example a now-playing music bridge that shows the current TIDAL track on a profile) had no entry point.Screenshots
This adds:
d:generalcoordinate the desktop client already reads for the profile status line, and the sameemojitag shapeSetStatusDialogpublishes.Test plan
cargo test -p buzz-cli --lib— 250 passed (includes updated command-inventory tests for the new subcommand).