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 #2553

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phroggster
Copy link

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.

Applicable Issues

#1640

Testing

Despite seemingly being unable to get fontawesome configured appropriately, and having a massively broken user interface in my development environment, 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 May 9, 2024 00:15
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.

None yet

1 participant