Skip to content

Comments

Feat: Add $chatMessageTextOnly variable (attempt 2)#2598

Merged
SReject merged 2 commits intocrowbartools:v5from
phroggster:tts-voice-emote-link-filtering
Jul 11, 2024
Merged

Feat: Add $chatMessageTextOnly variable (attempt 2)#2598
SReject merged 2 commits intocrowbartools:v5from
phroggster:tts-voice-emote-link-filtering

Conversation

@phroggster
Copy link
Collaborator

Description of the Change

Adds a $chatMessageTextOnly variable to get solely the text component of Twitch chat messages. This will trim link (URLs), third-party-emote, emote, and cheer message subparts from $chatMessage, returning only the plain-text of the message concatenated with spaces. This is suitable for use as a variable for Text-To-Speech input, amongst others, trimming out noisy portions of messages.

This is a correction of PR #2553 that was accidentally targeted against master instead of v5, with another apology to @SReject for the troubles that I caused.

Applicable Issues

#1640

Testing

Verified that numerous messages containing various subsets of words, emotes, third-party emotes, URLs, and the like all were filtered out appropriately through Twitch chat.

This is ideally suitable for Text-To-Speech messages and the like.
It will filter out any URLs, and any emotes, so only the text from the
chat message remains.

I also have no clue how to properly get a firebot development
environment setup (darn you font awesome, what am I doing wrong?), but
it seems to be fully functional on twitch with every scenariou I could
throw at it.
@phroggster phroggster requested a review from ebiggz as a code owner July 6, 2024 11:40
@SReject SReject merged commit c8e0c33 into crowbartools:v5 Jul 11, 2024
@phroggster phroggster deleted the tts-voice-emote-link-filtering branch July 12, 2024 03:23
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