Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 11, 2024

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
1 check passed
@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