mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-21 17:41:25 -08:00
### 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 - [x] Bug fix (non-breaking change which fixes an issue) - [x] 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: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] 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