Skip to content

fix: $chatMessageTextOnly Wash, Wax, and Polish#2649

Merged
SReject merged 2 commits intocrowbartools:v5from
phroggster:chatMessageTextOnly_seasoned
Jul 31, 2024
Merged

fix: $chatMessageTextOnly Wash, Wax, and Polish#2649
SReject merged 2 commits intocrowbartools:v5from
phroggster:chatMessageTextOnly_seasoned

Conversation

@phroggster
Copy link
Collaborator

@phroggster phroggster commented Jul 31, 2024

Description of the Change

Addresses a couple of rough edges in $chatMessageTextOnly:

  • Adds command trigger removal by default.
  • Adds examples showing what the variable can do.
  • Better defensive programming used throughout.
  • Better trims white space everywhere it touches (but not within text parts that include it!)
  • Unicode emoji will still get through. This only removes: twitch emotes, third-party emotes, cheermotes, and URLs.
  • Added commentary to describe things, and esoteric scenarios that may come up.

Applicable Issues

N/A

Testing

Yes. CKY will still likely have an esoteric regex trigger that could behave unexpectedly, however.

Screenshots

N/A

@phroggster phroggster requested a review from ebiggz as a code owner July 31, 2024 00:09
This addresses a couple of rough edges in $chatMessageTextOnly:
- Adds command trigger removal by default.
- Better trims white space everywhere it touches (but not within text
  parts that include it!)
- Adds examples showing what the variable can do.
- Unicode emoji will still get through. This only removes: twitch
  emotes, third-party emotes, cheermotes, and URLs.
@phroggster phroggster force-pushed the chatMessageTextOnly_seasoned branch from 7472063 to d9a4f12 Compare July 31, 2024 09:53
@SReject SReject merged commit 70726e5 into crowbartools:v5 Jul 31, 2024
@phroggster phroggster deleted the chatMessageTextOnly_seasoned branch July 31, 2024 11: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

Comments