Skip to content

fix: cheerMote detection in cheerMessage#3494

Merged
zunderscore merged 5 commits into
crowbartools:v5from
dennisrijsdijk:fix/cheermessage-cheermote-detection
May 19, 2026
Merged

fix: cheerMote detection in cheerMessage#3494
zunderscore merged 5 commits into
crowbartools:v5from
dennisrijsdijk:fix/cheermessage-cheermote-detection

Conversation

@dennisrijsdijk
Copy link
Copy Markdown
Collaborator

Description of the Change

Switch from regex-based cheermote detection to parsing messageParts

The old regex-based detection would occasionally remove strings like "huds601", and fail with custom cheermotes like "huds601Cheer1", only removing "Cheer1" and leaving "huds601"

Note: This PR removes cheermote detection in simulated messages. I'm open to reworking this so the parts are instead checked in the variable, and fallback to regex if there are no parts, but before I put that change in, I figured I'd wait for code review.

Applicable Issues

#3493

Testing

Tested live on stream to ensure including the string "huds601" is preserved and both Twitch default cheermotes as well as Huds' custom cheermotes are removed from the message.

this could occasionally remove strings like "huds601", and fails with cheermotes like "huds601Cheer1", only removing "Cheer1"
@dennisrijsdijk dennisrijsdijk requested a review from ebiggz as a code owner May 16, 2026 11:28
@zunderscore zunderscore merged commit 6336134 into crowbartools:v5 May 19, 2026
1 check passed
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.

2 participants