Skip to content

Add PluralKit style command (limited) handler an proxy recognition#550

Open
dozro wants to merge 12 commits intoSableClient:devfrom
dozro:feat/compat/pluralkit
Open

Add PluralKit style command (limited) handler an proxy recognition#550
dozro wants to merge 12 commits intoSableClient:devfrom
dozro:feat/compat/pluralkit

Conversation

@dozro
Copy link
Copy Markdown
Member

@dozro dozro commented Mar 26, 2026

Description

Fixes #427
Fixes #425 (you can use shorthands, instead of /usepmp)

PluralKit Compatibility and Per-Message Profile Enhancements

  • Added limited compatibility for PluralKit-style (pk;member) commands, allowing users to interact with PMPs using familiar PK syntax.
  • Introduced shorthand syntax for sending messages with a Persona, such as ✨:test, and an option to enable/disable this in settings.
  • Added a new settings section (PKCompatSettings) in the Persona profile page to toggle PK command compatibility and shorthand proxying.

Command Handling Improvements

  • Updated /addpmp and /usepmp command parsing to use regular expressions, fixing syntax issues and clarifying usage. The /usepmp command now has a new syntax and properly resets room associations when requested.
  • Added a new /pmpproxy command to associate a proxy with a profile, and integrated feedback for unsupported flags in /usepmp.

Data Model and Utility Updates

  • Expanded the per-message profile data model to support compatibility versions and proxy associations, including new type definitions and parsing utilities.

These changes collectively improve the user experience for those using per-message profiles and PluralKit-style workflows, and provide more flexible and robust command handling.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

no AI was used in the creation of this PR

@dozro
Copy link
Copy Markdown
Member Author

dozro commented Mar 27, 2026

.changeset/fix_command_handling_for_usepmp.md and .changeset/fix_pmp_commands.md are maybe the same content just different phrasing 🤔

@dozro dozro marked this pull request as ready for review March 27, 2026 01:38
@dozro dozro requested review from 7w1 and hazre as code owners March 27, 2026 01:38
Copy link
Copy Markdown
Member

@7w1 7w1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn’t test heavily but code lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PMP prefix Command to send single message without PMP

2 participants